Class DisplayDataContainerHandler<SCHEMA_ATTRIBUTE,SCHEMA_TYPE>
- java.lang.Object
-
- org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericHandler<B>
-
- org.odpi.openmetadata.commonservices.generichandlers.ReferenceableHandler<B>
-
- org.odpi.openmetadata.commonservices.generichandlers.DisplayDataContainerHandler<SCHEMA_ATTRIBUTE,SCHEMA_TYPE>
-
public class DisplayDataContainerHandler<SCHEMA_ATTRIBUTE,SCHEMA_TYPE> extends ReferenceableHandler<B>
DisplayDataContainerHandler manages the schemas for display data containers. It is build on the SchemaAttributeHandler. Its role is to maintain a simple interface. It automatically creates and links in the schema type information in the structure and keeps it linked together.
-
-
Field Summary
Fields Modifier and Type Field Description protected RepositoryErrorHandlererrorHandler-
Fields inherited from class org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericHandler
auditLog, beanClass, converter, defaultZones, localServerUserId, publishZones, repositoryHandler, securityVerifier, supportedZones
-
-
Constructor Summary
Constructors Constructor Description DisplayDataContainerHandler(OpenMetadataAPIGenericConverter<SCHEMA_ATTRIBUTE> dataContainerConverter, Class<SCHEMA_ATTRIBUTE> dataContainerClass, OpenMetadataAPIGenericConverter<SCHEMA_TYPE> schemaTypeConverter, Class<SCHEMA_TYPE> schemaTypeClass, String serviceName, String serverName, InvalidParameterHandler invalidParameterHandler, RepositoryHandler repositoryHandler, OMRSRepositoryHelper repositoryHelper, String localServerUserId, OpenMetadataServerSecurityVerifier securityVerifier, List<String> supportedZones, List<String> defaultZones, List<String> publishZones, AuditLog auditLog)Construct the relational data handler with information needed to work with assets and schemas.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearQueryTargetRelationship(String userId, String externalSourceGUID, String externalSourceName, String schemaElementGUID, String schemaElementGUIDParameterName, String schemaElementTypeName, String queryTargetGUID, String queryTargetGUIDParameterName, String methodName)Update the query properties for a query relationship for a derived schema element.StringcreateDataContainer(String userId, String externalSourceGUID, String externalSourceName, String parentGUID, String qualifiedName, String displayName, String description, boolean isDeprecated, int elementPosition, int minCardinality, int maxCardinality, Map<String,String> additionalProperties, String typeName, Map<String,Object> extendedProperties, Map<String,String> vendorProperties, Date effectiveTime, String methodName)Create a new metadata element to represent a data container.StringcreateDataContainerFromTemplate(String userId, String externalSourceGUID, String externalSourceName, String templateGUID, String parentGUID, String qualifiedName, String displayName, String description, Date effectiveTime, String methodName)Create a new metadata element to represent a data container using an existing metadata element as a template.List<SCHEMA_ATTRIBUTE>findDataContainers(String userId, String searchString, int startFrom, int pageSize, Date effectiveTime, String methodName)Retrieve the list of data container metadata elements that contain the search string.List<SCHEMA_ATTRIBUTE>getContainersForParent(String userId, String parentGUID, int startFrom, int pageSize, Date effectiveTime, String methodName)Retrieve the list of data containers associated with a data container's parent.SCHEMA_ATTRIBUTEgetDataContainerByGUID(String userId, String guid, Date effectiveTime, String methodName)Retrieve the data container metadata element with the supplied unique identifier.List<SCHEMA_ATTRIBUTE>getDataContainersByName(String userId, String name, int startFrom, int pageSize, Date effectiveTime, String methodName)Retrieve the list of data container metadata elements with a matching qualified or display name.voidremoveDataContainer(String userId, String externalSourceGUID, String externalSourceName, String dataContainerGUID, String dataContainerGUIDParameterName, String qualifiedName, String methodName)Remove the metadata element representing a data container.voidsetupQueryTargetRelationship(String userId, String externalSourceGUID, String externalSourceName, String schemaElementGUID, String schemaElementGUIDParameterName, String schemaElementTypeName, String queryId, String query, String queryTargetGUID, String queryTargetGUIDParameterName, String methodName)Create a new query relationship for a derived schema element.voidupdateDataContainer(String userId, String externalSourceGUID, String externalSourceName, String dataContainerGUID, String qualifiedName, String displayName, String description, boolean isDeprecated, Map<String,String> additionalProperties, String typeName, Map<String,Object> extendedProperties, Map<String,String> vendorProperties, boolean isMergeUpdate, String methodName)Update the metadata element representing a data container.voidupdateQueryTargetRelationship(String userId, String externalSourceGUID, String externalSourceName, String schemaElementGUID, String schemaElementGUIDParameterName, String schemaElementTypeName, String queryId, String query, String queryTargetGUID, String queryTargetGUIDParameterName, String methodName)Update the query properties for a query relationship for a derived schema element.-
Methods inherited from class org.odpi.openmetadata.commonservices.generichandlers.ReferenceableHandler
addOwner, addSecurityTags, addTemplateClassification, clearBusinessSignificant, findBeanGUIDsByQualifiedName, findBeansByQualifiedName, findBeansByQualifiedName, getBeanByQualifiedName, getBeanByQualifiedName, getBeanGUIDByQualifiedName, getBeanGUIDByQualifiedName, getBeanGUIDsByQualifiedName, getBeanGUIDsByQualifiedName, getBeansByQualifiedName, getBeansByQualifiedName, getCollectionMembers, getEntityByUniqueQualifiedName, getMoreInformation, getMoreInformation, getVendorProperties, linkElementsAsPeerDuplicates, removeOwner, removeResourceListMember, removeSecurityTags, removeSemanticAssignment, removeTemplateClassification, saveResourceListMember, saveSemanticAssignment, saveSemanticAssignment, setBusinessSignificant, setVendorProperties, unlinkElementsAsPeerDuplicates
-
Methods inherited from class org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericHandler
addAnchorsClassification, archiveBeanInRepository, archiveBeanInRepository, countAttachments, createBeanFromTemplate, createBeanInRepository, deleteAnchoredEntity, deleteBeanInRepository, deleteBeanInRepository, deleteBeanInRepository, deleteBeanInRepository, deleteRelationship, entityMatchSearchCriteria, findAttachmentLinks, findBeanGUIDs, findBeans, findBeans, findBeans, findEntities, findEntities, getAllAttachmentLinks, getAnchorGUIDFromAnchorsClassification, getAttachedElement, getAttachedElementGUID, getAttachedElementGUID, getAttachedElementGUIDs, getAttachedElementGUIDs, getAttachedElements, getAttachedElements, getAttachedElements, getAttachedEntities, getAttachedEntities, getAttachedEntitiesFromUser, getAttachedEntity, getAttachedEntity, getAttachedEntity, getAttachedEntityFromUser, getAttachedFilteredEntities, getAttachedFilteredEntities, getAttachedFilteredEntities, getAttachmentLink, getAttachmentLinks, getAttachmentLinks, getAttachmentLinks, getBeanByUniqueName, getBeanByUniqueName, getBeanByValue, getBeanFromEntity, getBeanFromRepository, getBeanFromRepository, getBeanFromRepository, getBeanGUIDByUniqueName, getBeanGUIDByUniqueName, getBeanGUIDsByClassification, getBeanGUIDsByType, getBeanGUIDsByType, getBeanGUIDsByValue, getBeansByClassification, getBeansByCreator, getBeansByIntValue, getBeansByType, getBeansByType, getBeansByValue, getBeansByValue, getBeansByValue, getBeansByValue, getEffectiveTime, getEffectiveTime, getEntitiesByIntValue, getEntitiesByType, getEntitiesByType, getEntitiesByValue, getEntitiesByValue, getEntitiesByValue, getEntitiesByValue, getEntitiesByValue, getEntityByValue, getEntityFromRepository, getEntityFromRepository, getEntityGUIDByValue, getEntityGUIDsByValue, getRepositoryHandler, getRepositoryHelper, getServerName, getServiceName, getTypeDefByName, getUniqueAttachmentLink, getUniqueAttachmentLink, isBeanIsolated, isEntityATypeOf, linkElementToElement, linkElementToElement, linkElementToElement, linkElementToElement, maintainSupplementaryProperties, multiLinkElementToElement, regexSearchCriteria, relinkElementToNewElement, relinkElementToNewElement, removeClassificationFromRepository, removeClassificationFromRepository, setClassificationInRepository, setClassificationInRepository, setClassificationInRepository, setClassificationInRepository, setClassificationInRepository, setSecurityVerifier, unlinkAllElements, unlinkConnectedElement, unlinkElementFromElement, unlinkElementFromElement, unlinkElementFromElement, unlinkElementFromElement, updateBeanEffectivityDates, updateBeanEffectivityDates, updateBeanInRepository, updateBeanInRepository, updateBeanInRepository, updateBeanPropertyInRepository, updateBeanStatusInRepository, updateBeanStatusInRepository, updateBeanStatusInRepository, updateClassificationEffectivityDates, updateClassificationEffectivityDates, updateElementToElementLink, updateElementToElementLink, updateElementToElementLink, updateElementToElementLink, updateRelationshipEffectivityDates, updateRelationshipEffectivityDates, updateRelationshipProperties, validateAnchorEntity, validateAnchorEntity, validateUniqueProperty, verifyExternalSourceIdentity
-
-
-
-
Field Detail
-
errorHandler
protected RepositoryErrorHandler errorHandler
-
-
Constructor Detail
-
DisplayDataContainerHandler
public DisplayDataContainerHandler(OpenMetadataAPIGenericConverter<SCHEMA_ATTRIBUTE> dataContainerConverter, Class<SCHEMA_ATTRIBUTE> dataContainerClass, OpenMetadataAPIGenericConverter<SCHEMA_TYPE> schemaTypeConverter, Class<SCHEMA_TYPE> schemaTypeClass, String serviceName, String serverName, InvalidParameterHandler invalidParameterHandler, RepositoryHandler repositoryHandler, OMRSRepositoryHelper repositoryHelper, String localServerUserId, OpenMetadataServerSecurityVerifier securityVerifier, List<String> supportedZones, List<String> defaultZones, List<String> publishZones, AuditLog auditLog)
Construct the relational data handler with information needed to work with assets and schemas.- Parameters:
dataContainerConverter- specific converter for the SCHEMA_ATTRIBUTE bean classdataContainerClass- name of bean class that is represented by the generic class SCHEMA_ATTRIBUTEschemaTypeConverter- specific converter for the SCHEMA_TYPE bean classschemaTypeClass- name of bean class that is represented by the generic class SCHEMA_TYPEserviceName- name of this serviceserverName- name of the local serverinvalidParameterHandler- handler for managing parameter errorsrepositoryHandler- manages calls to the repository servicesrepositoryHelper- provides utilities for manipulating the repository services objectslocalServerUserId- userId for this serversecurityVerifier- open metadata security services verifiersupportedZones- list of zones that the access service is allowed to serve Asset instances from.defaultZones- list of zones that the access service should set in all new Asset instances.publishZones- list of zones that the access service sets up in published Asset instances.auditLog- destination for audit log events.
-
-
Method Detail
-
createDataContainer
public String createDataContainer(String userId, String externalSourceGUID, String externalSourceName, String parentGUID, String qualifiedName, String displayName, String description, boolean isDeprecated, int elementPosition, int minCardinality, int maxCardinality, Map<String,String> additionalProperties, String typeName, Map<String,Object> extendedProperties, Map<String,String> vendorProperties, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Create a new metadata element to represent a data container.- Parameters:
userId- calling userexternalSourceGUID- unique identifier of software server capability representing the DBMSexternalSourceName- unique name of software server capability representing the DBMSparentGUID- unique identifier of the data container's parent where the data container is locatedqualifiedName- unique name for the data containerdisplayName- the stored display name property for the data containerdescription- the stored description property associated with the data containerisDeprecated- is this table deprecated?elementPosition- which order is the element when listing from parent's perspectivemaxCardinality- maximum number of instances of this elementminCardinality- minimum number of instances of this elementadditionalProperties- any arbitrary properties not part of the type systemtypeName- name of the type that is a subtype of DisplayDataContainer - or null to create standard typeextendedProperties- properties from any subtypevendorProperties- additional properties relating to the source of the data container technologyeffectiveTime- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName- calling method- Returns:
- unique identifier of the new metadata element for the data container
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
createDataContainerFromTemplate
public String createDataContainerFromTemplate(String userId, String externalSourceGUID, String externalSourceName, String templateGUID, String parentGUID, String qualifiedName, String displayName, String description, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Create a new metadata element to represent a data container using an existing metadata element as a template.- Parameters:
userId- calling userexternalSourceGUID- unique identifier of software server capability representing the DBMS - if null a local element is createdexternalSourceName- unique name of software server capability representing the DBMStemplateGUID- unique identifier of the metadata element to copyparentGUID- unique identifier of the data container's parent where the data container is located.qualifiedName- unique name for the data container's parentdisplayName- the stored display name property for the data containerdescription- the stored description property associated with the data containermethodName- calling method- Returns:
- unique identifier of the new data container's parent
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
updateDataContainer
public void updateDataContainer(String userId, String externalSourceGUID, String externalSourceName, String dataContainerGUID, String qualifiedName, String displayName, String description, boolean isDeprecated, Map<String,String> additionalProperties, String typeName, Map<String,Object> extendedProperties, Map<String,String> vendorProperties, boolean isMergeUpdate, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Update the metadata element representing a data container.- Parameters:
userId- calling userexternalSourceGUID- unique identifier of software server capability representing the DBMSexternalSourceName- unique name of software server capability representing the DBMSdataContainerGUID- unique identifier of the data container to updatequalifiedName- unique name for the data container's parentdisplayName- the stored display name property for the data containerdescription- the stored description property associated with the data containerisDeprecated- is this table deprecated?additionalProperties- any arbitrary properties not part of the type systemtypeName- name of the type that is a subtype of DisplayDataContainer - or null to create standard typeextendedProperties- properties from any subtypevendorProperties- additional properties relating to the source of the data container technologyisMergeUpdate- are unspecified properties unchanged (true) or removed?methodName- calling method- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
removeDataContainer
public void removeDataContainer(String userId, String externalSourceGUID, String externalSourceName, String dataContainerGUID, String dataContainerGUIDParameterName, String qualifiedName, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove the metadata element representing a data container.- Parameters:
userId- calling userexternalSourceGUID- unique identifier of software server capability representing the DBMSexternalSourceName- unique name of software server capability representing the DBMSdataContainerGUID- unique identifier of the metadata element to removedataContainerGUIDParameterName- name of parameter supplying dataContainerGUIDqualifiedName- unique name of the metadata element to removemethodName- calling method- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
findDataContainers
public List<SCHEMA_ATTRIBUTE> findDataContainers(String userId, String searchString, int startFrom, int pageSize, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the list of data container metadata elements that contain the search string. The search string is treated as a regular expression.- Parameters:
userId- calling usersearchString- string to find in the propertiesstartFrom- paging start pointpageSize- maximum results that can be returnedeffectiveTime- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName- calling method- Returns:
- list of matching metadata elements
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
getContainersForParent
public List<SCHEMA_ATTRIBUTE> getContainersForParent(String userId, String parentGUID, int startFrom, int pageSize, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the list of data containers associated with a data container's parent.- Parameters:
userId- calling userparentGUID- unique identifier of the data container's parent of intereststartFrom- paging start pointpageSize- maximum results that can be returnedeffectiveTime- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName- calling method- Returns:
- list of associated metadata elements
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
getDataContainersByName
public List<SCHEMA_ATTRIBUTE> getDataContainersByName(String userId, String name, int startFrom, int pageSize, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the list of data container metadata elements with a matching qualified or display name. There are no wildcards supported on this request.- Parameters:
userId- calling username- name to search forstartFrom- paging start pointpageSize- maximum results that can be returnedeffectiveTime- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName- calling method- Returns:
- list of matching metadata elements
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
getDataContainerByGUID
public SCHEMA_ATTRIBUTE getDataContainerByGUID(String userId, String guid, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the data container metadata element with the supplied unique identifier.- Parameters:
userId- calling userguid- unique identifier of the requested metadata elementeffectiveTime- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName- calling method- Returns:
- matching metadata element
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
setupQueryTargetRelationship
public void setupQueryTargetRelationship(String userId, String externalSourceGUID, String externalSourceName, String schemaElementGUID, String schemaElementGUIDParameterName, String schemaElementTypeName, String queryId, String query, String queryTargetGUID, String queryTargetGUIDParameterName, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Create a new query relationship for a derived schema element.- Parameters:
userId- calling userexternalSourceGUID- unique identifier of software server capability representing the DBMSexternalSourceName- unique name of software server capability representing the DBMSschemaElementGUID- unique identifier of the schema element that this query supportsschemaElementGUIDParameterName- parameter name for schemaElementGUIDschemaElementTypeName- name of type for schema elementqueryId- identifier for the query - used as a placeholder in the formula (stored in the column's CalculatedValue classification)query- the query that is made on the targetGUIDqueryTargetGUID- the unique identifier of the target (this is a schema element - typically a schema attribute)queryTargetGUIDParameterName- parameter supplying queryTargetGUIDmethodName- calling method- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
updateQueryTargetRelationship
public void updateQueryTargetRelationship(String userId, String externalSourceGUID, String externalSourceName, String schemaElementGUID, String schemaElementGUIDParameterName, String schemaElementTypeName, String queryId, String query, String queryTargetGUID, String queryTargetGUIDParameterName, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Update the query properties for a query relationship for a derived schema element.- Parameters:
userId- calling userexternalSourceGUID- unique identifier of software server capability representing the DBMSexternalSourceName- unique name of software server capability representing the DBMSschemaElementGUID- unique identifier of the schema element that this query supportsschemaElementGUIDParameterName- parameter name for schemaElementGUIDschemaElementTypeName- name of type for schema elementqueryId- identifier for the query - used as a placeholder in the formula (stored in the column's CalculatedValue classification)query- the query that is made on the targetGUIDqueryTargetGUID- the unique identifier of the target (this is a schema element - typically a schema attribute)queryTargetGUIDParameterName- parameter supplying queryTargetGUIDmethodName- calling method- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
clearQueryTargetRelationship
public void clearQueryTargetRelationship(String userId, String externalSourceGUID, String externalSourceName, String schemaElementGUID, String schemaElementGUIDParameterName, String schemaElementTypeName, String queryTargetGUID, String queryTargetGUIDParameterName, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Update the query properties for a query relationship for a derived schema element.- Parameters:
userId- calling userexternalSourceGUID- unique identifier of software server capability representing the DBMSexternalSourceName- unique name of software server capability representing the DBMSschemaElementGUID- unique identifier of the schema element that this query supportsschemaElementGUIDParameterName- parameter name for schemaElementGUIDschemaElementTypeName- name of type for schema elementqueryTargetGUID- the unique identifier of the target (this is a schema element - typically a schema attribute)queryTargetGUIDParameterName- parameter supplying queryTargetGUIDmethodName- calling method- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
-