Class ReferenceableBuilder
java.lang.Object
org.odpi.openmetadata.commonservices.ocf.metadatamanagement.builders.RootBuilder
org.odpi.openmetadata.commonservices.ocf.metadatamanagement.builders.ReferenceableBuilder
- Direct Known Subclasses:
DigitalServiceBuilder
,SchemaTypeBuilder
ReferenceableBuilder creates Open Metadata Repository Services (OMRS) objects based on the
bean properties supplied in the constructor.
-
Field Summary
Modifier and TypeFieldDescriptionprotected LatestChange
protected String
protected String
protected String
Fields inherited from class org.odpi.openmetadata.commonservices.ocf.metadatamanagement.builders.RootBuilder
classifications, errorHandler, repositoryHelper, serverName, serviceName
-
Constructor Summary
ModifierConstructorDescriptionprotected
ReferenceableBuilder
(String qualifiedName, String typeName, String typeId, OMRSRepositoryHelper repositoryHelper, String serviceName, String serverName) Constructor for simple creates.protected
ReferenceableBuilder
(String qualifiedName, Map<String, String> additionalProperties, String typeName, String typeId, Map<String, Object> extendedProperties, String actionDescription, OMRSRepositoryHelper repositoryHelper, String serviceName, String serverName) Constructor for updates.protected
ReferenceableBuilder
(String qualifiedName, Map<String, String> additionalProperties, String typeId, String typeName, Map<String, Object> extendedProperties, LatestChange latestChange, OMRSRepositoryHelper repositoryHelper, String serviceName, String serverName) Constructor for updates.protected
ReferenceableBuilder
(String qualifiedName, Map<String, String> additionalProperties, String typeName, String typeId, Map<String, Object> extendedProperties, OMRSRepositoryHelper repositoryHelper, String serviceName, String serverName) Constructor for updates.protected
ReferenceableBuilder
(String qualifiedName, Map<String, String> additionalProperties, String typeId, String typeName, OMRSRepositoryHelper repositoryHelper, String serviceName, String serverName) Constructor for updates.protected
ReferenceableBuilder
(String qualifiedName, Map<String, String> additionalProperties, Map<String, Object> extendedProperties, OMRSRepositoryHelper repositoryHelper, String serviceName, String serverName) Deprecated.protected
ReferenceableBuilder
(String qualifiedName, Map<String, String> additionalProperties, OMRSRepositoryHelper repositoryHelper, String serviceName, String serverName) Constructor for updates.protected
ReferenceableBuilder
(String qualifiedName, OMRSRepositoryHelper repositoryHelper, String serviceName, String serverName) Constructor for simple creates.ReferenceableBuilder
(Referenceable beanProperties, OMRSRepositoryHelper repositoryHelper, String serviceName, String serverName) Constructor for classifications. -
Method Summary
Modifier and TypeMethodDescriptiongetEntityClassifications
(String userId, String methodName) Return a list of entity classifications that can be stored in the metadata repository.getInstanceProperties
(String methodName) Return the supplied bean properties in an InstanceProperties object.getNameInstanceProperties
(String methodName) Return the supplied bean properties that represent a name in an InstanceProperties object for search.getQualifiedNameInstanceProperties
(String methodName) Return the supplied bean properties that represent a name in an InstanceProperties object for search.getSearchInstanceProperties
(String methodName) Return the supplied bean properties that represent a name in an InstanceProperties object.Methods inherited from class org.odpi.openmetadata.commonservices.ocf.metadatamanagement.builders.RootBuilder
getEntityClassifications, setClassifications
-
Field Details
-
qualifiedName
-
typeId
-
typeName
-
additionalProperties
-
extendedProperties
-
latestChange
-
-
Constructor Details
-
ReferenceableBuilder
protected ReferenceableBuilder(String qualifiedName, OMRSRepositoryHelper repositoryHelper, String serviceName, String serverName) Constructor for simple creates.- Parameters:
qualifiedName
- unique namerepositoryHelper
- helper methodsserviceName
- name of this OMASserverName
- name of local server
-
ReferenceableBuilder
protected ReferenceableBuilder(String qualifiedName, String typeName, String typeId, OMRSRepositoryHelper repositoryHelper, String serviceName, String serverName) Constructor for simple creates.- Parameters:
qualifiedName
- unique nametypeName
- type name to use for the entitytypeId
- type GUID to use for the entityrepositoryHelper
- helper methodsserviceName
- name of this OMASserverName
- name of local server
-
ReferenceableBuilder
protected ReferenceableBuilder(String qualifiedName, Map<String, String> additionalProperties, OMRSRepositoryHelper repositoryHelper, String serviceName, String serverName) Constructor for updates.- Parameters:
qualifiedName
- unique nameadditionalProperties
- additional propertiesrepositoryHelper
- helper methodsserviceName
- name of this OMASserverName
- name of local server
-
ReferenceableBuilder
protected ReferenceableBuilder(String qualifiedName, Map<String, String> additionalProperties, String typeId, String typeName, OMRSRepositoryHelper repositoryHelper, String serviceName, String serverName) Constructor for updates.- Parameters:
qualifiedName
- unique nameadditionalProperties
- additional propertiestypeId
- type GUID to use for the entitytypeName
- type name to use for the entityrepositoryHelper
- helper methodsserviceName
- name of this OMASserverName
- name of local server
-
ReferenceableBuilder
@Deprecated protected ReferenceableBuilder(String qualifiedName, Map<String, String> additionalProperties, Map<String, Object> extendedProperties, OMRSRepositoryHelper repositoryHelper, String serviceName, String serverName) Deprecated.Constructor for updates.- Parameters:
qualifiedName
- unique nameadditionalProperties
- additional propertiesextendedProperties
- properties from the subtype.repositoryHelper
- helper methodsserviceName
- name of this OMASserverName
- name of local server
-
ReferenceableBuilder
protected ReferenceableBuilder(String qualifiedName, Map<String, String> additionalProperties, String typeId, String typeName, Map<String, Object> extendedProperties, LatestChange latestChange, OMRSRepositoryHelper repositoryHelper, String serviceName, String serverName) Constructor for updates.- Parameters:
qualifiedName
- unique nameadditionalProperties
- additional propertiestypeId
- type GUID to use for the entitytypeName
- type name to use for the entityextendedProperties
- properties from the subtype.latestChange
- description of the last change to the asset.repositoryHelper
- helper methodsserviceName
- name of this OMASserverName
- name of local server
-
ReferenceableBuilder
protected ReferenceableBuilder(String qualifiedName, Map<String, String> additionalProperties, String typeName, String typeId, Map<String, Object> extendedProperties, String actionDescription, OMRSRepositoryHelper repositoryHelper, String serviceName, String serverName) Constructor for updates.- Parameters:
qualifiedName
- unique nameadditionalProperties
- additional propertiestypeName
- type name to use for the entitytypeId
- type GUID to use for the entityextendedProperties
- properties from the subtype.actionDescription
- description of the last change to the asset.repositoryHelper
- helper methodsserviceName
- name of this OMASserverName
- name of local server
-
ReferenceableBuilder
protected ReferenceableBuilder(String qualifiedName, Map<String, String> additionalProperties, String typeName, String typeId, Map<String, Object> extendedProperties, OMRSRepositoryHelper repositoryHelper, String serviceName, String serverName) Constructor for updates.- Parameters:
qualifiedName
- unique nameadditionalProperties
- additional propertiestypeName
- type name to use for the entitytypeId
- type GUID to use for the entityextendedProperties
- properties from the subtype.repositoryHelper
- helper methodsserviceName
- name of this OMASserverName
- name of local server
-
ReferenceableBuilder
public ReferenceableBuilder(Referenceable beanProperties, OMRSRepositoryHelper repositoryHelper, String serviceName, String serverName) throws InvalidParameterException Constructor for classifications.- Parameters:
beanProperties
- properties and headerrepositoryHelper
- helper methodsserviceName
- name of this OMASserverName
- name of local server- Throws:
InvalidParameterException
- bad properties in bean classifications
-
-
Method Details
-
getTypeId
-
getTypeName
-
getInstanceProperties
Return the supplied bean properties in an InstanceProperties object.- Overrides:
getInstanceProperties
in classRootBuilder
- Parameters:
methodName
- name of the calling method- Returns:
- InstanceProperties object
- Throws:
InvalidParameterException
- there is a problem with the properties
-
getNameInstanceProperties
Return the supplied bean properties that represent a name in an InstanceProperties object for search.- Parameters:
methodName
- name of the calling method- Returns:
- InstanceProperties object
-
getQualifiedNameInstanceProperties
Return the supplied bean properties that represent a name in an InstanceProperties object for search.- Parameters:
methodName
- name of the calling method- Returns:
- InstanceProperties object
-
getSearchInstanceProperties
Return the supplied bean properties that represent a name in an InstanceProperties object.- Parameters:
methodName
- name of the calling method- Returns:
- InstanceProperties object
-
getEntityClassifications
public List<Classification> getEntityClassifications(String userId, String methodName) throws InvalidParameterException Return a list of entity classifications that can be stored in the metadata repository.- Parameters:
userId
- calling usermethodName
- calling method- Returns:
- list of entity classification objects
- Throws:
InvalidParameterException
- the properties of the classification are flawed
-