Class ReferenceableBuilder
java.lang.Object
org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericBuilder
org.odpi.openmetadata.commonservices.generichandlers.ReferenceableBuilder
- Direct Known Subclasses:
ActorProfileBuilder,AssetBuilder,CollectionBuilder,CommentBuilder,CommunityBuilder,ConnectionBuilder,ConnectorTypeBuilder,ContributionRecordBuilder,EngineActionBuilder,ExternalReferenceBuilder,GlossaryBuilder,GlossaryCategoryBuilder,GlossaryTermBuilder,GovernanceActionProcessStepBuilder,GovernanceActionTypeBuilder,GovernanceDefinitionBuilder,GovernanceMetricBuilder,GovernanceZoneBuilder,LocationBuilder,NoteBuilder,NoteLogBuilder,OperatingPlatformBuilder,PersonRoleBuilder,PortBuilder,ProjectBuilder,PropertyFacetBuilder,SchemaAttributeBuilder,SchemaTypeBuilder,SoftwareCapabilityBuilder,SubjectAreaBuilder,UserIdentityBuilder,ValidValuesBuilder
ReferenceableBuilder creates Open Metadata Repository Services (OMRS) objects based on the
bean properties supplied in the constructor.
-
Constructor Summary
ConstructorsConstructorDescriptionReferenceableBuilder(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryHelper repositoryHelper, String serviceName, String serverName) Constructor for simple creates. -
Method Summary
Modifier and TypeMethodDescriptionorg.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstancePropertiesgetInstanceProperties(String methodName) Return the supplied bean properties in an InstanceProperties object.org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstancePropertiesgetMementoProperties(Date archiveDate, String archiveUser, String archiveProcess, Map<String, String> archiveProperties, String methodName) Return the template properties in an InstanceProperties object.Return the qualified name so the handler can check for uniqueness.voidsetMemento(String userId, Date archiveDate, String archiveUser, String archiveProcess, Map<String, String> archiveProperties, String methodName) Set up the Memento classification.voidsetSecurityTags(String userId, List<String> securityLabels, Map<String, Object> securityProperties, Map<String, List<String>> accessGroups, String methodName) Set up the SecurityTags classification for this entity.voidsetTemplate(String userId, String name, String versionIdentifier, String description, Map<String, String> additionalProperties, String methodName) Set up the Template classification.Methods inherited from class org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericBuilder
getEntityClassifications, getInstanceProperties, getInstanceStatus, getTypeGUID, getTypeName, isClassificationSet, setAnchors, setAnchors, setClassification, setEffectivityDates, setTemplateClassifications, setTemplateSubstitute
-
Constructor Details
-
ReferenceableBuilder
public ReferenceableBuilder(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryHelper repositoryHelper, String serviceName, String serverName) Constructor for simple creates.- Parameters:
repositoryHelper- helper methodsserviceName- name of this OMASserverName- name of local server
-
-
Method Details
-
setTemplate
public void setTemplate(String userId, String name, String versionIdentifier, String description, Map<String, String> additionalProperties, String methodName) throws org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterExceptionSet up the Template classification.- Parameters:
userId- calling username- template nameversionIdentifier- version identifier for the template eg 1.0description- template descriptionadditionalProperties- additional properties about the templatemethodName- calling method- Throws:
org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException- Template classification not available in the repositories
-
setMemento
public void setMemento(String userId, Date archiveDate, String archiveUser, String archiveProcess, Map<String, String> archiveProperties, String methodName) throws org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterExceptionSet up the Memento classification.- Parameters:
userId- calling userarchiveDate- timestamp that the archive either occurred or was detectedarchiveUser- name of user responsible for performing the archive (or detecting it)archiveProcess- process responsible for performing the archive (or detecting it)archiveProperties- additional properties to locate the archived asset/artifact (if known)methodName- calling method- Throws:
org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException- Template classification not available in the repositories
-
getMementoProperties
public org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties getMementoProperties(Date archiveDate, String archiveUser, String archiveProcess, Map<String, String> archiveProperties, String methodName) Return the template properties in an InstanceProperties object.- Parameters:
archiveDate- timestamp that the archive either occurred or was detectedarchiveUser- name of user responsible for performing the archive (or detecting it)archiveProcess- process responsible for performing the archive (or detecting it)archiveProperties- additional properties to locate the archived asset/artifact (if known)methodName- name of the calling method- Returns:
- InstanceProperties object
-
setSecurityTags
public void setSecurityTags(String userId, List<String> securityLabels, Map<String, Object> securityProperties, Map<String, throws org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterExceptionList<String>> accessGroups, String methodName) Set up the SecurityTags classification for this entity. This method overrides a previously defined SecurityTags classification for this entity.- Parameters:
userId- calling usersecurityLabels- list of security labelssecurityProperties- map of name value pairsaccessGroups- map from operation to list of security groupsmethodName- calling method- Throws:
org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException- security tags is not supported in the local repository, or any repository connected by an open metadata repository cohort
-
getQualifiedName
Return the qualified name so the handler can check for uniqueness.- Returns:
- string name
-
getInstanceProperties
public org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties getInstanceProperties(String methodName) throws org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException Return the supplied bean properties in an InstanceProperties object.- Overrides:
getInstancePropertiesin classOpenMetadataAPIGenericBuilder- Parameters:
methodName- name of the calling method- Returns:
- InstanceProperties object
- Throws:
org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException- there is a problem with the properties
-