Class OpenMetadataAPIGenericHandler<B>
java.lang.Object
org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIRootHandler<B>
org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericHandler<B>
- Type Parameters:
B
- bean class
- Direct Known Subclasses:
ContactDetailsHandler
,ContributionRecordHandler
,DataFieldHandler
,EngineActionHandler
,GovernanceActionProcessStepHandler
,GovernanceActionTypeHandler
,GovernanceZoneHandler
,InformalTagHandler
,LikeHandler
,OpenMetadataAPITemplateHandler
,OperatingPlatformHandler
,PortHandler
,RatingHandler
,RelatedAssetHandler
,SearchKeywordHandler
,SubjectAreaHandler
,SurveyReportHandler
OpenMetadataAPIGenericHandler manages the exchange of Open Metadata API Bean content with the repository services
(via the repository handler).
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
The properties for an Anchors classification. -
Field Summary
Fields inherited from class org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIRootHandler
assetActionDescription, auditLog, beanClass, converter, defaultZones, errorHandler, invalidParameterHandler, localServerUserId, publishZones, qualifiedNamePropertyNamesList, repositoryHandler, repositoryHelper, securityVerifier, serverName, serviceName, supportedZones
-
Constructor Summary
ConstructorDescriptionOpenMetadataAPIGenericHandler
(OpenMetadataAPIGenericConverter<B> converter, Class<B> beanClass, 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 handler information needed to interact with the repository services -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAnchorGUIDToBuilder
(String userId, String anchorGUID, String anchorGUIDParameterName, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, List<String> serviceSuppliedSupportedZones, OpenMetadataAPIGenericBuilder builder, String methodName) Validate the anchor guid and add its type and identifier to the builder.void
addAnchorsClassification
(String userId, String beanGUID, String beanGUIDParameterName, String beanGUIDTypeName, String anchorGUID, String anchorTypeName, String anchorDomainName, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Classify an element with the Anchors classification.void
archiveBeanInRepository
(String userId, String externalSourceGUID, String externalSourceName, String entityGUID, String entityGUIDParameterName, String entityTypeName, InstanceProperties classificationProperties, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Classify an entity in the repository to show that its asset/artifact counterpart in the real world has either been deleted or archived.void
archiveBeanInRepository
(String userId, String externalSourceGUID, String externalSourceName, String entityGUID, String entityGUIDParameterName, String entityTypeName, InstanceProperties classificationProperties, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, Date effectiveTime, String methodName) Classify an entity in the repository to show that its asset/artifact counterpart in the real world has either been deleted or archived.int
countAttachments
(String userId, String elementGUID, String elementTypeName, String attachmentTypeGUID, String attachmentTypeName, int attachmentEntityEnd, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Count up the number of elements of a certain type that are attached to a specific entity.createBeanInRepository
(String userId, String externalSourceGUID, String externalSourceName, String entityTypeGUID, String entityTypeName, String entityDomainName, OpenMetadataAPIGenericBuilder propertyBuilder, boolean isOwnAnchor, Date effectiveTime, String methodName) Create a new entity in the repository assuming all parameters are ok.createBeanInRepository
(String userId, String externalSourceGUID, String externalSourceName, String entityTypeGUID, String entityTypeName, OpenMetadataAPIGenericBuilder propertyBuilder, Date effectiveTime, String methodName) Create a new entity in the repository assuming all parameters are ok.void
deleteAnchoredEntity
(List<String> anchoredEntityGUIDs, String externalSourceGUID, String externalSourceName, EntityProxy potentialAnchoredEntity, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Remove an entity if it is anchored to the anchor entityvoid
deleteBeanInRepository
(String userId, String externalSourceGUID, String externalSourceName, String entityGUID, String entityGUIDParameterName, String entityTypeGUID, String entityTypeName, String validatingPropertyName, String validatingPropertyValue, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Delete an entity from the repository.void
deleteBeanInRepository
(String userId, String externalSourceGUID, String externalSourceName, String entityGUID, String entityGUIDParameterName, String entityTypeGUID, String entityTypeName, String validatingPropertyName, String validatingPropertyValue, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, Date effectiveTime, String methodName) Delete an entity from the repository.void
deleteBeanInRepository
(String userId, String externalSourceGUID, String externalSourceName, String entityGUID, String entityGUIDParameterName, String entityTypeGUID, String entityTypeName, String validatingPropertyName, String validatingPropertyValue, List<String> anchorEntityGUIDs, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Delete an entity from the repository.void
deleteRelationship
(String userId, String externalSourceGUID, String externalSourceName, String relationshipGUID, String relationshipGUIDParameterName, String relationshipTypeName, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Update the properties associated with a relationship.findAttachmentLinks
(String userId, String relationshipTypeName, SearchProperties searchProperties, List<InstanceStatus> limitResultsByStatus, Date asOfTime, String sequencingProperty, SequencingOrder sequencingOrder, boolean forLineage, boolean forDuplicateProcessing, int startingFrom, int pageSize, List<String> serviceSupportedZones, Date effectiveTime, String methodName) Return a list of relationships that match the supplied criteria.findBeanGUIDs
(String userId, String searchString, String searchStringParameterName, String resultTypeGUID, String resultTypeName, String sequencingPropertyName, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Return the list of beans of the requested type that match the supplied value.findBeans
(String userId, String searchString, String searchStringParameterName, String resultTypeGUID, String resultTypeName, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, String sequencingPropertyName, int startFrom, int pageSize, Date effectiveTime, String methodName) Return the list of beans matching the supplied searchString.findBeans
(String userId, String searchString, String searchStringParameterName, String resultTypeGUID, String resultTypeName, String sequencingPropertyName, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Return the list of beans matching the supplied searchString.findBeans
(String userId, String metadataElementTypeName, List<String> metadataElementSubtypeName, SearchProperties searchProperties, List<InstanceStatus> limitResultsByStatus, SearchClassifications searchClassifications, Date asOfTime, String sequencingProperty, SequencingOrder sequencingOrder, boolean forLineage, boolean forDuplicateProcessing, int startingFrom, int pageSize, List<String> serviceSupportedZones, Date effectiveTime, String methodName) Return a list of metadata elements that match the supplied criteria.findEntities
(String userId, String searchString, String searchStringParameterName, String resultTypeGUID, String resultTypeName, String requiredClassificationName, String omittedClassificationName, String sequencingPropertyName, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Return the list of entities matching the supplied searchString.findEntities
(String userId, String searchString, String searchStringParameterName, String resultTypeGUID, String resultTypeName, String requiredClassificationName, String omittedClassificationName, String sequencingPropertyName, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, Date effectiveTime, String methodName) Return the list of entities matching the supplied searchString.findEntities
(String userId, String metadataElementTypeName, List<String> metadataElementSubtypeName, SearchProperties searchProperties, List<InstanceStatus> limitResultsByStatus, SearchClassifications searchClassifications, Date asOfTime, String sequencingProperty, SequencingOrder sequencingOrder, boolean forLineage, boolean forDuplicateProcessing, int startingFrom, int pageSize, Date effectiveTime, String methodName) Return a list of metadata elements that match the supplied criteria.findEntities
(String userId, String metadataElementTypeName, List<String> metadataElementSubtypeNames, SearchProperties searchProperties, List<InstanceStatus> limitResultsByStatus, SearchClassifications searchClassifications, Date asOfTime, String sequencingProperty, SequencingOrder sequencingOrder, boolean forLineage, boolean forDuplicateProcessing, int startingFrom, int pageSize, List<String> serviceSupportedZones, Date effectiveTime, String methodName) Return a list of metadata elements that match the supplied criteria.getAllAttachmentLinks
(String userId, String startingGUID, String startingGUIDParameterName, String startingTypeName, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Return all relationships attached to a specific entity.getAnchorGUIDFromAnchorsClassification
(EntitySummary connectToEntity, String methodName) Retrieve the anchorGUID property from the Anchors classification if present.getAttachedElement
(String userId, String startingElementGUID, String startingElementGUIDParameterName, String startingElementTypeName, String relationshipTypeGUID, String relationshipTypeName, String resultingElementTypeName, int attachmentEntityEnd, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, Date effectiveTime, String methodName) Return the Bean for the required relationship attached to a specific element.getAttachedElementGUID
(String userId, String startingGUID, String startingGUIDParameterName, String startingTypeName, String attachmentRelationshipTypeGUID, String attachmentRelationshipTypeName, String attachmentEntityTypeName, int selectionEnd, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Return the elements of the requested type attached to an entity identified by the starting GUID.getAttachedElementGUID
(String userId, String startingGUID, String startingGUIDParameterName, String startingTypeName, String attachmentRelationshipTypeGUID, String attachmentRelationshipTypeName, String attachmentEntityTypeName, int selectionEnd, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, Date effectiveTime, String methodName) Return the elements of the requested type attached to an entity identified by the starting GUID.getAttachedElementGUIDs
(String userId, String startingGUID, String startingGUIDParameterName, String startingTypeName, String attachmentRelationshipTypeGUID, String attachmentRelationshipTypeName, String attachmentEntityTypeName, boolean forLineage, boolean forDuplicateProcessing, int startingFrom, int pageSize, Date effectiveTime, String methodName) Return the elements of the requested type attached to an entity identified by the starting GUID.getAttachedElementGUIDs
(String userId, String startingGUID, String startingGUIDParameterName, String startingTypeName, String attachmentRelationshipTypeGUID, String attachmentRelationshipTypeName, String attachmentEntityTypeName, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, int startingFrom, int pageSize, Date effectiveTime, String methodName) Return the elements of the requested type attached to an entity identified by the starting GUID.getAttachedElements
(String userId, String startingGUID, String startingGUIDParameterName, String startingTypeName, String attachmentRelationshipTypeGUID, String attachmentRelationshipTypeName, String attachmentEntityTypeName, String requiredClassificationName, String omittedClassificationName, int selectionEnd, boolean forLineage, boolean forDuplicateProcessing, int startingFrom, int pageSize, Date effectiveTime, String methodName) Return the elements of the requested type attached to an entity identified by the starting GUID.getAttachedElements
(String userId, String anchorGUID, String anchorGUIDParameterName, String startingGUID, String startingGUIDParameterName, String startingTypeName, String attachmentRelationshipTypeGUID, String attachmentRelationshipTypeName, String attachmentEntityTypeName, String requiredClassificationName, String omittedClassificationName, int selectionEnd, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, int startingFrom, int pageSize, Date effectiveTime, String methodName) Return the elements of the requested type attached to an entity identified by the starting GUID.getAttachedElements
(String userId, String startingGUID, String startingGUIDParameterName, String startingTypeName, String attachmentRelationshipTypeGUID, String attachmentRelationshipTypeName, String attachmentEntityTypeName, String requiredClassificationName, String omittedClassificationName, List<Integer> limitResultsByEnumValues, String enumPropertyName, int attachmentEntityEnd, boolean forLineage, boolean forDuplicateProcessing, int startingFrom, int pageSize, Date effectiveTime, String methodName) Return the elements of the requested type attached to an entity identified by the starting GUID.getAttachedEntities
(String userId, String startingElementGUID, String startingElementGUIDParameterName, String startingElementTypeName, String relationshipTypeGUID, String relationshipTypeName, String resultingElementTypeName, String requiredClassificationName, String omittedClassificationName, int attachmentEntityEnd, boolean forLineage, boolean forDuplicateProcessing, int startingFrom, int pageSize, Date effectiveTime, String methodName) Return the entities for the required relationships attached to a specific entity.getAttachedEntities
(String userId, String startingGUID, String startingGUIDParameterName, String startingTypeName, String relationshipTypeGUID, String relationshipTypeName, String resultingElementTypeName, String requiredClassificationName, String omittedClassificationName, int attachmentEntityEnd, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, int startingFrom, int pageSize, Date effectiveTime, String methodName) Return the entities for the required relationships attached to a specific entity.getAttachedEntities
(String userId, EntityDetail startingElement, String startingElementGUIDParameterName, String startingElementTypeName, String relationshipTypeGUID, String relationshipTypeName, String resultingElementTypeName, String requiredClassificationName, String omittedClassificationName, int attachmentEntityEnd, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, int startingFrom, int pageSize, Date effectiveTime, String methodName) Return the entities for the required relationships attached to a specific entity.getAttachedEntitiesFromUser
(String userId, String startingEntityGUID, String startingEntityTypeName, String relationshipTypeGUID, String relationshipTypeName, String attachedEntityTypeGUID, String attachedEntityTypeName, String sequencingPropertyName, int startingFrom, int pageSize, Date effectiveTime, String methodName) Return the list of entities at the other end of the requested relationship type that were created or edited by the requesting user.getAttachedEntity
(String userId, String startingElementGUID, String startingElementGUIDParameterName, String startingElementTypeName, String relationshipTypeGUID, String relationshipTypeName, String resultingElementTypeName, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Return the entity for the required relationship attached to a specific entity.getAttachedEntity
(String userId, String startingElementGUID, String startingElementGUIDParameterName, String startingElementTypeName, String relationshipTypeGUID, String relationshipTypeName, String resultingElementTypeName, int attachmentEntityEnd, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, Date effectiveTime, String methodName) Return the entity for the required relationship attached to a specific entity.getAttachedEntityFromUser
(String userId, String startingEntityGUID, String startingEntityTypeName, String relationshipTypeGUID, String relationshipTypeName, String attachedEntityTypeGUID, String attachedEntityTypeName, Date effectiveTime, String methodName) Return the list of entities at the other end of the requested relationship type that were created or edited by the requesting user.getAttachmentLink
(String userId, String relationshipGUID, String relationshipGUIDParameterName, String relationshipTypeName, Date effectiveTime, String methodName) Return a visible relationship retrieved by its GUID.getAttachmentLinks
(String userId, String startingGUID, String startingGUIDParameterName, String startingTypeName, String attachmentRelationshipTypeGUID, String attachmentRelationshipTypeName, String attachmentEntityGUID, String attachmentEntityTypeName, int attachmentEntityEnd, boolean forLineage, boolean forDuplicateProcessing, int startingFrom, int pageSize, Date effectiveTime, String methodName) Return the relationships to required elements attached to a specific entity.getAttachmentLinks
(String userId, String startingGUID, String startingGUIDParameterName, String startingTypeName, String attachmentRelationshipTypeGUID, String attachmentRelationshipTypeName, String attachmentEntityGUID, String attachmentEntityTypeName, int attachmentEntityEnd, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, int startingFrom, int pageSize, Date effectiveTime, String methodName) Return the relationships to required elements attached to a specific entity.getAttachmentLinks
(String userId, EntityDetail startingEntity, String startingGUIDParameterName, String startingTypeName, String attachmentRelationshipTypeGUID, String attachmentRelationshipTypeName, String attachmentEntityGUID, String attachmentEntityTypeName, int attachmentEntityEnd, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, int startingFrom, int pageSize, Date effectiveTime, String methodName) Return the relationships to required elements attached to a specific entity.getAttachmentsForType
(String userId, String relationshipTypeName, List<InstanceStatus> limitResultsByStatus, Date asOfTime, String sequencingProperty, SequencingOrder sequencingOrder, int startingFrom, int pageSize, Date effectiveTime, String methodName) Return all elements for a specific type.getBeanByUniqueName
(String userId, String name, String nameParameterName, String namePropertyName, String resultTypeGUID, String resultTypeName, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Return the list of beans of the requested type that match the supplied value.getBeanByUniqueName
(String userId, String name, String nameParameterName, String namePropertyName, String resultTypeGUID, String resultTypeName, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, Date effectiveTime, String methodName) Return the list of beans of the requested type that match the supplied value.getBeanByValue
(String userId, String value, String valueParameterName, String resultTypeGUID, String resultTypeName, List<String> specificMatchPropertyNames, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, Date effectiveTime, String methodName) Return the bean that matches the requested value.getBeanFromEntity
(String userId, EntityDetail entity, String entityParameterName, String methodName) Return the bean for the supplied unique identifier (guid).getBeanFromRepository
(String userId, String guid, String guidParameterName, String entityTypeName, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Return the bean for the supplied unique identifier (guid).getBeanFromRepository
(String userId, String guid, String guidParameterName, String entityTypeName, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, Date effectiveTime, String methodName) Return the bean for the supplied unique identifier (guid).getBeanFromRepository
(String userId, String guid, String guidParameterName, String resultTypeName, String methodName) Use the supplied unique identifier (guid) of an entity in the repository to retrieve its contents as a bean.getBeanGUIDByUniqueName
(String userId, String name, String nameParameterName, String namePropertyName, String resultTypeGUID, String resultTypeName, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Return the unique identifier of the entity that has the supplied unique name.getBeanGUIDByUniqueName
(String userId, String name, String nameParameterName, String namePropertyName, String resultTypeGUID, String resultTypeName, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, Date effectiveTime, String methodName) Return the unique identifier of the entity that has the supplied unique name.getBeanGUIDsByClassification
(String userId, String resultTypeGUID, String resultClassificationName, boolean forLineage, boolean forDuplicateProcessing, int startFrom, int pageSize, Date effectiveTime, String methodName) Return the list of beans of the requested type that match the supplied classification.getBeanGUIDsByType
(String userId, String resultTypeGUID, String resultTypeName, String sequencingPropertyName, boolean forLineage, boolean forDuplicateProcessing, int startFrom, int pageSize, Date effectiveTime, String methodName) Return the list of beans of the requested type.getBeanGUIDsByType
(String userId, String resultTypeGUID, String resultTypeName, String sequencingPropertyName, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, int startFrom, int pageSize, Date effectiveTime, String methodName) Return the list of beans of the requested type.getBeanHistory
(String userId, String guid, String guidParameterName, String entityTypeName, Date fromTime, Date toTime, int startingFrom, int pageSize, HistorySequencingOrder sequencingOrder, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, Date effectiveTime, String methodName) Classify an entity in the repository to show that its asset/artifact counterpart in the real world has either been deleted or archived.getBeansByClassification
(String userId, String resultTypeGUID, String resultClassificationName, boolean forLineage, boolean forDuplicateProcessing, int startFrom, int pageSize, Date effectiveTime, String methodName) Return the list of beans of the requested type that match the supplied classification.getBeansByCreator
(String userId, String searchString, String searchStringParameterName, String resultTypeGUID, String resultTypeName, List<String> specificMatchPropertyNames, boolean exactValueMatch, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, String sequencingPropertyName, int startFrom, int pageSize, Date effectiveTime, String methodName) Return the list of beans of the requested type that were created by the requesting user.getBeansByIntValue
(String userId, int value, String resultTypeGUID, String resultTypeName, String propertyName, String requiredClassificationName, String omittedClassificationName, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, String sequencingPropertyName, int startFrom, int pageSize, Date effectiveTime, String methodName) Return the list of beans of the requested type that match the supplied integer value.getBeansByType
(String userId, String resultTypeGUID, String resultTypeName, String sequencingPropertyName, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, int startFrom, int pageSize, Date effectiveTime, String methodName) Return the list of beans of the requested type that match the supplied name.getBeansByType
(String userId, String resultTypeGUID, String resultTypeName, String sequencingPropertyName, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Return the list of beans of the requested type.getBeansByValue
(String userId, String value, String valueParameterName, String resultTypeGUID, String resultTypeName, List<String> specificMatchPropertyNames, boolean exactValueMatch, String requiredClassificationName, String omittedClassificationName, boolean forLineage, boolean forDuplicateProcessing, String sequencingPropertyName, int startFrom, int pageSize, Date effectiveTime, String methodName) Return the list of beans of the requested type that match the supplied value.getBeansByValue
(String userId, String value, String valueParameterName, String resultTypeGUID, String resultTypeName, List<String> specificMatchPropertyNames, boolean exactValueMatch, String requiredClassificationName, String omittedClassificationName, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, String sequencingPropertyName, int startFrom, int pageSize, Date effectiveTime, String methodName) Return the list of beans of the requested type that match the supplied value.getDomainName
(String typeName) Return the domain name of an type.getDomainName
(EntitySummary instance) Return the domain name of an entity.getEntitiesByIntValue
(String userId, int value, String resultTypeGUID, String resultTypeName, String propertyName, String requiredClassificationName, String omittedClassificationName, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, String sequencingPropertyName, int startFrom, int pageSize, Date effectiveTime, String methodName) Return the list of entities of the requested type that match the supplied value.getEntitiesByType
(String userId, String resultTypeGUID, String resultTypeName, String sequencingPropertyName, boolean forLineage, boolean forDuplicateProcessing, int startFrom, int pageSize, Date effectiveTime, String methodName) Return the list of entities of the requested type.getEntitiesByType
(String userId, String resultTypeGUID, String resultTypeName, String sequencingPropertyName, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, int startFrom, int pageSize, Date effectiveTime, String methodName) Return the list of entities of the requested type.getEntitiesByValue
(String userId, String value, String valueParameterName, String resultTypeGUID, String resultTypeName, List<String> specificMatchPropertyNames, boolean exactValueMatch, boolean caseInsensitive, String requiredClassificationName, String omittedClassificationName, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, String sequencingPropertyName, int startFrom, int pageSize, Date effectiveTime, String methodName) Return the list of entities of the requested type that match the supplied value.getEntitiesByValue
(String userId, String value, String valueParameterName, String resultTypeGUID, String resultTypeName, List<String> specificMatchPropertyNames, boolean exactValueMatch, String requiredClassificationName, String omittedClassificationName, boolean forLineage, boolean forDuplicateProcessing, int startFrom, int pageSize, Date effectiveTime, String methodName) Return the list of entities of the requested type that match the supplied value.getEntitiesByValue
(String userId, String value, String valueParameterName, String resultTypeGUID, String resultTypeName, List<String> specificMatchPropertyNames, boolean exactValueMatch, String requiredClassificationName, String omittedClassificationName, boolean forLineage, boolean forDuplicateProcessing, String sequencingPropertyName, int startFrom, int pageSize, Date effectiveTime, String methodName) Return the list of entities of the requested type that match the supplied value.getEntitiesByValue
(String userId, RepositoryIteratorForEntities iterator, String entityParameterName, String resultTypeName, String omittedClassificationName, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, int startFrom, int queryPageSize, Date effectiveTime, String methodName) Return the list of entities of the requested type that match the supplied value.getEntityByValue
(String userId, String value, String valueParameterName, String resultTypeGUID, String resultTypeName, List<String> specificMatchPropertyNames, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Return the entity that matches the requested value.getEntityByValue
(String userId, String value, String valueParameterName, String resultTypeGUID, String resultTypeName, List<String> specificMatchPropertyNames, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, Date effectiveTime, String methodName) Return the entity that matches the requested value.getEntityFromRepository
(String userId, String requestedEntityGUID, String requestedEntityGUIDParameterName, String requestedEntityTypeName, String requiredClassificationName, String omittedClassificationName, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Return the keyword for the supplied unique identifier (guid).getEntityFromRepository
(String userId, String requestedEntityGUID, String requestedEntityGUIDParameterName, String requestedEntityTypeName, String requiredClassificationName, String omittedClassificationName, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, Date effectiveTime, String methodName) Return the entity for the supplied unique identifier (guid).getEntityGUIDByValue
(String userId, String value, String valueParameterName, String resultTypeGUID, String resultTypeName, List<String> specificMatchPropertyNames, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Return the unique identifier of the entity matching the value.getEntityGUIDsByValue
(String userId, String value, String valueParameterName, String resultTypeGUID, String resultTypeName, List<String> specificMatchPropertyNames, boolean exactValueMatch, String requiredClassificationName, String omittedClassificationName, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, String sequencingPropertyName, int startFrom, int pageSize, Date effectiveTime, String methodName) Return the list of entities of the requested type that match the supplied value.getSpecification
(String userId, String elementGUID, String elementGUIDParameterName, String elementTypeName, List<String> serviceSupportedZones) Retrieve the reference data for this element.getSupplementaryProperties
(String elementGUID, String elementGUIDParameterName, String elementTypeName, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Retrieve the supplementary properties of a technical metadata element in a glossary term linked to the supplied element.getUniqueAttachmentLink
(String userId, String startingGUID, String startingGUIDParameterName, String startingTypeName, String attachmentRelationshipTypeGUID, String attachmentRelationshipTypeName, String attachmentEntityGUID, String attachmentEntityTypeName, int attachmentEntityEnd, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Return the relationship between the requested elements - there should be only one.getUniqueAttachmentLink
(String userId, String startingGUID, String startingGUIDParameterName, String startingTypeName, String attachmentRelationshipTypeGUID, String attachmentRelationshipTypeName, String attachmentEntityGUID, String attachmentEntityTypeName, int attachmentEntityEnd, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, Date effectiveTime, String methodName) Return the relationship between the requested elements - there should be only one.boolean
isBeanIsolated
(String userId, String entityGUID, String entityTypeName, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Is the bean isolated - i.e.boolean
isEntityATypeOf
(String userId, String guid, String guidParameterName, String entityTypeName, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Test whether an entity is of a particular type or not.linkElementToElement
(String userId, String externalSourceGUID, String externalSourceName, String startingGUID, String startingGUIDParameterName, String startingElementTypeName, String attachingGUID, String attachingGUIDParameterName, String attachingElementTypeName, boolean forLineage, boolean forDuplicateProcessing, String relationshipTypeGUID, String relationshipTypeName, Date effectiveFrom, Date effectiveTo, Map<String, Object> relationshipProperties, Date effectiveTime, String methodName) Creates a relationship between two elements and updates the LatestChange in each one's anchor entity (if they have one).linkElementToElement
(String userId, String externalSourceGUID, String externalSourceName, String startingGUID, String startingGUIDParameterName, String startingElementTypeName, String attachingGUID, String attachingGUIDParameterName, String attachingElementTypeName, boolean forLineage, boolean forDuplicateProcessing, String relationshipTypeGUID, String relationshipTypeName, InstanceProperties relationshipProperties, Date effectiveFrom, Date effectiveTo, Date effectiveTime, String methodName) Creates a relationship between two elements and updates the LatestChange in each one's anchor entity (if they have one).linkElementToElement
(String userId, String externalSourceGUID, String externalSourceName, String startingElementGUID, String startingGUIDParameterName, String startingElementTypeName, String attachingElementGUID, String attachingGUIDParameterName, String attachingElementTypeName, boolean forLineage, boolean forDuplicateProcessing, List<String> suppliedSupportedZones, String attachmentTypeGUID, String attachmentTypeName, InstanceProperties relationshipProperties, Date effectiveFrom, Date effectiveTo, Date effectiveTime, String methodName) Creates a relationship between two elements and updates the LatestChange in each one's anchor entity (if they have one).void
maintainSupplementaryProperties
(String userId, String elementGUID, String elementGUIDParameterName, String elementTypeName, String elementDomainName, String elementQualifiedName, String displayName, String summary, String description, String abbreviation, String usage, boolean isMergeUpdate, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Maintain the supplementary properties of a technical metadata element in a glossary term linked to the supplied element.multiLinkElementToElement
(String userId, String externalSourceGUID, String externalSourceName, String startingElementGUID, String startingGUIDParameterName, String startingElementTypeName, String attachingElementGUID, String attachingGUIDParameterName, String attachingElementTypeName, boolean forLineage, boolean forDuplicateProcessing, List<String> suppliedSupportedZones, String attachmentTypeGUID, String attachmentTypeName, InstanceProperties relationshipProperties, Date effectiveTime, String methodName) Creates a relationship between two elements and updates the LatestChange in each one's anchor entity (if they have one).void
relinkElementToNewElement
(String userId, String externalSourceGUID, String externalSourceName, String startingGUID, String startingGUIDParameterName, String startingElementTypeName, boolean startAtEnd1, String newAttachingGUID, String newAttachingGUIDParameterName, String newAttachingElementTypeName, boolean forLineage, boolean forDuplicateProcessing, String attachmentTypeGUID, String attachmentTypeName, InstanceProperties relationshipProperties, Date effectiveTime, String methodName) Deleted the existing relationship between the starting element and another element then create a new relationship between the starting element and the new attaching element.void
relinkElementToNewElement
(String userId, String externalSourceGUID, String externalSourceName, String startingGUID, String startingGUIDParameterName, String startingElementTypeName, boolean startAtEnd1, String newAttachingGUID, String newAttachingGUIDParameterName, String newAttachingElementTypeName, boolean forLineage, boolean forDuplicateProcessing, List<String> suppliedSupportedZones, String attachmentTypeGUID, String attachmentTypeName, InstanceProperties relationshipProperties, Date effectiveTime, String methodName) Deleted the existing relationship between the starting element and another element then create a new relationship between the starting element and the new attaching element.void
removeClassificationFromRepository
(String userId, String externalSourceGUID, String externalSourceName, String beanGUID, String beanGUIDParameterName, String beanGUIDTypeName, String classificationTypeGUID, String classificationTypeName, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Remove the requested classification from the matching entity in the repository.void
removeClassificationFromRepository
(String userId, String externalSourceGUID, String externalSourceName, String beanGUID, String beanGUIDParameterName, String beanGUIDTypeName, String classificationTypeGUID, String classificationTypeName, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, Date effectiveTime, String methodName) Remove the requested classification from the matching entity in the repository.void
setClassificationInRepository
(String userId, String externalSourceGUID, String externalSourceName, String beanGUID, String beanGUIDParameterName, String beanGUIDTypeName, String classificationTypeGUID, String classificationTypeName, Date effectiveFrom, Date effectiveTo, boolean forLineage, boolean forDuplicateProcessing, boolean isMergeUpdate, Map<String, Object> classificationProperties, Date effectiveTime, String methodName) Add the requested classification to the matching entity in the repository.void
setClassificationInRepository
(String userId, String externalSourceGUID, String externalSourceName, String beanGUID, String beanGUIDParameterName, String beanGUIDTypeName, String classificationTypeGUID, String classificationTypeName, InstanceProperties classificationProperties, boolean isMergeUpdate, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Add the requested classification to the matching entity in the repository.void
setClassificationInRepository
(String userId, String externalSourceGUID, String externalSourceName, String beanGUID, String beanGUIDParameterName, String beanGUIDTypeName, String classificationTypeGUID, String classificationTypeName, InstanceProperties classificationProperties, boolean isMergeUpdate, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, Date effectiveTime, String methodName) Add the requested classification to the matching entity in the repository.void
setClassificationInRepository
(String userId, String externalSourceGUID, String externalSourceName, EntityDetail beanEntity, String beanGUIDParameterName, String beanGUIDTypeName, String classificationTypeGUID, String classificationTypeName, InstanceProperties classificationProperties, boolean isMergeUpdate, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, Date effectiveTime, String methodName) Add the requested classification to the matching entity in the repository.uncheckedLinkElementToElement
(String userId, String externalSourceGUID, String externalSourceName, String startingElementGUID, String startingGUIDParameterName, String startingElementTypeName, String attachingElementGUID, String attachingGUIDParameterName, String attachingElementTypeName, boolean forLineage, boolean forDuplicateProcessing, List<String> suppliedSupportedZones, String attachmentTypeGUID, String attachmentTypeName, InstanceProperties relationshipProperties, Date effectiveTime, String methodName) Creates a relationship between two elements and updates the LatestChange in each one's anchor entity (if they have one).undoBeanUpdateInRepository
(String userId, String externalSourceGUID, String externalSourceName, String entityGUID, String entityGUIDParameterName, String entityTypeName, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Undo the last update to the entity.undoBeanUpdateInRepository
(String userId, String externalSourceGUID, String externalSourceName, String entityGUID, String entityGUIDParameterName, String entityTypeName, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, Date effectiveTime, String methodName) Undo the last update to the entity.undoBeanUpdateInRepository
(String userId, String externalSourceGUID, String externalSourceName, EntityDetail originalEntity, String entityGUIDParameterName, String entityTypeName, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, Date effectiveTime, String methodName) Undo the last update to the entity.void
unlinkAllElements
(String userId, boolean onlyCreatorPermitted, String externalSourceGUID, String externalSourceName, String startingGUID, String startingGUIDParameterName, String startingElementTypeName, boolean forLineage, boolean forDuplicateProcessing, List<String> suppliedSupportedZones, String attachmentTypeGUID, String attachmentTypeName, Date effectiveTime, String methodName) Calls unlinkElementFromElement for all relationships of a certain type emanating from the requested element.unlinkConnectedElement
(String userId, boolean onlyCreatorPermitted, String externalSourceGUID, String externalSourceName, String startingGUID, String startingGUIDParameterName, String startingElementTypeName, boolean forLineage, boolean forDuplicateProcessing, List<String> suppliedSupportedZones, String attachmentTypeGUID, String attachmentTypeName, String detachedElementTypeName, Date effectiveTime, String methodName) Removes the relationship of a specific type attached to an entity.void
unlinkElementFromElement
(String userId, boolean onlyCreatorPermitted, String externalSourceGUID, String externalSourceName, String startingGUID, String startingGUIDParameterName, String startingElementTypeName, String attachingGUID, String attachingGUIDParameterName, String attachingElementTypeGUID, String attachingElementTypeName, boolean forLineage, boolean forDuplicateProcessing, String attachmentTypeGUID, String attachmentTypeName, Date effectiveTime, String methodName) Removes a relationship between two specified elements.void
unlinkElementFromElement
(String userId, boolean onlyCreatorPermitted, String externalSourceGUID, String externalSourceName, String startingGUID, String startingGUIDParameterName, String startingElementTypeName, String attachedGUID, String attachedGUIDParameterName, String attachedElementTypeGUID, String attachedElementTypeName, boolean forLineage, boolean forDuplicateProcessing, String attachmentTypeName, Relationship relationship, Date effectiveTime, String methodName) Removes a relationship between two specified elements.void
unlinkElementFromElement
(String userId, boolean onlyCreatorPermitted, String externalSourceGUID, String externalSourceName, String startingGUID, String startingGUIDParameterName, String startingElementTypeName, String attachedGUID, String attachedGUIDParameterName, String attachedElementTypeGUID, String attachedElementTypeName, boolean forLineage, boolean forDuplicateProcessing, List<String> suppliedSupportedZones, String attachmentTypeGUID, String attachmentTypeName, Date effectiveTime, String methodName) Removes a relationship between two specified elements.void
unlinkElementFromElement
(String userId, boolean onlyCreatorPermitted, String externalSourceGUID, String externalSourceName, String startingGUID, String startingGUIDParameterName, String startingElementTypeName, String attachedGUID, String attachedGUIDParameterName, String attachedElementTypeGUID, String attachedElementTypeName, boolean forLineage, boolean forDuplicateProcessing, List<String> suppliedSupportedZones, String attachmentTypeName, Relationship relationship, Date effectiveTime, String methodName) Removes a relationship between two specified elements.void
updateBeanEffectivityDates
(String userId, String externalSourceGUID, String externalSourceName, String beanGUID, String beanGUIDParameterName, String beanGUIDTypeGUID, String beanGUIDTypeName, boolean forLineage, boolean forDuplicateProcessing, Date effectiveFrom, Date effectiveTo, Date effectiveTime, String methodName) Update the effectivity dates of a specific entity .void
updateBeanEffectivityDates
(String userId, String externalSourceGUID, String externalSourceName, String beanGUID, String beanGUIDParameterName, String beanGUIDTypeGUID, String beanGUIDTypeName, boolean forLineage, boolean forDuplicateProcessing, Date effectiveFrom, Date effectiveTo, List<String> serviceSupportedZones, Date effectiveTime, String methodName) Update the effectivity dates of a specific entity .void
updateBeanInRepository
(String userId, String externalSourceGUID, String externalSourceName, String entityGUID, String entityGUIDParameterName, String entityTypeGUID, String entityTypeName, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, InstanceProperties updateProperties, boolean isMergeUpdate, Date effectiveTime, String methodName) Update one or more updateProperties in the requested entity.void
updateBeanInRepository
(String userId, String externalSourceGUID, String externalSourceName, String entityGUID, String entityGUIDParameterName, String entityTypeGUID, String entityTypeName, boolean forLineage, boolean forDuplicateProcessing, InstanceProperties updateProperties, boolean isMergeUpdate, Date effectiveTime, String methodName) Update one or more updateProperties in the requested entity.void
updateBeanInRepository
(String userId, String externalSourceGUID, String externalSourceName, String entityGUID, String entityGUIDParameterName, String entityTypeGUID, String entityTypeName, InstanceProperties properties, boolean isMergeUpdate, String methodName) Update one or more properties in the requested entity.void
updateBeanInRepository
(String userId, String externalSourceGUID, String externalSourceName, EntityDetail originalEntity, String entityGUIDParameterName, String entityTypeGUID, String entityTypeName, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, InstanceProperties updateProperties, boolean isMergeUpdate, Date effectiveTime, String methodName) Update one or more updateProperties in the requested entity.void
updateBeanPropertyInRepository
(String userId, String externalSourceGUID, String externalSourceName, String entityGUID, String entityGUIDParameterName, String entityTypeGUID, String entityTypeName, String propertyName, String propertyValue, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Update one or more properties in the requested entity.void
updateBeanStatusInRepository
(String userId, String externalSourceGUID, String externalSourceName, String entityGUID, String entityGUIDParameterName, String entityTypeGUID, String entityTypeName, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, InstanceStatus newStatus, String newStatusParameterName, Date effectiveTime, String methodName) Update the instance status in the requested entity.void
updateBeanStatusInRepository
(String userId, String externalSourceGUID, String externalSourceName, String entityGUID, String entityGUIDParameterName, String entityTypeGUID, String entityTypeName, boolean forLineage, boolean forDuplicateProcessing, InstanceStatus newStatus, String newStatusParameterName, Date effectiveTime, String methodName) Update the instance status in the requested entity.void
updateClassificationEffectivityDates
(String userId, String externalSourceGUID, String externalSourceName, String beanGUID, String beanGUIDParameterName, String beanGUIDTypeName, String classificationTypeGUID, String classificationTypeName, boolean forLineage, boolean forDuplicateProcessing, Date effectiveFrom, Date effectiveTo, List<String> serviceSupportedZones, Date effectiveTime, String methodName) Update the effectivity dates of a specific classification attached to a metadata element.void
updateElementToElementLink
(String userId, String externalSourceGUID, String externalSourceName, String relationshipGUID, String relationshipGUIDParameterName, String relationshipTypeName, boolean forLineage, boolean forDuplicateProcessing, boolean isMergeUpdate, Date effectiveFrom, Date effectiveTo, Map<String, Object> relationshipProperties, Date effectiveTime, String methodName) Updates a relationship between two elements and updates the LatestChange in each one's anchor entity (if they have one).void
updateElementToElementLink
(String userId, String externalSourceGUID, String externalSourceName, String relationshipGUID, String relationshipGUIDParameterName, String relationshipTypeName, boolean forLineage, boolean forDuplicateProcessing, List<String> suppliedSupportedZones, boolean isMergeUpdate, InstanceProperties relationshipProperties, Date effectiveTime, String methodName) Updates a relationship between two elements and updates the LatestChange in each one's anchor entity (if they have one).void
updateElementToElementLink
(String userId, String externalSourceGUID, String externalSourceName, String startingGUID, String startingGUIDParameterName, String startingElementTypeName, String attachingGUID, String attachingGUIDParameterName, String attachingElementTypeName, boolean forLineage, boolean forDuplicateProcessing, List<String> suppliedSupportedZones, String attachmentTypeGUID, String attachmentTypeName, boolean isMergeUpdate, InstanceProperties relationshipProperties, Date effectiveTime, String methodName) Updates a relationship between two elements and updates the LatestChange in each one's anchor entity (if they have one).void
updateRelationshipEffectivityDates
(String userId, String externalSourceGUID, String externalSourceName, String relationshipGUID, String relationshipGUIDParameterName, String relationshipGUIDTypeName, Date effectiveFrom, Date effectiveTo, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Update the effectivity dates of a specific relationship.void
updateRelationshipEffectivityDates
(String userId, String externalSourceGUID, String externalSourceName, String relationshipGUID, String relationshipGUIDParameterName, String relationshipGUIDTypeName, Date effectiveFrom, Date effectiveTo, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, Date effectiveTime, String methodName) Update the effectivity dates of a specific relationship.void
updateRelationshipProperties
(String userId, String externalSourceGUID, String externalSourceName, String relationshipGUID, String relationshipGUIDParameterName, String relationshipTypeName, boolean isMergeUpdate, InstanceProperties relationshipProperties, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Update the properties associated with a relationship.void
updateRelationshipProperties
(String userId, String externalSourceGUID, String externalSourceName, String relationshipGUID, String relationshipGUIDParameterName, String relationshipTypeName, boolean isMergeUpdate, InstanceProperties relationshipProperties, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, Date effectiveTime, String methodName) Update the properties associated with a relationship.validateAnchorEntity
(String userId, String connectToGUID, String connectToGUIDParameterName, String connectToType, boolean isExplicitGetRequest, boolean isUpdate, boolean forLineage, boolean forDuplicateProcessing, List<String> suppliedSupportedZones, Date effectiveTime, String methodName) Validates whether an operation is valid based on the type of entity it is connecting to, who the user is and whether it is a read or an update.validateAnchorEntity
(String userId, String connectToGUID, String connectToType, EntityDetail connectToEntity, String connectToGUIDParameterName, boolean isExplicitGetRequest, boolean isUpdate, boolean forLineage, boolean forDuplicateProcessing, List<String> suppliedSupportedZones, Date effectiveTime, String methodName) Validates whether an operation is valid based on the type of entity it is connecting to, who the user is and whether it is a read or an update.void
validateUniqueProperty
(String entityGUID, String entityTypeName, String uniqueParameterValue, String uniqueParameterName, Date effectiveTime, String methodName) Validates that the unique property is not already in use across all types that contain the unique property.void
verifyExternalSourceIdentity
(String userId, String externalSourceGUID, String externalSourceName, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Verify that the integrator identities are either null or refer to a valid software capability.Methods inherited from class org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIRootHandler
getConverter, getElementStub, getRepositoryHandler, getRepositoryHelper, getServerName, getServiceName, getSupportedZones, getTypeDefByName, setSecurityVerifier
-
Constructor Details
-
OpenMetadataAPIGenericHandler
public OpenMetadataAPIGenericHandler(OpenMetadataAPIGenericConverter<B> converter, Class<B> beanClass, 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 handler information needed to interact with the repository services- Parameters:
converter
- specific converter for this bean classbeanClass
- name of bean class that is represented by the generic class BserviceName
- 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 Details
-
setClassificationInRepository
public void setClassificationInRepository(String userId, String externalSourceGUID, String externalSourceName, String beanGUID, String beanGUIDParameterName, String beanGUIDTypeName, String classificationTypeGUID, String classificationTypeName, Date effectiveFrom, Date effectiveTo, boolean forLineage, boolean forDuplicateProcessing, boolean isMergeUpdate, Map<String, Object> classificationProperties, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedExceptionAdd the requested classification to the matching entity in the repository.- Parameters:
userId
- calling userexternalSourceGUID
- guid of the software capability entity that represented the external source - null for localexternalSourceName
- name of the software capability entity that represented the external sourcebeanGUID
- unique identifier of the entity in the repositoriesbeanGUIDParameterName
- parameter name that passed the beanGUIDbeanGUIDTypeName
- type of beanclassificationTypeGUID
- unique identifier of classification typeclassificationTypeName
- unique name of classification typeeffectiveFrom
- when should relationship be effective - null means immediatelyeffectiveTo
- when should relationship no longer be effective - null means neverforLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicateisMergeUpdate
- should the properties be merged with the existing properties or completely over-write themclassificationProperties
- properties to save in the classificationeffectiveTime
- the time that the retrieved elements must be effective formethodName
- calling method- Throws:
InvalidParameterException
- the classification name is nullPropertyServerException
- there is a problem with the repositoriesUserNotAuthorizedException
- the user is not allowed to perform this action
-
setClassificationInRepository
public void setClassificationInRepository(String userId, String externalSourceGUID, String externalSourceName, String beanGUID, String beanGUIDParameterName, String beanGUIDTypeName, String classificationTypeGUID, String classificationTypeName, InstanceProperties classificationProperties, boolean isMergeUpdate, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Add the requested classification to the matching entity in the repository.- Parameters:
userId
- calling userexternalSourceGUID
- guid of the software capability entity that represented the external source - null for localexternalSourceName
- name of the software capability entity that represented the external sourcebeanGUID
- unique identifier of the entity in the repositoriesbeanGUIDParameterName
- parameter name that passed the beanGUIDbeanGUIDTypeName
- type of beanclassificationTypeGUID
- unique identifier of classification typeclassificationTypeName
- unique name of classification typeclassificationProperties
- properties to save in the classificationisMergeUpdate
- should the properties be merged with the existing properties or completely over-write themforLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicateeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Throws:
InvalidParameterException
- the classification name is nullPropertyServerException
- there is a problem with the repositoriesUserNotAuthorizedException
- the user is not allowed to perform this action
-
setClassificationInRepository
public void setClassificationInRepository(String userId, String externalSourceGUID, String externalSourceName, String beanGUID, String beanGUIDParameterName, String beanGUIDTypeName, String classificationTypeGUID, String classificationTypeName, InstanceProperties classificationProperties, boolean isMergeUpdate, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Add the requested classification to the matching entity in the repository.- Parameters:
userId
- calling userexternalSourceGUID
- guid of the software capability entity that represented the external source - null for localexternalSourceName
- name of the software capability entity that represented the external sourcebeanGUID
- unique identifier of the entity in the repositoriesbeanGUIDParameterName
- parameter name that passed the beanGUIDbeanGUIDTypeName
- type of beanclassificationTypeGUID
- unique identifier of classification typeclassificationTypeName
- unique name of classification typeclassificationProperties
- properties to save in the classificationisMergeUpdate
- should the properties be merged with the existing properties or completely over-write themforLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicateserviceSupportedZones
- list of supported zones for this serviceeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Throws:
InvalidParameterException
- the classification name is nullPropertyServerException
- there is a problem with the repositoriesUserNotAuthorizedException
- the user is not allowed to perform this action
-
setClassificationInRepository
public void setClassificationInRepository(String userId, String externalSourceGUID, String externalSourceName, EntityDetail beanEntity, String beanGUIDParameterName, String beanGUIDTypeName, String classificationTypeGUID, String classificationTypeName, InstanceProperties classificationProperties, boolean isMergeUpdate, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Add the requested classification to the matching entity in the repository.- Parameters:
userId
- calling userexternalSourceGUID
- guid of the software capability entity that represented the external source - null for localexternalSourceName
- name of the software capability entity that represented the external sourcebeanEntity
- entity that the classification is forbeanGUIDParameterName
- parameter name that passed the beanGUIDbeanGUIDTypeName
- type of beanclassificationTypeGUID
- unique identifier of classification typeclassificationTypeName
- unique name of classification typeclassificationProperties
- properties to save in the classificationisMergeUpdate
- should the properties be merged with the existing properties or completely over-write themforDuplicateProcessing
- the query is for duplicate processing and so must not deduplicateforLineage
- the query is for lineage so ignore Memento classificationsserviceSupportedZones
- list of supported zones for this serviceeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Throws:
InvalidParameterException
- the classification name is nullPropertyServerException
- there is a problem with the repositoriesUserNotAuthorizedException
- the user is not allowed to perform this action
-
updateClassificationEffectivityDates
public void updateClassificationEffectivityDates(String userId, String externalSourceGUID, String externalSourceName, String beanGUID, String beanGUIDParameterName, String beanGUIDTypeName, String classificationTypeGUID, String classificationTypeName, boolean forLineage, boolean forDuplicateProcessing, Date effectiveFrom, Date effectiveTo, List<String> serviceSupportedZones, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Update the effectivity dates of a specific classification attached to a metadata element. The effectivity dates control the visibility of the classification through specific APIs.- Parameters:
userId
- calling userexternalSourceGUID
- guid of the software capability entity that represented the external source - null for localexternalSourceName
- name of the software capability entity that represented the external sourcebeanGUID
- unique identifier of the entity in the repositoriesbeanGUIDParameterName
- parameter name that passed the beanGUIDbeanGUIDTypeName
- type of beanclassificationTypeGUID
- unique identifier of classification typeclassificationTypeName
- unique name of classification typeforLineage
- the query is to support lineage retrievalforDuplicateProcessing
- the query is for duplicate processing and so must not deduplicateeffectiveFrom
- the date when this element is active - null for active noweffectiveTo
- the date when this element becomes inactive - null for active until deletedserviceSupportedZones
- list of supported zones for this serviceeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Throws:
InvalidParameterException
- either the unique identifier or the status are invalid in some wayUserNotAuthorizedException
- the user is not allowed to perform this actionPropertyServerException
- there is a problem with the metadata store
-
updateBeanEffectivityDates
public void updateBeanEffectivityDates(String userId, String externalSourceGUID, String externalSourceName, String beanGUID, String beanGUIDParameterName, String beanGUIDTypeGUID, String beanGUIDTypeName, boolean forLineage, boolean forDuplicateProcessing, Date effectiveFrom, Date effectiveTo, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Update the effectivity dates of a specific entity . The effectivity dates control the visibility of the entity through specific APIs.- Parameters:
userId
- calling userexternalSourceGUID
- guid of the software capability entity that represented the external source - null for localexternalSourceName
- name of the software capability entity that represented the external sourcebeanGUID
- unique identifier of the entity in the repositoriesbeanGUIDParameterName
- parameter name that passed the beanGUIDbeanGUIDTypeGUID
- type of beanbeanGUIDTypeName
- type of beanforLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicateeffectiveFrom
- the date when this element is active - null for active noweffectiveTo
- the date when this element becomes inactive - null for active until deletedeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Throws:
InvalidParameterException
- either the unique identifier or the status are invalid in some wayUserNotAuthorizedException
- the user is not allowed to perform this actionPropertyServerException
- there is a problem with the metadata store
-
updateBeanEffectivityDates
public void updateBeanEffectivityDates(String userId, String externalSourceGUID, String externalSourceName, String beanGUID, String beanGUIDParameterName, String beanGUIDTypeGUID, String beanGUIDTypeName, boolean forLineage, boolean forDuplicateProcessing, Date effectiveFrom, Date effectiveTo, List<String> serviceSupportedZones, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Update the effectivity dates of a specific entity . The effectivity dates control the visibility of the entity through specific APIs.- Parameters:
userId
- calling userexternalSourceGUID
- guid of the software capability entity that represented the external source - null for localexternalSourceName
- name of the software capability entity that represented the external sourcebeanGUID
- unique identifier of the entity in the repositoriesbeanGUIDParameterName
- parameter name that passed the beanGUIDbeanGUIDTypeGUID
- type of beanbeanGUIDTypeName
- type of beanforLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicateeffectiveFrom
- the date when this element is active - null for active noweffectiveTo
- the date when this element becomes inactive - null for active until deletedserviceSupportedZones
- list of supported zones for this serviceeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Throws:
InvalidParameterException
- either the unique identifier or the status are invalid in some wayUserNotAuthorizedException
- the user is not allowed to perform this actionPropertyServerException
- there is a problem with the metadata store
-
updateRelationshipEffectivityDates
public void updateRelationshipEffectivityDates(String userId, String externalSourceGUID, String externalSourceName, String relationshipGUID, String relationshipGUIDParameterName, String relationshipGUIDTypeName, Date effectiveFrom, Date effectiveTo, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Update the effectivity dates of a specific relationship. The effectivity dates control the visibility of the relationship through specific APIs.- Parameters:
userId
- calling userexternalSourceGUID
- guid of the software capability entity that represented the external source - null for localexternalSourceName
- name of the software capability entity that represented the external sourcerelationshipGUID
- unique identifier of the entity in the repositoriesrelationshipGUIDParameterName
- parameter name that passed the relationshipGUIDrelationshipGUIDTypeName
- type of relationshipeffectiveFrom
- the date when this element is active - null for active noweffectiveTo
- the date when this element becomes inactive - null for active until deletedforLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?effectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Throws:
InvalidParameterException
- either the unique identifier or the status are invalid in some wayUserNotAuthorizedException
- the user is not allowed to perform this actionPropertyServerException
- there is a problem with the metadata store
-
updateRelationshipEffectivityDates
public void updateRelationshipEffectivityDates(String userId, String externalSourceGUID, String externalSourceName, String relationshipGUID, String relationshipGUIDParameterName, String relationshipGUIDTypeName, Date effectiveFrom, Date effectiveTo, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Update the effectivity dates of a specific relationship. The effectivity dates control the visibility of the relationship through specific APIs.- Parameters:
userId
- calling userexternalSourceGUID
- guid of the software capability entity that represented the external source - null for localexternalSourceName
- name of the software capability entity that represented the external sourcerelationshipGUID
- unique identifier of the entity in the repositoriesrelationshipGUIDParameterName
- parameter name that passed the relationshipGUIDrelationshipGUIDTypeName
- type of relationshipeffectiveFrom
- the date when this element is active - null for active noweffectiveTo
- the date when this element becomes inactive - null for active until deletedforLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?serviceSupportedZones
- list of supported zones for this serviceeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Throws:
InvalidParameterException
- either the unique identifier or the status are invalid in some wayUserNotAuthorizedException
- the user is not allowed to perform this actionPropertyServerException
- there is a problem with the metadata store
-
updateRelationshipProperties
public void updateRelationshipProperties(String userId, String externalSourceGUID, String externalSourceName, String relationshipGUID, String relationshipGUIDParameterName, String relationshipTypeName, boolean isMergeUpdate, InstanceProperties relationshipProperties, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Update the properties associated with a relationship. Effectivity dates are unchanged.- Parameters:
userId
- caller's userIdexternalSourceGUID
- guid of the software capability entity that represented the external source - null for localexternalSourceName
- name of the software capability entity that represented the external sourcerelationshipGUID
- unique identifier of the relationship to updaterelationshipGUIDParameterName
- name of the parameter supplying the relationshipGUIDrelationshipTypeName
- type name of relationship if known (null is ok)isMergeUpdate
- should the supplied updateProperties be merged with existing properties (true) by replacing just the properties with matching names, or should the entire properties of the instance be replaced?relationshipProperties
- new properties for the relationshipforLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?effectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Throws:
InvalidParameterException
- the unique identifier of the relationship is null or invalid in some way; the properties are not valid for this type of relationshipUserNotAuthorizedException
- the user is not allowed to perform this actionPropertyServerException
- there is a problem with the metadata store
-
updateRelationshipProperties
public void updateRelationshipProperties(String userId, String externalSourceGUID, String externalSourceName, String relationshipGUID, String relationshipGUIDParameterName, String relationshipTypeName, boolean isMergeUpdate, InstanceProperties relationshipProperties, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Update the properties associated with a relationship. Effectivity dates are unchanged.- Parameters:
userId
- caller's userIdexternalSourceGUID
- guid of the software capability entity that represented the external source - null for localexternalSourceName
- name of the software capability entity that represented the external sourcerelationshipGUID
- unique identifier of the relationship to updaterelationshipGUIDParameterName
- name of the parameter supplying the relationshipGUIDrelationshipTypeName
- type name of relationship if known (null is ok)isMergeUpdate
- should the supplied updateProperties be merged with existing properties (true) by replacing just the properties with matching names, or should the entire properties of the instance be replaced?relationshipProperties
- new properties for the relationshipforLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?serviceSupportedZones
- list of supported zones for this serviceeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Throws:
InvalidParameterException
- the unique identifier of the relationship is null or invalid in some way; the properties are not valid for this type of relationshipUserNotAuthorizedException
- the user is not allowed to perform this actionPropertyServerException
- there is a problem with the metadata store
-
deleteRelationship
public void deleteRelationship(String userId, String externalSourceGUID, String externalSourceName, String relationshipGUID, String relationshipGUIDParameterName, String relationshipTypeName, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Update the properties associated with a relationship. Effectivity dates are unchanged.- Parameters:
userId
- caller's userIdexternalSourceGUID
- guid of the software capability entity that represented the external source - null for localexternalSourceName
- name of the software capability entity that represented the external sourcerelationshipGUID
- unique identifier of the relationship to updaterelationshipGUIDParameterName
- name of the parameter supplying the relationshipGUIDrelationshipTypeName
- type name of relationship if known (null is ok)forLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?effectiveTime
- time when the relationship is effectivemethodName
- calling method- Throws:
InvalidParameterException
- the unique identifier of the relationship is null or invalid in some way; the properties are not valid for this type of relationshipUserNotAuthorizedException
- the user is not allowed to perform this actionPropertyServerException
- there is a problem with the metadata store
-
removeClassificationFromRepository
public void removeClassificationFromRepository(String userId, String externalSourceGUID, String externalSourceName, String beanGUID, String beanGUIDParameterName, String beanGUIDTypeName, String classificationTypeGUID, String classificationTypeName, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Remove the requested classification from the matching entity in the repository.- Parameters:
userId
- calling userexternalSourceGUID
- guid of the software capability entity that represented the external source - null for localexternalSourceName
- name of the software capability entity that represented the external sourcebeanGUID
- unique identifier of the entity in the repositoriesbeanGUIDParameterName
- parameter name that passed the beanGUIDbeanGUIDTypeName
- type of beanclassificationTypeGUID
- unique identifier of classification typeclassificationTypeName
- unique name of classification typeforLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicateeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Throws:
InvalidParameterException
- the classification name is nullPropertyServerException
- there is a problem with the repositoriesUserNotAuthorizedException
- the user is not allowed to perform this action
-
removeClassificationFromRepository
public void removeClassificationFromRepository(String userId, String externalSourceGUID, String externalSourceName, String beanGUID, String beanGUIDParameterName, String beanGUIDTypeName, String classificationTypeGUID, String classificationTypeName, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Remove the requested classification from the matching entity in the repository.- Parameters:
userId
- calling userexternalSourceGUID
- guid of the software capability entity that represented the external source - null for localexternalSourceName
- name of the software capability entity that represented the external sourcebeanGUID
- unique identifier of the entity in the repositoriesbeanGUIDParameterName
- parameter name that passed the beanGUIDbeanGUIDTypeName
- type of beanclassificationTypeGUID
- unique identifier of classification typeclassificationTypeName
- unique name of classification typeforLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicateserviceSupportedZones
- list of supported zones for this serviceeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Throws:
InvalidParameterException
- the classification name is nullPropertyServerException
- there is a problem with the repositoriesUserNotAuthorizedException
- the user is not allowed to update the security tags
-
getAnchorGUIDFromAnchorsClassification
public OpenMetadataAPIGenericHandler.AnchorIdentifiers getAnchorGUIDFromAnchorsClassification(EntitySummary connectToEntity, String methodName) Retrieve the anchorGUID property from the Anchors classification if present. A null is returned if the Anchors classification is missing, or the property is missing from the classification or is null.- Parameters:
connectToEntity
- entity containing the classificationsmethodName
- calling method- Returns:
- anchorGUID or null
-
validateAnchorEntity
public EntityDetail validateAnchorEntity(String userId, String connectToGUID, String connectToGUIDParameterName, String connectToType, boolean isExplicitGetRequest, boolean isUpdate, boolean forLineage, boolean forDuplicateProcessing, List<String> suppliedSupportedZones, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Validates whether an operation is valid based on the type of entity it is connecting to, who the user is and whether it is a read or an update.- Parameters:
userId
- userId of user making request.connectToGUID
- unique id for the object to connect the attachment to.connectToGUIDParameterName
- name of the parameter that passed the connectTo guidconnectToType
- type of the connectToElement.isExplicitGetRequest
- Is this request an explicit get request for the asset or a find request.isUpdate
- is this an update request?forLineage
- the query is to support lineage retrievalforDuplicateProcessing
- the query is for duplicate processing and so must not deduplicatesuppliedSupportedZones
- supported zone list from calling serviceeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- anchor entity or null. The anchor entity is used by the caller to set the LatestChange classification
- Throws:
InvalidParameterException
- one of the parameters is null or invalid.PropertyServerException
- there is a problem adding the asset properties to the repositories.UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
validateAnchorEntity
public EntityDetail validateAnchorEntity(String userId, String connectToGUID, String connectToType, EntityDetail connectToEntity, String connectToGUIDParameterName, boolean isExplicitGetRequest, boolean isUpdate, boolean forLineage, boolean forDuplicateProcessing, List<String> suppliedSupportedZones, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Validates whether an operation is valid based on the type of entity it is connecting to, who the user is and whether it is a read or an update.
The first part of this method is looking to see if the connectToEntity is an anchor entity. In which case it calls any specific validation for that entity and returns the connectToEntity, assuming all is ok - exceptions are thrown if the entity is not valid or the user does not have access to it.
If the connectToEntity is of a type that has a lifecycle that is linked to the lifecycle of another entity - typically a referenceable - then that other entity is its anchor (examples are schema elements, comments, connections). The anchor entity needs to be retrieved and validated.
Some anchor entities have specific validation to perform.- Parameters:
userId
- userId of user making request.connectToGUID
- unique id for the object to connect the attachment toconnectToType
- name of type of connectToEntityconnectToEntity
- entity retrieved from the repositoryconnectToGUIDParameterName
- name of the parameter that passed the connectTo guidisExplicitGetRequest
- Is this request an explicit get request for the asset or a find request.isUpdate
- is this an update request?forLineage
- the query is to support lineage retrievalforDuplicateProcessing
- the query is for duplicate processing and so must not deduplicatesuppliedSupportedZones
- list of supported zones from the caller.effectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- anchor entity or null if this entity is an anchor or does not have an anchor. The anchor entity is used by the caller to set the LatestChange classification
- Throws:
InvalidParameterException
- one of the parameters is null or invalid.PropertyServerException
- there is a problem accessing the properties in the repositories.UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
validateUniqueProperty
public void validateUniqueProperty(String entityGUID, String entityTypeName, String uniqueParameterValue, String uniqueParameterName, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Validates that the unique property is not already in use across all types that contain the unique property.- Parameters:
entityGUID
- existing entity (or null if this is a create)entityTypeName
- the unique name of the type of the entityuniqueParameterValue
- the value of the unique parameteruniqueParameterName
- the name of the unique parametereffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method for exceptions and error messages- Throws:
InvalidParameterException
- one of the parameters is null or invalid.PropertyServerException
- there is a problem accessing the properties in the repositories.UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
addAnchorGUIDToBuilder
public void addAnchorGUIDToBuilder(String userId, String anchorGUID, String anchorGUIDParameterName, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, List<String> serviceSuppliedSupportedZones, OpenMetadataAPIGenericBuilder builder, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Validate the anchor guid and add its type and identifier to the builder.- Parameters:
userId
- calling useranchorGUID
- unique identifier of the anchoranchorGUIDParameterName
- parameter used to pass anchorGUIDforLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicateeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)serviceSuppliedSupportedZones
- supported zones for this callbuilder
- builder to receive the anchor (if appropriate).methodName
- calling method- Throws:
InvalidParameterException
- asset or element not known, null userId or guidPropertyServerException
- problem accessing property serverUserNotAuthorizedException
- security access problem
-
getDomainName
Return the domain name of an entity.- Parameters:
instance
- entity- Returns:
- domain name
-
getDomainName
Return the domain name of an type.- Parameters:
typeName
- type to check- Returns:
- domain name
-
addAnchorsClassification
public void addAnchorsClassification(String userId, String beanGUID, String beanGUIDParameterName, String beanGUIDTypeName, String anchorGUID, String anchorTypeName, String anchorDomainName, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Classify an element with the Anchors classification.- Parameters:
userId
- calling userbeanGUID
- unique identifier of beanbeanGUIDParameterName
- anchorGUID of parameter supplying the beanGUIDbeanGUIDTypeName
- type of beananchorGUID
- unique identifier of the anchoranchorTypeName
- unique name of the type of the anchoranchorDomainName
- unique name of the type of the anchorforLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicateeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Throws:
InvalidParameterException
- asset or element not known, null userId or guidPropertyServerException
- problem accessing property serverUserNotAuthorizedException
- security access problem
-
maintainSupplementaryProperties
public void maintainSupplementaryProperties(String userId, String elementGUID, String elementGUIDParameterName, String elementTypeName, String elementDomainName, String elementQualifiedName, String displayName, String summary, String description, String abbreviation, String usage, boolean isMergeUpdate, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Maintain the supplementary properties of a technical metadata element in a glossary term linked to the supplied element. The glossary term needs to be connected to a glossary which may need to be created. There is no use of effective time on these elements because they are effective all the time that the asset is effective- Parameters:
userId
- calling userelementGUID
- element for theelementGUIDParameterName
- name of guid parameterelementTypeName
- type of elementelementDomainName
- domain of elementelementQualifiedName
- qualified name of the linked elementdisplayName
- display name for the termsummary
- short descriptiondescription
- description of the termabbreviation
- abbreviation used for the termusage
- illustrations of how the term is usedisMergeUpdate
- should the new properties be merged with the existing properties or completely replace them?forLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?effectiveTime
- the time that the retrieved elements must be effective formethodName
- calling method- Throws:
InvalidParameterException
- the parameters are invalidUserNotAuthorizedException
- user not authorized to issue this requestPropertyServerException
- problem detected in the repository services
-
getSupplementaryProperties
public EntityDetail getSupplementaryProperties(String elementGUID, String elementGUIDParameterName, String elementTypeName, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the supplementary properties of a technical metadata element in a glossary term linked to the supplied element. The glossary term needs to be connected to a glossary which may need to be created. There is no use of effective time on these elements because they are effective all the time that the asset is effective- Parameters:
elementGUID
- unique identifier of the linked elementelementGUIDParameterName
- name of guid parameterelementTypeName
- type of elementforLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?effectiveTime
- the time that the retrieved elements must be effective formethodName
- calling method- Returns:
- entity containing the supplementary properties
- Throws:
InvalidParameterException
- the parameters are invalidUserNotAuthorizedException
- user not authorized to issue this requestPropertyServerException
- problem detected in the repository services
-
countAttachments
public int countAttachments(String userId, String elementGUID, String elementTypeName, String attachmentTypeGUID, String attachmentTypeName, int attachmentEntityEnd, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Count up the number of elements of a certain type that are attached to a specific entity.- Parameters:
userId
- calling userelementGUID
- unique identifier for the entity that the object is attached to (anchor entity)elementTypeName
- type of the anchor entityattachmentTypeGUID
- unique identifier of the attachment relationship's typeattachmentTypeName
- unique name of the attachment's typeattachmentEntityEnd
- which relationship end should the attached entity be located? 0=either end; 1=end1; 2=end2forLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?effectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- count of attached objects that are effective now
- Throws:
InvalidParameterException
- the parameters are invalidUserNotAuthorizedException
- user not authorized to issue this requestPropertyServerException
- problem accessing the repositories
-
getAttachedEntity
public EntityDetail getAttachedEntity(String userId, String startingElementGUID, String startingElementGUIDParameterName, String startingElementTypeName, String relationshipTypeGUID, String relationshipTypeName, String resultingElementTypeName, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Return the entity for the required relationship attached to a specific entity. This method assumes the starting entity has a validated anchor- Parameters:
userId
- calling userstartingElementGUID
- identifier for the entity that the identifier is attached tostartingElementGUIDParameterName
- name of the parameter used to pass the guidstartingElementTypeName
- type name for anchorrelationshipTypeGUID
- unique identifier of the attachment's relationship typerelationshipTypeName
- unique name of the attachment's relationship typeresultingElementTypeName
- unique name of the attached entity's typeforLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicateeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- list of retrieved objects or null if none found
- Throws:
InvalidParameterException
- the input properties are invalidUserNotAuthorizedException
- user not authorized to issue this requestPropertyServerException
- problem accessing the repositories
-
getAttachedEntity
public EntityDetail getAttachedEntity(String userId, String startingElementGUID, String startingElementGUIDParameterName, String startingElementTypeName, String relationshipTypeGUID, String relationshipTypeName, String resultingElementTypeName, int attachmentEntityEnd, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Return the entity for the required relationship attached to a specific entity. This method assumes the starting entity has a validated anchor- Parameters:
userId
- calling userstartingElementGUID
- identifier for the entity that the identifier is attached tostartingElementGUIDParameterName
- name of the parameter used to pass the guidstartingElementTypeName
- type name for anchorrelationshipTypeGUID
- unique identifier of the attachment's relationship typerelationshipTypeName
- unique name of the attachment's relationship typeresultingElementTypeName
- unique name of the attached entity's typeattachmentEntityEnd
- which relationship end should the attached entity be located? 0=either end; 1=end1; 2=end2forLineage
- is this part of a lineage request?forDuplicateProcessing
- the request is for duplicate processing and so must not deduplicateserviceSupportedZones
- supported zones for calling serviceeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- list of retrieved objects or null if none found
- Throws:
InvalidParameterException
- the input properties are invalidUserNotAuthorizedException
- user not authorized to issue this requestPropertyServerException
- problem accessing the repositories
-
getAttachedEntityFromUser
public EntityDetail getAttachedEntityFromUser(String userId, String startingEntityGUID, String startingEntityTypeName, String relationshipTypeGUID, String relationshipTypeName, String attachedEntityTypeGUID, String attachedEntityTypeName, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Return the list of entities at the other end of the requested relationship type that were created or edited by the requesting user.- Parameters:
userId
- user making the requeststartingEntityGUID
- starting entity's GUIDstartingEntityTypeName
- starting entity's type namerelationshipTypeGUID
- identifier for the relationship to followrelationshipTypeName
- type name for the relationship to followattachedEntityTypeGUID
- identifier for the relationship to followattachedEntityTypeName
- type name for the relationship to followeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- name of calling method- Returns:
- retrieved entities or null
- Throws:
InvalidParameterException
- the entity at the other end is not of the expected typePropertyServerException
- problem accessing the property serverUserNotAuthorizedException
- security access problem
-
getAttachedEntitiesFromUser
public List<EntityDetail> getAttachedEntitiesFromUser(String userId, String startingEntityGUID, String startingEntityTypeName, String relationshipTypeGUID, String relationshipTypeName, String attachedEntityTypeGUID, String attachedEntityTypeName, String sequencingPropertyName, int startingFrom, int pageSize, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Return the list of entities at the other end of the requested relationship type that were created or edited by the requesting user.- Parameters:
userId
- user making the requeststartingEntityGUID
- starting entity's GUIDstartingEntityTypeName
- starting entity's type namerelationshipTypeGUID
- identifier for the relationship to followrelationshipTypeName
- type name for the relationship to followattachedEntityTypeGUID
- identifier for the relationship to followattachedEntityTypeName
- type name for the relationship to followsequencingPropertyName
- name of property used to sequence the results - needed for pagingstartingFrom
- initial position in the stored listpageSize
- maximum number of definitions to return on this call.effectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- name of calling method- Returns:
- retrieved entities or null
- Throws:
PropertyServerException
- problem accessing the property serverUserNotAuthorizedException
- security access problemInvalidParameterException
- one of the parameters is in error
-
getAttachedEntities
public List<EntityDetail> getAttachedEntities(String userId, String startingGUID, String startingGUIDParameterName, String startingTypeName, String relationshipTypeGUID, String relationshipTypeName, String resultingElementTypeName, String requiredClassificationName, String omittedClassificationName, int attachmentEntityEnd, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, int startingFrom, int pageSize, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Return the entities for the required relationships attached to a specific entity.- Parameters:
userId
- calling userstartingGUID
- identifier for the entity that the identifier is attached tostartingGUIDParameterName
- name of the parameter used to pass the guidstartingTypeName
- type name for anchorrelationshipTypeGUID
- unique identifier of the attachment's relationship typerelationshipTypeName
- unique name of the attachment's relationship typeresultingElementTypeName
- unique name of the attached entity's typerequiredClassificationName
- name of a classification that must be on the entity for a matchomittedClassificationName
- name of a classification that must NOT be on the entity for a matchattachmentEntityEnd
- which relationship end should the attached entity be located? 0=either end; 1=end1; 2=end2forLineage
- is this part of a lineage request?forDuplicateProcessing
- the request is for duplicate processing and so must not deduplicateserviceSupportedZones
- supported zones for calling servicestartingFrom
- start position for resultspageSize
- maximum number of resultseffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- list of retrieved objects or null if none found
- Throws:
InvalidParameterException
- the input properties are invalidUserNotAuthorizedException
- user not authorized to issue this requestPropertyServerException
- problem accessing the repositories
-
getAttachedEntities
public List<EntityDetail> getAttachedEntities(String userId, EntityDetail startingElement, String startingElementGUIDParameterName, String startingElementTypeName, String relationshipTypeGUID, String relationshipTypeName, String resultingElementTypeName, String requiredClassificationName, String omittedClassificationName, int attachmentEntityEnd, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, int startingFrom, int pageSize, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Return the entities for the required relationships attached to a specific entity.- Parameters:
userId
- calling userstartingElement
- the entity that the required element is attached tostartingElementGUIDParameterName
- name of the parameter used to pass the guidstartingElementTypeName
- type name for anchorrelationshipTypeGUID
- unique identifier of the attachment's relationship typerelationshipTypeName
- unique name of the attachment's relationship typeresultingElementTypeName
- unique name of the attached entity's typerequiredClassificationName
- name of a classification that must be on the entity for a matchomittedClassificationName
- name of a classification that must NOT be on the entity for a matchattachmentEntityEnd
- which relationship end should the attached entity be located? 0=either end; 1=end1; 2=end2forLineage
- is this part of a lineage request?forDuplicateProcessing
- the request is for duplicate processing and so must not deduplicateserviceSupportedZones
- supported zones for calling servicestartingFrom
- start position for resultspageSize
- maximum number of resultseffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- list of retrieved objects or null if none found
- Throws:
InvalidParameterException
- the input properties are invalidUserNotAuthorizedException
- user not authorized to issue this requestPropertyServerException
- problem accessing the repositories
-
getAttachedEntities
public List<EntityDetail> getAttachedEntities(String userId, String startingElementGUID, String startingElementGUIDParameterName, String startingElementTypeName, String relationshipTypeGUID, String relationshipTypeName, String resultingElementTypeName, String requiredClassificationName, String omittedClassificationName, int attachmentEntityEnd, boolean forLineage, boolean forDuplicateProcessing, int startingFrom, int pageSize, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Return the entities for the required relationships attached to a specific entity.- Parameters:
userId
- calling userstartingElementGUID
- identifier for the entity that the identifier is attached tostartingElementGUIDParameterName
- name of the parameter used to pass the guidstartingElementTypeName
- type name for anchorrelationshipTypeGUID
- unique identifier of the attachment's relationship typerelationshipTypeName
- unique name of the attachment's relationship typeresultingElementTypeName
- unique name of the attached entity's typerequiredClassificationName
- name of a classification that must be on the entity for a matchomittedClassificationName
- name of a classification that must NOT be on the entity for a matchattachmentEntityEnd
- which relationship end should the attached entity be located? 0=either end; 1=end1; 2=end2forLineage
- is this part of a lineage request?forDuplicateProcessing
- the request is for duplicate processing and so must not deduplicatestartingFrom
- start position for resultspageSize
- maximum number of resultseffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- list of retrieved objects or null if none found
- Throws:
InvalidParameterException
- the input properties are invalidUserNotAuthorizedException
- user not authorized to issue this requestPropertyServerException
- problem accessing the repositories
-
getAttachmentLink
public Relationship getAttachmentLink(String userId, String relationshipGUID, String relationshipGUIDParameterName, String relationshipTypeName, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Return a visible relationship retrieved by its GUID.- Parameters:
userId
- calling userrelationshipGUID
- unique identifierrelationshipGUIDParameterName
- parameter passing the unique identifierrelationshipTypeName
- type of relationship to be retrievedeffectiveTime
- effective time for the retrievalmethodName
- calling method- Returns:
- list of retrieved objects or null if none found
- Throws:
InvalidParameterException
- the input properties are invalidUserNotAuthorizedException
- user not authorized to issue this requestPropertyServerException
- problem accessing the repositories
-
getUniqueAttachmentLink
public Relationship getUniqueAttachmentLink(String userId, String startingGUID, String startingGUIDParameterName, String startingTypeName, String attachmentRelationshipTypeGUID, String attachmentRelationshipTypeName, String attachmentEntityGUID, String attachmentEntityTypeName, int attachmentEntityEnd, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Return the relationship between the requested elements - there should be only one. Note that the entities are not checked.- Parameters:
userId
- calling userstartingGUID
- identifier for the entity that the identifier is attached tostartingGUIDParameterName
- name of the parameter used to pass the guidstartingTypeName
- type name for anchorattachmentRelationshipTypeGUID
- unique identifier of the relationship type connect to the attachmentattachmentRelationshipTypeName
- unique name of the relationship type connect to the attachmentattachmentEntityGUID
- unique identifier of the entity on the other end or null if unknownattachmentEntityTypeName
- unique name of the attached entity's typeattachmentEntityEnd
- which relationship end should the attached entity be located? 0=either end; 1=end1; 2=end2forLineage
- is this a lineage requestforDuplicateProcessing
- is this processing part of duplicate processing?effectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- list of retrieved relationships or null if none found
- Throws:
InvalidParameterException
- the input properties are invalidUserNotAuthorizedException
- user not authorized to issue this requestPropertyServerException
- problem accessing the repositories
-
getUniqueAttachmentLink
public Relationship getUniqueAttachmentLink(String userId, String startingGUID, String startingGUIDParameterName, String startingTypeName, String attachmentRelationshipTypeGUID, String attachmentRelationshipTypeName, String attachmentEntityGUID, String attachmentEntityTypeName, int attachmentEntityEnd, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Return the relationship between the requested elements - there should be only one. Note that the entities are not checked.- Parameters:
userId
- calling userstartingGUID
- identifier for the entity that the identifier is attached tostartingGUIDParameterName
- name of the parameter used to pass the guidstartingTypeName
- type name for anchorattachmentRelationshipTypeGUID
- unique identifier of the relationship type connect to the attachmentattachmentRelationshipTypeName
- unique name of the relationship type connect to the attachmentattachmentEntityGUID
- unique identifier of the entity on the other end or null if unknownattachmentEntityTypeName
- unique name of the attached entity's typeattachmentEntityEnd
- which relationship end should the attached entity be located? 0=either end; 1=end1; 2=end2forLineage
- is this a lineage requestforDuplicateProcessing
- is this processing part of duplicate processing?serviceSupportedZones
- list of supported zones for this serviceeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- list of retrieved relationships or null if none found
- Throws:
InvalidParameterException
- the input properties are invalidUserNotAuthorizedException
- user not authorized to issue this requestPropertyServerException
- problem accessing the repositories
-
getAllAttachmentLinks
public List<Relationship> getAllAttachmentLinks(String userId, String startingGUID, String startingGUIDParameterName, String startingTypeName, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Return all relationships attached to a specific entity.- Parameters:
userId
- calling userstartingGUID
- identifier for the entity that the identifier is attached tostartingGUIDParameterName
- name of the parameter used to pass the guidstartingTypeName
- type name for anchorforLineage
- is this a lineage requestforDuplicateProcessing
- is this processing part of duplicate processing?effectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- list of retrieved relationships or null if none found
- Throws:
InvalidParameterException
- the input properties are invalidUserNotAuthorizedException
- user not authorized to issue this requestPropertyServerException
- problem accessing the repositories
-
getAttachmentLinks
public List<Relationship> getAttachmentLinks(String userId, String startingGUID, String startingGUIDParameterName, String startingTypeName, String attachmentRelationshipTypeGUID, String attachmentRelationshipTypeName, String attachmentEntityGUID, String attachmentEntityTypeName, int attachmentEntityEnd, boolean forLineage, boolean forDuplicateProcessing, int startingFrom, int pageSize, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Return the relationships to required elements attached to a specific entity. Note that the entities are not checked.- Parameters:
userId
- calling userstartingGUID
- identifier for the entity that the identifier is attached tostartingGUIDParameterName
- name of the parameter used to pass the guidstartingTypeName
- type name for anchorattachmentRelationshipTypeGUID
- unique identifier of the relationship type connect to the attachmentattachmentRelationshipTypeName
- unique name of the relationship type connect to the attachmentattachmentEntityGUID
- unique identifier of the entity on the other end or null if unknownattachmentEntityTypeName
- unique name of the attached entity's typeattachmentEntityEnd
- which relationship end should the attached entity be located? 0=either end; 1=end1; 2=end2forLineage
- is this a lineage requestforDuplicateProcessing
- is this processing part of duplicate processing?startingFrom
- start position for resultspageSize
- maximum number of resultseffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- list of retrieved relationships or null if none found
- Throws:
InvalidParameterException
- the input properties are invalidUserNotAuthorizedException
- user not authorized to issue this requestPropertyServerException
- problem accessing the repositories
-
getAttachmentLinks
public List<Relationship> getAttachmentLinks(String userId, String startingGUID, String startingGUIDParameterName, String startingTypeName, String attachmentRelationshipTypeGUID, String attachmentRelationshipTypeName, String attachmentEntityGUID, String attachmentEntityTypeName, int attachmentEntityEnd, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, int startingFrom, int pageSize, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Return the relationships to required elements attached to a specific entity. Note that the entities are not checked.- Parameters:
userId
- calling userstartingGUID
- identifier for the entity that the identifier is attached tostartingGUIDParameterName
- name of the parameter used to pass the guidstartingTypeName
- type name for anchorattachmentRelationshipTypeGUID
- unique identifier of the relationship type connect to the attachmentattachmentRelationshipTypeName
- unique name of the relationship type connect to the attachmentattachmentEntityGUID
- unique identifier of the entity on the other end or null if unknownattachmentEntityTypeName
- unique name of the attached entity's typeattachmentEntityEnd
- which relationship end should the attached entity be located? 0=either end; 1=end1; 2=end2forLineage
- is this a lineage requestforDuplicateProcessing
- is this processing part of duplicate processing?serviceSupportedZones
- supported zones for calling servicestartingFrom
- start position for resultspageSize
- maximum number of resultseffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- list of retrieved relationships or null if none found
- Throws:
InvalidParameterException
- the input properties are invalidUserNotAuthorizedException
- user not authorized to issue this requestPropertyServerException
- problem accessing the repositories
-
getAttachmentLinks
public List<Relationship> getAttachmentLinks(String userId, EntityDetail startingEntity, String startingGUIDParameterName, String startingTypeName, String attachmentRelationshipTypeGUID, String attachmentRelationshipTypeName, String attachmentEntityGUID, String attachmentEntityTypeName, int attachmentEntityEnd, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, int startingFrom, int pageSize, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Return the relationships to required elements attached to a specific entity. Note that the entities are not checked.- Parameters:
userId
- calling userstartingEntity
- the entity that the identifier is attached tostartingGUIDParameterName
- name of the parameter used to pass the guidstartingTypeName
- type name for anchorattachmentRelationshipTypeGUID
- unique identifier of the relationship type connect to the attachmentattachmentRelationshipTypeName
- unique name of the relationship type connect to the attachmentattachmentEntityGUID
- unique identifier of the entity on the other end or null if unknownattachmentEntityTypeName
- unique name of the attached entity's typeattachmentEntityEnd
- which relationship end should the attached entity be located? 0=either end; 1=end1; 2=end2forLineage
- is this a lineage requestforDuplicateProcessing
- is this processing part of duplicate processing?serviceSupportedZones
- supported zones for calling servicestartingFrom
- start position for resultspageSize
- maximum number of resultseffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- list of retrieved relationships or null if none found
- Throws:
InvalidParameterException
- the input properties are invalidUserNotAuthorizedException
- user not authorized to issue this requestPropertyServerException
- problem accessing the repositories
-
getAttachmentsForType
public List<Relationship> getAttachmentsForType(String userId, String relationshipTypeName, List<InstanceStatus> limitResultsByStatus, Date asOfTime, String sequencingProperty, SequencingOrder sequencingOrder, int startingFrom, int pageSize, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Return all elements for a specific type.- Parameters:
userId
- calling userrelationshipTypeName
- type of relationshiplimitResultsByStatus
- By default, entities in all statuses (other than DELETE) are returned. However, it is possible to specify a list of statuses (eg ACTIVE) to restrict the results to. Null means all status values.asOfTime
- time requirementssequencingProperty
- optional property used to order resultssequencingOrder
- how should results be orderedstartingFrom
- paging start frompageSize
- maximum results returned in one calleffectiveTime
- effective timemethodName
- calling method- Returns:
- list of matching relationships
- Throws:
InvalidParameterException
- the input properties are invalidUserNotAuthorizedException
- user not authorized to issue this requestPropertyServerException
- problem accessing the repositories
-
findAttachmentLinks
public List<Relationship> findAttachmentLinks(String userId, String relationshipTypeName, SearchProperties searchProperties, List<InstanceStatus> limitResultsByStatus, Date asOfTime, String sequencingProperty, SequencingOrder sequencingOrder, boolean forLineage, boolean forDuplicateProcessing, int startingFrom, int pageSize, List<String> serviceSupportedZones, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Return a list of relationships that match the supplied criteria. The results can be returned over many pages. Note: the visibility of the relationship and both entities is checked before returning a relationship to the caller.- Parameters:
userId
- caller's userIdrelationshipTypeName
- type of interest (null means any element type)searchProperties
- Optional list of entity property conditions to match.limitResultsByStatus
- By default, relationships in all statuses (other than DELETE) are returned. However, it is possible to specify a list of statuses (eg ACTIVE) to restrict the results. Null means all status values.asOfTime
- Requests a historical query of the entity. Null means return the present values.sequencingProperty
- String name of the property that is to be used to sequence the results. Null means do not sequence on a property name (see SequencingOrder).sequencingOrder
- Enum defining how the results should be ordered.forLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicatestartingFrom
- paging start pointpageSize
- maximum results that can be returnedserviceSupportedZones
- list of supported zones for this serviceeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- a list of elements matching the supplied criteria; null means no matching elements in the metadata store.
- Throws:
InvalidParameterException
- one of the search parameters is invalidUserNotAuthorizedException
- the governance action service is not able to access the elementsPropertyServerException
- there is a problem accessing the metadata store
-
createBeanInRepository
public String createBeanInRepository(String userId, String externalSourceGUID, String externalSourceName, String entityTypeGUID, String entityTypeName, OpenMetadataAPIGenericBuilder propertyBuilder, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Create a new entity in the repository assuming all parameters are ok.- Parameters:
userId
- userId of user making request.externalSourceGUID
- guid of the software capability entity that represented the external source - null for localexternalSourceName
- name of the software capability entity that represented the external sourceentityTypeGUID
- unique identifier of the type of entity to createentityTypeName
- unique name of the type of entity to createpropertyBuilder
- builder pre-populated with the properties and classifications of the new entityeffectiveTime
- the time that the retrieved elements must be effective formethodName
- calling method- Returns:
- unique identifier of new entity
- Throws:
InvalidParameterException
- one of the parameters is null or invalid.PropertyServerException
- there is a problem adding the properties to the repositories.UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
createBeanInRepository
public String createBeanInRepository(String userId, String externalSourceGUID, String externalSourceName, String entityTypeGUID, String entityTypeName, String entityDomainName, OpenMetadataAPIGenericBuilder propertyBuilder, boolean isOwnAnchor, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Create a new entity in the repository assuming all parameters are ok.- Parameters:
userId
- userId of user making request.externalSourceGUID
- guid of the software capability entity that represented the external source - null for localexternalSourceName
- name of the software capability entity that represented the external sourceentityTypeGUID
- unique identifier of the type of entity to createentityTypeName
- unique name of the type of entity to createentityDomainName
- unique name of the type of entity's domainpropertyBuilder
- builder pre-populated with the properties and classifications of the new entityisOwnAnchor
- flag to indicate if the new entity should be anchored to itselfeffectiveTime
- the time that the retrieved elements must be effective formethodName
- calling method- Returns:
- unique identifier of new entity
- Throws:
InvalidParameterException
- one of the parameters is null or invalid.PropertyServerException
- there is a problem adding the properties to the repositories.UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
updateBeanPropertyInRepository
public void updateBeanPropertyInRepository(String userId, String externalSourceGUID, String externalSourceName, String entityGUID, String entityGUIDParameterName, String entityTypeGUID, String entityTypeName, String propertyName, String propertyValue, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Update one or more properties in the requested entity.- Parameters:
userId
- calling userexternalSourceGUID
- guid of the software capability entity that represented the external source - null for localexternalSourceName
- name of the software capability entity that represented the external sourceentityGUID
- unique identifier of object to updateentityGUIDParameterName
- name of parameter supplying the GUIDentityTypeGUID
- unique identifier of the entity's typeentityTypeName
- unique name of the entity's typepropertyName
- name of bean property to updatepropertyValue
- new value for bean propertyforLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicateeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Throws:
InvalidParameterException
- one of the parameters is null or invalid.PropertyServerException
- there is a problem updating the properties tin the repositories.UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
updateBeanInRepository
public void updateBeanInRepository(String userId, String externalSourceGUID, String externalSourceName, String entityGUID, String entityGUIDParameterName, String entityTypeGUID, String entityTypeName, InstanceProperties properties, boolean isMergeUpdate, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Update one or more properties in the requested entity.- Parameters:
userId
- calling userexternalSourceGUID
- guid of the software capability entity that represented the external source - null for localexternalSourceName
- name of the software capability entity that represented the external sourceentityGUID
- unique identifier of object to updateentityGUIDParameterName
- name of parameter supplying the GUIDentityTypeGUID
- unique identifier of the entity's typeentityTypeName
- unique name of the entity's typeproperties
- object containing the properties for the repository instances based on the properties of the beanisMergeUpdate
- should the supplied properties be merged with existing properties (true) only replacing the properties with matching names, or should the entire properties of the instance be replaced?methodName
- calling method- Throws:
InvalidParameterException
- one of the parameters is null or invalid.PropertyServerException
- there is a problem updating the properties in the repositories.UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
updateBeanInRepository
public void updateBeanInRepository(String userId, String externalSourceGUID, String externalSourceName, String entityGUID, String entityGUIDParameterName, String entityTypeGUID, String entityTypeName, boolean forLineage, boolean forDuplicateProcessing, InstanceProperties updateProperties, boolean isMergeUpdate, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Update one or more updateProperties in the requested entity.- Parameters:
userId
- calling userexternalSourceGUID
- guid of the software capability entity that represented the external source - null for localexternalSourceName
- name of the software capability entity that represented the external sourceentityGUID
- unique identifier of object to updateentityGUIDParameterName
- name of parameter supplying the GUIDentityTypeGUID
- unique identifier of the entity's typeentityTypeName
- unique name of the entity's typeforLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicateupdateProperties
- object containing the propertiesisMergeUpdate
- should the supplied properties be merged with existing properties (true) by replacing just the properties with matching names, or should the entire properties of the instance be replaced?effectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Throws:
InvalidParameterException
- one of the parameters is null or invalid.PropertyServerException
- there is a problem adding the new properties to the repositories.UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
updateBeanInRepository
public void updateBeanInRepository(String userId, String externalSourceGUID, String externalSourceName, String entityGUID, String entityGUIDParameterName, String entityTypeGUID, String entityTypeName, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, InstanceProperties updateProperties, boolean isMergeUpdate, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Update one or more updateProperties in the requested entity.- Parameters:
userId
- calling userexternalSourceGUID
- guid of the software capability entity that represented the external source - null for localexternalSourceName
- name of the software capability entity that represented the external sourceentityGUID
- unique identifier of object to updateentityGUIDParameterName
- name of parameter supplying the GUIDentityTypeGUID
- unique identifier of the entity's typeentityTypeName
- unique name of the entity's typeforLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicateserviceSupportedZones
- supported zones for calling serviceupdateProperties
- object containing the propertiesisMergeUpdate
- should the supplied properties be merged with existing properties (true) by replacing just the properties with matching names, or should the entire properties of the instance be replaced?effectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Throws:
InvalidParameterException
- one of the parameters is null or invalid.PropertyServerException
- there is a problem adding the new properties to the repositories.UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
updateBeanInRepository
public void updateBeanInRepository(String userId, String externalSourceGUID, String externalSourceName, EntityDetail originalEntity, String entityGUIDParameterName, String entityTypeGUID, String entityTypeName, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, InstanceProperties updateProperties, boolean isMergeUpdate, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Update one or more updateProperties in the requested entity.- Parameters:
userId
- calling userexternalSourceGUID
- guid of the software capability entity that represented the external source - null for localexternalSourceName
- name of the software capability entity that represented the external sourceoriginalEntity
- unique identifier of object to updateentityGUIDParameterName
- name of parameter supplying the GUIDentityTypeGUID
- unique identifier of the entity's typeentityTypeName
- unique name of the entity's typeforLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicateserviceSupportedZones
- supported zones for calling serviceupdateProperties
- object containing the propertiesisMergeUpdate
- should the supplied properties be merged with existing properties (true) by replacing just the properties with matching names, or should the entire properties of the instance be replaced?effectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Throws:
InvalidParameterException
- one of the parameters is null or invalid.PropertyServerException
- there is a problem adding the new properties to the repositories.UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
updateBeanStatusInRepository
public void updateBeanStatusInRepository(String userId, String externalSourceGUID, String externalSourceName, String entityGUID, String entityGUIDParameterName, String entityTypeGUID, String entityTypeName, boolean forLineage, boolean forDuplicateProcessing, InstanceStatus newStatus, String newStatusParameterName, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Update the instance status in the requested entity.- Parameters:
userId
- calling userexternalSourceGUID
- guid of the software capability entity that represented the external source - null for localexternalSourceName
- name of the software capability entity that represented the external sourceentityGUID
- unique identifier of object to updateentityGUIDParameterName
- name of parameter supplying the GUIDentityTypeGUID
- unique identifier of the entity's typeentityTypeName
- unique name of the entity's typeforLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicatenewStatus
- new status valuenewStatusParameterName
- parameter providing the new status valueeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Throws:
InvalidParameterException
- one of the parameters is null or invalid.PropertyServerException
- there is a problem adding the new properties to the repositories.UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
updateBeanStatusInRepository
public void updateBeanStatusInRepository(String userId, String externalSourceGUID, String externalSourceName, String entityGUID, String entityGUIDParameterName, String entityTypeGUID, String entityTypeName, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, InstanceStatus newStatus, String newStatusParameterName, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Update the instance status in the requested entity.- Parameters:
userId
- calling userexternalSourceGUID
- guid of the software capability entity that represented the external source - null for localexternalSourceName
- name of the software capability entity that represented the external sourceentityGUID
- unique identifier of object to updateentityGUIDParameterName
- name of parameter supplying the GUIDentityTypeGUID
- unique identifier of the entity's typeentityTypeName
- unique name of the entity's typeforLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicateserviceSupportedZones
- supported zones for calling servicenewStatus
- new status valuenewStatusParameterName
- parameter providing the new status valueeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Throws:
InvalidParameterException
- one of the parameters is null or invalid.PropertyServerException
- there is a problem adding the new properties to the repositories.UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
undoBeanUpdateInRepository
public B undoBeanUpdateInRepository(String userId, String externalSourceGUID, String externalSourceName, String entityGUID, String entityGUIDParameterName, String entityTypeName, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Undo the last update to the entity.- Parameters:
userId
- calling userexternalSourceGUID
- guid of the software capability entity that represented the external source - null for localexternalSourceName
- name of the software capability entity that represented the external sourceentityGUID
- unique identifier of object to updateentityGUIDParameterName
- name of parameter supplying the GUIDentityTypeName
- unique name of the entity's typeforLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicateeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- recovered bean
- Throws:
InvalidParameterException
- one of the parameters is null or invalid.PropertyServerException
- there is a problem adding the new properties to the repositories.UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
undoBeanUpdateInRepository
public B undoBeanUpdateInRepository(String userId, String externalSourceGUID, String externalSourceName, String entityGUID, String entityGUIDParameterName, String entityTypeName, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Undo the last update to the entity.- Parameters:
userId
- calling userexternalSourceGUID
- guid of the software capability entity that represented the external source - null for localexternalSourceName
- name of the software capability entity that represented the external sourceentityGUID
- unique identifier of object to updateentityGUIDParameterName
- name of parameter supplying the GUIDentityTypeName
- unique name of the entity's typeforLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicateserviceSupportedZones
- supported zones for calling serviceeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- recovered bean
- Throws:
InvalidParameterException
- one of the parameters is null or invalid.PropertyServerException
- there is a problem adding the new properties to the repositories.UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
undoBeanUpdateInRepository
public B undoBeanUpdateInRepository(String userId, String externalSourceGUID, String externalSourceName, EntityDetail originalEntity, String entityGUIDParameterName, String entityTypeName, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Undo the last update to the entity.- Parameters:
userId
- calling userexternalSourceGUID
- guid of the software capability entity that represented the external source - null for localexternalSourceName
- name of the software capability entity that represented the external sourceoriginalEntity
- unique identifier of object to updateentityGUIDParameterName
- name of parameter supplying the GUIDentityTypeName
- unique name of the entity's typeforLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicateserviceSupportedZones
- supported zones for calling serviceeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- recovered bean
- Throws:
InvalidParameterException
- one of the parameters is null or invalid.PropertyServerException
- there is a problem adding the new properties to the repositories.UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
archiveBeanInRepository
public void archiveBeanInRepository(String userId, String externalSourceGUID, String externalSourceName, String entityGUID, String entityGUIDParameterName, String entityTypeName, InstanceProperties classificationProperties, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Classify an entity in the repository to show that its asset/artifact counterpart in the real world has either been deleted or archived. The entity is preserved because it is needed for lineage.- Parameters:
userId
- calling userexternalSourceGUID
- guid of the software capability entity that represented the external source - null for localexternalSourceName
- name of the software capability entity that represented the external sourceentityGUID
- unique identifier of object to updateentityGUIDParameterName
- name of parameter supplying the GUIDentityTypeName
- unique name of the entity's typeclassificationProperties
- properties for the classificationforLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicateeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Throws:
InvalidParameterException
- one of the parameters is null or invalid.PropertyServerException
- there is a problem removing the properties from the repositories.UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
archiveBeanInRepository
public void archiveBeanInRepository(String userId, String externalSourceGUID, String externalSourceName, String entityGUID, String entityGUIDParameterName, String entityTypeName, InstanceProperties classificationProperties, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Classify an entity in the repository to show that its asset/artifact counterpart in the real world has either been deleted or archived. Note, this method is designed to work only on anchor entities or entities with no anchor.- Parameters:
userId
- calling userexternalSourceGUID
- guid of the software capability entity that represented the external source - null for localexternalSourceName
- name of the software capability entity that represented the external sourceentityGUID
- unique identifier of object to updateentityGUIDParameterName
- name of parameter supplying the GUIDentityTypeName
- unique name of the entity's typeclassificationProperties
- properties for the classificationforLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicateserviceSupportedZones
- supported zones for calling serviceeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Throws:
InvalidParameterException
- one of the parameters is null or invalid.PropertyServerException
- there is a problem removing the properties from the repositories.UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
deleteAnchoredEntity
public void deleteAnchoredEntity(List<String> anchoredEntityGUIDs, String externalSourceGUID, String externalSourceName, EntityProxy potentialAnchoredEntity, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Remove an entity if it is anchored to the anchor entity- Parameters:
anchoredEntityGUIDs
- entity anchors to match againstexternalSourceGUID
- unique identifier (guid) for the external source, or null for local.externalSourceName
- unique name for the external source.potentialAnchoredEntity
- entity to validateforLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicateeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Throws:
InvalidParameterException
- problem with the parametersPropertyServerException
- problem in the repository servicesUserNotAuthorizedException
- calling user is not authorize to issue this request
-
deleteBeanInRepository
public void deleteBeanInRepository(String userId, String externalSourceGUID, String externalSourceName, String entityGUID, String entityGUIDParameterName, String entityTypeGUID, String entityTypeName, String validatingPropertyName, String validatingPropertyValue, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Delete an entity from the repository.- Parameters:
userId
- calling userexternalSourceGUID
- guid of the software capability entity that represented the external source - null for localexternalSourceName
- name of the software capability entity that represented the external sourceentityGUID
- unique identifier of object to updateentityGUIDParameterName
- name of parameter supplying the GUIDentityTypeGUID
- unique identifier of the entity's typeentityTypeName
- unique name of the entity's typevalidatingPropertyName
- name of property to verify - or null if no verification is requiredvalidatingPropertyValue
- value of property to verifyforLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicateeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Throws:
InvalidParameterException
- one of the parameters is null or invalid.PropertyServerException
- there is a problem removing the properties from the repositories.UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
deleteBeanInRepository
public void deleteBeanInRepository(String userId, String externalSourceGUID, String externalSourceName, String entityGUID, String entityGUIDParameterName, String entityTypeGUID, String entityTypeName, String validatingPropertyName, String validatingPropertyValue, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Delete an entity from the repository.- Parameters:
userId
- calling userexternalSourceGUID
- guid of the software capability entity that represented the external source - null for localexternalSourceName
- name of the software capability entity that represented the external sourceentityGUID
- unique identifier of object to updateentityGUIDParameterName
- name of parameter supplying the GUIDentityTypeGUID
- unique identifier of the entity's typeentityTypeName
- unique name of the entity's typevalidatingPropertyName
- name of property to verify - or null if no verification is requiredvalidatingPropertyValue
- value of property to verifyforLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicateserviceSupportedZones
- supported zones for calling serviceeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Throws:
InvalidParameterException
- one of the parameters is null or invalid.PropertyServerException
- there is a problem removing the properties from the repositories.UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
deleteBeanInRepository
public void deleteBeanInRepository(String userId, String externalSourceGUID, String externalSourceName, String entityGUID, String entityGUIDParameterName, String entityTypeGUID, String entityTypeName, String validatingPropertyName, String validatingPropertyValue, List<String> anchorEntityGUIDs, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Delete an entity from the repository.- Parameters:
userId
- calling userexternalSourceGUID
- guid of the software capability entity that represented the external source - null for localexternalSourceName
- name of the software capability entity that represented the external sourceentityGUID
- unique identifier of object to updateentityGUIDParameterName
- name of parameter supplying the GUIDentityTypeGUID
- unique identifier of the entity's typeentityTypeName
- unique name of the entity's typevalidatingPropertyName
- name of property to verify - null if no verification is requiredvalidatingPropertyValue
- value of property to verifyanchorEntityGUIDs
- list of anchor entities for the bean (can be null)forLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicateeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Throws:
InvalidParameterException
- one of the parameters is null or invalid.PropertyServerException
- there is a problem removing the properties from the repository.UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
isBeanIsolated
public boolean isBeanIsolated(String userId, String entityGUID, String entityTypeName, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Is the bean isolated - i.e. has no relationships.- Parameters:
userId
- calling userentityGUID
- unique identifier of object to updateentityTypeName
- unique name of the entity's typeforLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?effectiveTime
- the time that the retrieved elements must be effective formethodName
- calling method- Returns:
- test results
- Throws:
InvalidParameterException
- one of the parameters is null or invalid.PropertyServerException
- there is a problem removing the properties from the repository.UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
getAttachedElementGUIDs
public List<String> getAttachedElementGUIDs(String userId, String startingGUID, String startingGUIDParameterName, String startingTypeName, String attachmentRelationshipTypeGUID, String attachmentRelationshipTypeName, String attachmentEntityTypeName, boolean forLineage, boolean forDuplicateProcessing, int startingFrom, int pageSize, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Return the elements of the requested type attached to an entity identified by the starting GUID.- Parameters:
userId
- calling userstartingGUID
- identifier for the entity that the identifier is attached tostartingGUIDParameterName
- name of parameter supplying the GUIDstartingTypeName
- name of the type of object being attached toattachmentRelationshipTypeGUID
- unique identifier of the relationship type connect to the attachmentattachmentRelationshipTypeName
- unique name of the relationship type connect to the attachmentattachmentEntityTypeName
- unique name of the attached entity's typeforLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicatestartingFrom
- start position for resultspageSize
- maximum number of resultseffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- list of unique identifiers for retrieved objects or null if none found
- Throws:
InvalidParameterException
- the input properties are invalidUserNotAuthorizedException
- user not authorized to issue this requestPropertyServerException
- problem accessing the repositories
-
getAttachedElementGUIDs
public List<String> getAttachedElementGUIDs(String userId, String startingGUID, String startingGUIDParameterName, String startingTypeName, String attachmentRelationshipTypeGUID, String attachmentRelationshipTypeName, String attachmentEntityTypeName, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, int startingFrom, int pageSize, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Return the elements of the requested type attached to an entity identified by the starting GUID.- Parameters:
userId
- calling userstartingGUID
- identifier for the entity that the identifier is attached tostartingGUIDParameterName
- name of parameter supplying the GUIDstartingTypeName
- name of the type of object being attached toattachmentRelationshipTypeGUID
- unique identifier of the relationship type connect to the attachmentattachmentRelationshipTypeName
- unique name of the relationship type connect to the attachmentattachmentEntityTypeName
- unique name of the attached entity's typeforLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicateserviceSupportedZones
- supported zones for calling servicestartingFrom
- start position for resultspageSize
- maximum number of resultseffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- list of unique identifiers for retrieved objects or null if none found
- Throws:
InvalidParameterException
- the input properties are invalidUserNotAuthorizedException
- user not authorized to issue this requestPropertyServerException
- problem accessing the repositories
-
getAttachedElementGUID
public String getAttachedElementGUID(String userId, String startingGUID, String startingGUIDParameterName, String startingTypeName, String attachmentRelationshipTypeGUID, String attachmentRelationshipTypeName, String attachmentEntityTypeName, int selectionEnd, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Return the elements of the requested type attached to an entity identified by the starting GUID.- Parameters:
userId
- calling userstartingGUID
- identifier for the entity that the identifier is attached tostartingGUIDParameterName
- name of parameter supplying the GUIDstartingTypeName
- name of the type of object being attached toattachmentRelationshipTypeGUID
- unique identifier of the relationship type connect to the attachmentattachmentRelationshipTypeName
- unique name of the relationship type connect to the attachmentattachmentEntityTypeName
- unique name of the attached entity's typeselectionEnd
- 0 means either end, 1 means only take from end 1, 2 means only take from end 2forLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicateeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- list of unique identifiers for retrieved objects or null if none found
- Throws:
InvalidParameterException
- the input properties are invalidUserNotAuthorizedException
- user not authorized to issue this requestPropertyServerException
- problem accessing the repositories
-
getAttachedElementGUID
public String getAttachedElementGUID(String userId, String startingGUID, String startingGUIDParameterName, String startingTypeName, String attachmentRelationshipTypeGUID, String attachmentRelationshipTypeName, String attachmentEntityTypeName, int selectionEnd, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Return the elements of the requested type attached to an entity identified by the starting GUID.- Parameters:
userId
- calling userstartingGUID
- identifier for the entity that the identifier is attached tostartingGUIDParameterName
- name of parameter supplying the GUIDstartingTypeName
- name of the type of object being attached toattachmentRelationshipTypeGUID
- unique identifier of the relationship type connect to the attachmentattachmentRelationshipTypeName
- unique name of the relationship type connect to the attachmentattachmentEntityTypeName
- unique name of the attached entity's typeselectionEnd
- 0 means either end, 1 means only take from end 1, 2 means only take from end 2forLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicateserviceSupportedZones
- supported zones for calling serviceeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- list of unique identifiers for retrieved objects or null if none found
- Throws:
InvalidParameterException
- the input properties are invalidUserNotAuthorizedException
- user not authorized to issue this requestPropertyServerException
- problem accessing the repositories
-
getAttachedElement
public B getAttachedElement(String userId, String startingElementGUID, String startingElementGUIDParameterName, String startingElementTypeName, String relationshipTypeGUID, String relationshipTypeName, String resultingElementTypeName, int attachmentEntityEnd, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Return the Bean for the required relationship attached to a specific element. This method assumes the starting element has a validated anchor.- Parameters:
userId
- calling userstartingElementGUID
- identifier for the entity that the identifier is attached tostartingElementGUIDParameterName
- name of the parameter used to pass the guidstartingElementTypeName
- type name for anchorrelationshipTypeGUID
- unique identifier of the attachment's relationship typerelationshipTypeName
- unique name of the attachment's relationship typeresultingElementTypeName
- unique name of the attached entity's typeattachmentEntityEnd
- which relationship end should the attached entity be located? 0=either end; 1=end1; 2=end2forLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicateserviceSupportedZones
- supported zones for calling serviceeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- list of retrieved objects or null if none found
- Throws:
InvalidParameterException
- the input properties are invalidUserNotAuthorizedException
- user not authorized to issue this requestPropertyServerException
- problem accessing the repositories
-
getAttachedElements
public List<B> getAttachedElements(String userId, String startingGUID, String startingGUIDParameterName, String startingTypeName, String attachmentRelationshipTypeGUID, String attachmentRelationshipTypeName, String attachmentEntityTypeName, String requiredClassificationName, String omittedClassificationName, List<Integer> limitResultsByEnumValues, String enumPropertyName, int attachmentEntityEnd, boolean forLineage, boolean forDuplicateProcessing, int startingFrom, int pageSize, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Return the elements of the requested type attached to an entity identified by the starting GUID.- Parameters:
userId
- calling userstartingGUID
- identifier for the entity that the identifier is attached tostartingGUIDParameterName
- name of parameter supplying the GUIDstartingTypeName
- name of the type of object being attached toattachmentRelationshipTypeGUID
- unique identifier of the relationship type connect to the attachmentattachmentRelationshipTypeName
- unique name of the relationship type connect to the attachmentattachmentEntityTypeName
- unique name of the attached entity's typerequiredClassificationName
- String the name of the classification that must be on the attached entity.omittedClassificationName
- String the name of a classification that must not be on the attached entity.limitResultsByEnumValues
- The list of ordinals for the enum value.enumPropertyName
- String the name of a property in the relationship that is an enum.attachmentEntityEnd
- 0 means either end, 1 means only take from end 1, 2 means only take from end 2forDuplicateProcessing
- this request os for duplicate processing so do not deduplicateforLineage
- this request is for lineage so ignore Memento classificationsstartingFrom
- start position for resultspageSize
- maximum number of resultseffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- list of retrieved objects or null if none found
- Throws:
InvalidParameterException
- the input properties are invalidUserNotAuthorizedException
- user not authorized to issue this requestPropertyServerException
- problem accessing the repositories
-
getAttachedElements
public List<B> getAttachedElements(String userId, String startingGUID, String startingGUIDParameterName, String startingTypeName, String attachmentRelationshipTypeGUID, String attachmentRelationshipTypeName, String attachmentEntityTypeName, String requiredClassificationName, String omittedClassificationName, int selectionEnd, boolean forLineage, boolean forDuplicateProcessing, int startingFrom, int pageSize, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Return the elements of the requested type attached to an entity identified by the starting GUID.- Parameters:
userId
- calling userstartingGUID
- identifier for the entity that the identifier is attached tostartingGUIDParameterName
- name of parameter supplying the GUIDstartingTypeName
- name of the type of object being attached toattachmentRelationshipTypeGUID
- unique identifier of the relationship type connect to the attachmentattachmentRelationshipTypeName
- unique name of the relationship type connect to the attachmentattachmentEntityTypeName
- unique name of the attached entity's typerequiredClassificationName
- String the name of the classification that must be on the attached entity.omittedClassificationName
- String the name of a classification that must not be on the attached entity.selectionEnd
- 0 means either end, 1 means only take from end 1, 2 means only take from end 2forDuplicateProcessing
- this request os for duplicate processing so do not deduplicateforLineage
- this request is for lineage so ignore Memento classificationsstartingFrom
- start position for resultspageSize
- maximum number of resultseffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- list of retrieved objects or null if none found
- Throws:
InvalidParameterException
- the input properties are invalidUserNotAuthorizedException
- user not authorized to issue this requestPropertyServerException
- problem accessing the repositories
-
getAttachedElements
public List<B> getAttachedElements(String userId, String anchorGUID, String anchorGUIDParameterName, String startingGUID, String startingGUIDParameterName, String startingTypeName, String attachmentRelationshipTypeGUID, String attachmentRelationshipTypeName, String attachmentEntityTypeName, String requiredClassificationName, String omittedClassificationName, int selectionEnd, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, int startingFrom, int pageSize, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Return the elements of the requested type attached to an entity identified by the starting GUID.- Parameters:
userId
- calling useranchorGUID
- expected anchorGUID for this elementanchorGUIDParameterName
- parameter supplying anchorGUIDstartingGUID
- identifier for the entity that the identifier is attached tostartingGUIDParameterName
- name of parameter supplying the GUIDstartingTypeName
- name of the type of object being attached toattachmentRelationshipTypeGUID
- unique identifier of the relationship type connect to the attachmentattachmentRelationshipTypeName
- unique name of the relationship type connect to the attachmentattachmentEntityTypeName
- unique name of the attached entity's typerequiredClassificationName
- String the name of the classification that must be on the attached entity.omittedClassificationName
- String the name of a classification that must not be on the attached entity.selectionEnd
- 0 means either end, 1 means only take from end 1, 2 means only take from end 2forLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicateserviceSupportedZones
- supported zones for calling servicestartingFrom
- start position for resultspageSize
- maximum number of resultseffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- list of retrieved objects or null if none found
- Throws:
InvalidParameterException
- the input properties are invalidUserNotAuthorizedException
- user not authorized to issue this requestPropertyServerException
- problem accessing the repositories
-
getEntityFromRepository
public EntityDetail getEntityFromRepository(String userId, String requestedEntityGUID, String requestedEntityGUIDParameterName, String requestedEntityTypeName, String requiredClassificationName, String omittedClassificationName, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Return the keyword for the supplied unique identifier (guid). The keyword is only returned if- Parameters:
userId
- userId of the user making the requestrequestedEntityGUID
- unique identifier of the entity to retrieve from the repositoryrequestedEntityGUIDParameterName
- name of the parameter supplying the GUIDrequestedEntityTypeName
- name of type of entity to retrieverequiredClassificationName
- String the name of the classification that must be on the attached entity.omittedClassificationName
- String the name of a classification that must not be on the attached entity.forLineage
- the query is to support lineage retrievalforDuplicateProcessing
- the query is for duplicate processing and so must not deduplicateeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- retrieved entity
- Throws:
InvalidParameterException
- the userId is null or invalid.PropertyServerException
- there is a problem retrieving information from the repositories.UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
getEntityFromRepository
public EntityDetail getEntityFromRepository(String userId, String requestedEntityGUID, String requestedEntityGUIDParameterName, String requestedEntityTypeName, String requiredClassificationName, String omittedClassificationName, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Return the entity for the supplied unique identifier (guid). An exception is thrown if the entity does not exist.- Parameters:
userId
- userId of the user making the requestrequestedEntityGUID
- unique identifier of the entity to retrieve from the repositoryrequestedEntityGUIDParameterName
- name of the parameter supplying the GUIDrequestedEntityTypeName
- name of type of entity to retrieverequiredClassificationName
- String the name of the classification that must be on the attached entityomittedClassificationName
- String the name of a classification that must not be on the attached entityforLineage
- the query is to support lineage retrievalforDuplicateProcessing
- the query is for duplicate processing and so must not deduplicateserviceSupportedZones
- supported zones for calling serviceeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- retrieved entity
- Throws:
InvalidParameterException
- the userId is null or invalid, the entity does not exist.PropertyServerException
- there is a problem retrieving information from the repositories.UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
getBeanFromRepository
public B getBeanFromRepository(String userId, String guid, String guidParameterName, String resultTypeName, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Use the supplied unique identifier (guid) of an entity in the repository to retrieve its contents as a bean. The entity is checked to ensure it is of the required return type.- Parameters:
userId
- calling userguid
- unique identifier of the entity to retrieveguidParameterName
- parameter supplying the unique identifierresultTypeName
- type of the retrieve entitymethodName
- calling method- Returns:
- B bean
- Throws:
InvalidParameterException
- one of the properties (probably the GUID) is invalidPropertyServerException
- the repository services hit an unexpected problemUserNotAuthorizedException
- the user is not permitted to access this entity
-
getBeanFromRepository
public B getBeanFromRepository(String userId, String guid, String guidParameterName, String entityTypeName, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Return the bean for the supplied unique identifier (guid). An exception occurs if the bean GUID is not known.- Parameters:
userId
- userId of the user making the requestguid
- unique identifier of the entity to retrieve from the repositoryguidParameterName
- name of the parameter supplying the GUIDentityTypeName
- name of type of entity to retrieveforLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicateeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- new bean
- Throws:
InvalidParameterException
- the userId is null or invalid.PropertyServerException
- there is a problem retrieving information from the repositories.UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
getBeanFromRepository
public B getBeanFromRepository(String userId, String guid, String guidParameterName, String entityTypeName, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Return the bean for the supplied unique identifier (guid). An exception occurs if the bean GUID is not known.- Parameters:
userId
- userId of the user making the requestguid
- unique identifier of the entity to retrieve from the repositoryguidParameterName
- name of the parameter supplying the GUIDentityTypeName
- name of type of entity to retrieveforLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicateserviceSupportedZones
- supported zones for calling serviceeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- new bean
- Throws:
InvalidParameterException
- the userId is null or invalid.PropertyServerException
- there is a problem retrieving information from the repositories.UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
getBeanFromEntity
public B getBeanFromEntity(String userId, EntityDetail entity, String entityParameterName, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Return the bean for the supplied unique identifier (guid). An exception occurs if the bean GUID is not known.- Parameters:
userId
- userId of the user making the requestentity
- entity retrieved from the repositoryentityParameterName
- name of the parameter supplying the entitymethodName
- calling method- Returns:
- new bean
- Throws:
InvalidParameterException
- the userId is null or invalid.PropertyServerException
- there is a problem retrieving information from the repositories.UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
getBeanGUIDByUniqueName
public String getBeanGUIDByUniqueName(String userId, String name, String nameParameterName, String namePropertyName, String resultTypeGUID, String resultTypeName, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Return the unique identifier of the entity that has the supplied unique name. An exception is thrown if multiple entities are found with this name.- Parameters:
userId
- the calling username
- value to searchnameParameterName
- parameter providing valuenamePropertyName
- open metadata property name to match onresultTypeGUID
- unique identifier of the type that the results should match withresultTypeName
- unique value of the type that the results should match withforLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicateeffectiveTime
- 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 requested entity/bean
- Throws:
InvalidParameterException
- the userId is null or invalid.PropertyServerException
- there is a problem retrieving information from the repositories.UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
getBeanGUIDByUniqueName
public String getBeanGUIDByUniqueName(String userId, String name, String nameParameterName, String namePropertyName, String resultTypeGUID, String resultTypeName, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Return the unique identifier of the entity that has the supplied unique name. An exception is thrown if multiple entities are found with this name.- Parameters:
userId
- the calling username
- value to searchnameParameterName
- parameter providing valuenamePropertyName
- open metadata property name to match onresultTypeGUID
- unique identifier of the type that the results should match withresultTypeName
- unique value of the type that the results should match withforLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicateserviceSupportedZones
- list of supported zones for this serviceeffectiveTime
- 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 requested entity/bean
- Throws:
InvalidParameterException
- the userId is null or invalid.PropertyServerException
- there is a problem retrieving information from the repositories.UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
getBeanByUniqueName
public B getBeanByUniqueName(String userId, String name, String nameParameterName, String namePropertyName, String resultTypeGUID, String resultTypeName, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Return the list of beans of the requested type that match the supplied value.- Parameters:
userId
- the calling username
- value to searchnameParameterName
- parameter providing valuenamePropertyName
- open metadata property name to match onresultTypeGUID
- unique identifier of the type that the results should match withresultTypeName
- unique value of the type that the results should match withforLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicateeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- list of beans
- Throws:
InvalidParameterException
- the userId is null or invalid.PropertyServerException
- there is a problem retrieving information from the repositories.UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
getBeanByUniqueName
public B getBeanByUniqueName(String userId, String name, String nameParameterName, String namePropertyName, String resultTypeGUID, String resultTypeName, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Return the list of beans of the requested type that match the supplied value.- Parameters:
userId
- the calling username
- value to searchnameParameterName
- parameter providing valuenamePropertyName
- open metadata property name to match onresultTypeGUID
- unique identifier of the type that the results should match withresultTypeName
- unique value of the type that the results should match withforLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicateserviceSupportedZones
- list of supported zones for this serviceeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- list of beans
- Throws:
InvalidParameterException
- the userId is null or invalid.PropertyServerException
- there is a problem retrieving information from the repositories.UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
getBeanHistory
public List<B> getBeanHistory(String userId, String guid, String guidParameterName, String entityTypeName, Date fromTime, Date toTime, int startingFrom, int pageSize, HistorySequencingOrder sequencingOrder, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Classify an entity in the repository to show that its asset/artifact counterpart in the real world has either been deleted or archived. Note, this method is designed to work only on anchor entities or entities with no anchor.- Parameters:
userId
- calling userguid
- unique identifier of object to updateguidParameterName
- name of parameter supplying the GUIDfromTime
- starting timetoTime
- ending timeentityTypeName
- unique name of the entity's typestartingFrom
- paging start pointpageSize
- maximum results that can be returnedsequencingOrder
- order of the resultsforLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicateserviceSupportedZones
- supported zones for calling serviceeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- list of beans
- Throws:
InvalidParameterException
- one of the parameters is null or invalid.PropertyServerException
- there is a problem removing the properties from the repositories.UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
getBeanByValue
public B getBeanByValue(String userId, String value, String valueParameterName, String resultTypeGUID, String resultTypeName, List<String> specificMatchPropertyNames, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Return the bean that matches the requested value.- Parameters:
userId
- identifier of calling uservalue
- value to searchvalueParameterName
- parameter providing valueresultTypeGUID
- unique identifier of the type that the results should match withresultTypeName
- unique value of the type that the results should match withspecificMatchPropertyNames
- list of property value to look in - if null or empty list then all string properties are checked.forLineage
- the query is to support lineage retrievalforDuplicateProcessing
- the query is for duplicate processing and so must not deduplicateserviceSupportedZones
- supported zones for calling serviceeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- matching bean.
- Throws:
InvalidParameterException
- one of the parameters is null or invalid.UserNotAuthorizedException
- user not authorized to issue this request.PropertyServerException
- problem retrieving the bean definition.
-
findBeans
public List<B> findBeans(String userId, String searchString, String searchStringParameterName, String resultTypeGUID, String resultTypeName, String sequencingPropertyName, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Return the list of beans matching the supplied searchString.- Parameters:
userId
- the searchString of the calling user.searchString
- searchString of endpoint. This may include wild card characters.searchStringParameterName
- name of parameter providing search stringresultTypeGUID
- unique identifier of the type that the results should match withresultTypeName
- unique value of the type that the results should match withsequencingPropertyName
- name of property used to sequence the results - null means no sequencingstartFrom
- index of the list to start from (0 for start)pageSize
- maximum number of elements to return.forLineage
- the query is to support lineage retrievalforDuplicateProcessing
- the query is for duplicate processing and so must not deduplicateeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- list of beans
- Throws:
InvalidParameterException
- the userId is null or invalid.PropertyServerException
- there is a problem retrieving information from the repositories.UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
findBeans
public List<B> findBeans(String userId, String searchString, String searchStringParameterName, String resultTypeGUID, String resultTypeName, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, String sequencingPropertyName, int startFrom, int pageSize, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Return the list of beans matching the supplied searchString.- Parameters:
userId
- the searchString of the calling user.searchString
- searchString of endpoint. This may include wild card characters.searchStringParameterName
- name of parameter providing search stringserviceSupportedZones
- list of supported zones for this service.resultTypeGUID
- unique identifier of the type that the results should match withresultTypeName
- unique value of the type that the results should match withforDuplicateProcessing
- this request os for duplicate processing so do not deduplicateforLineage
- this request is for lineage so ignore Memento classificationssequencingPropertyName
- name of property used to sequence the results - null means no sequencingstartFrom
- index of the list to start from (0 for start)pageSize
- maximum number of elements to return.effectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- list of beans
- Throws:
InvalidParameterException
- the userId is null or invalid.PropertyServerException
- there is a problem retrieving information from the repositories.UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
findBeans
public List<B> findBeans(String userId, String metadataElementTypeName, List<String> metadataElementSubtypeName, SearchProperties searchProperties, List<InstanceStatus> limitResultsByStatus, SearchClassifications searchClassifications, Date asOfTime, String sequencingProperty, SequencingOrder sequencingOrder, boolean forLineage, boolean forDuplicateProcessing, int startingFrom, int pageSize, List<String> serviceSupportedZones, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Return a list of metadata elements that match the supplied criteria. The results can be returned over many pages.- Parameters:
userId
- caller's userIdmetadataElementTypeName
- type of interest (null means any element type)metadataElementSubtypeName
- optional list of the subtypes of the metadataElementTypeName to include in the search results. Null means all subtypes.searchProperties
- Optional list of entity property conditions to match.limitResultsByStatus
- By default, entities in all statuses (other than DELETE) are returned. However, it is possible to specify a list of statuses (eg ACTIVE) to restrict the results to. Null means all status values.searchClassifications
- Optional list of classifications to match.asOfTime
- Requests a historical query of the entity. Null means return the present values.sequencingProperty
- String name of the property that is to be used to sequence the results. Null means do not sequence on a property name (see SequencingOrder).sequencingOrder
- Enum defining how the results should be ordered.forLineage
- the retrieved element is for lineage processing so include archived elementsforDuplicateProcessing
- the retrieved element is for duplicate processing so do not combine results from known duplicates.startingFrom
- paging start pointpageSize
- maximum results that can be returnedserviceSupportedZones
- list of supported zones for this serviceeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- a list of elements matching the supplied criteria; null means no matching elements in the metadata store.
- Throws:
InvalidParameterException
- one of the search parameters is invalidUserNotAuthorizedException
- the governance action service is not able to access the elementsPropertyServerException
- there is a problem accessing the metadata store
-
findEntities
public List<EntityDetail> findEntities(String userId, String metadataElementTypeName, List<String> metadataElementSubtypeName, SearchProperties searchProperties, List<InstanceStatus> limitResultsByStatus, SearchClassifications searchClassifications, Date asOfTime, String sequencingProperty, SequencingOrder sequencingOrder, boolean forLineage, boolean forDuplicateProcessing, int startingFrom, int pageSize, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Return a list of metadata elements that match the supplied criteria. The results can be returned over many pages.- Parameters:
userId
- caller's userIdmetadataElementTypeName
- type of interest (null means any element type)metadataElementSubtypeName
- optional list of the subtypes of the metadataElementTypeName to include in the search results. Null means all subtypes.searchProperties
- Optional list of entity property conditions to match.limitResultsByStatus
- By default, entities in all statuses (other than DELETE) are returned. However, it is possible to specify a list of statuses (eg ACTIVE) to restrict the results to. Null means all status values.searchClassifications
- Optional list of classifications to match.asOfTime
- Requests a historical query of the entity. Null means return the present values.sequencingProperty
- String name of the property that is to be used to sequence the results. Null means do not sequence on a property name (see SequencingOrder).sequencingOrder
- Enum defining how the results should be ordered.forLineage
- the retrieved element is for lineage processing so include archived elementsforDuplicateProcessing
- the retrieved element is for duplicate processing so do not combine results from known duplicates.startingFrom
- 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:
- a list of elements matching the supplied criteria; null means no matching elements in the metadata store.
- Throws:
InvalidParameterException
- one of the search parameters is invalidUserNotAuthorizedException
- the governance action service is not able to access the elementsPropertyServerException
- there is a problem accessing the metadata store
-
findEntities
public List<EntityDetail> findEntities(String userId, String metadataElementTypeName, List<String> metadataElementSubtypeNames, SearchProperties searchProperties, List<InstanceStatus> limitResultsByStatus, SearchClassifications searchClassifications, Date asOfTime, String sequencingProperty, SequencingOrder sequencingOrder, boolean forLineage, boolean forDuplicateProcessing, int startingFrom, int pageSize, List<String> serviceSupportedZones, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Return a list of metadata elements that match the supplied criteria. The results can be returned over many pages.- Parameters:
userId
- caller's userIdmetadataElementTypeName
- type of interest (null means any element type)metadataElementSubtypeNames
- optional list of the subtypes of the metadataElementTypeName to include in the search results. Null means all subtypes.searchProperties
- Optional list of entity property conditions to match.limitResultsByStatus
- By default, entities in all statuses (other than DELETE) are returned. However, it is possible to specify a list of statuses (eg ACTIVE) to restrict the results to. Null means all status values.searchClassifications
- Optional list of classifications to match.asOfTime
- Requests a historical query of the entity. Null means return the present values.sequencingProperty
- String name of the property that is to be used to sequence the results. Null means do not sequence on a property name (see SequencingOrder).sequencingOrder
- Enum defining how the results should be ordered.forLineage
- the retrieved element is for lineage processing so include archived elementsforDuplicateProcessing
- the retrieved element is for duplicate processing so do not combine results from known duplicates.startingFrom
- paging start pointpageSize
- maximum results that can be returnedserviceSupportedZones
- list of supported zones for this serviceeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- a list of elements matching the supplied criteria; null means no matching elements in the metadata store.
- Throws:
InvalidParameterException
- one of the search parameters is invalidUserNotAuthorizedException
- the governance action service is not able to access the elementsPropertyServerException
- there is a problem accessing the metadata store
-
getBeansByValue
public List<B> getBeansByValue(String userId, String value, String valueParameterName, String resultTypeGUID, String resultTypeName, List<String> specificMatchPropertyNames, boolean exactValueMatch, String requiredClassificationName, String omittedClassificationName, boolean forLineage, boolean forDuplicateProcessing, String sequencingPropertyName, int startFrom, int pageSize, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Return the list of beans of the requested type that match the supplied value.- Parameters:
userId
- the calling uservalue
- value to searchvalueParameterName
- parameter providing valueresultTypeGUID
- unique identifier of the type that the results should match withresultTypeName
- unique value of the type that the results should match withspecificMatchPropertyNames
- list of property value to look in - if null or empty list then all string properties are checked.exactValueMatch
- indicates whether the value must match the whole property value in a matching result, or whether it is a RegEx partial matchrequiredClassificationName
- String the name of the classification that must be on the entity.omittedClassificationName
- String the name of a classification that must not be on the entity.forLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicatesequencingPropertyName
- name of property used to sequence the results - null means no sequencingstartFrom
- index of the list to start from (0 for start)pageSize
- maximum number of elements to returneffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- list of beans
- Throws:
InvalidParameterException
- the userId is null or invalid.PropertyServerException
- there is a problem retrieving information from the repositories.UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
getBeansByIntValue
public List<B> getBeansByIntValue(String userId, int value, String resultTypeGUID, String resultTypeName, String propertyName, String requiredClassificationName, String omittedClassificationName, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, String sequencingPropertyName, int startFrom, int pageSize, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Return the list of beans of the requested type that match the supplied integer value.- Parameters:
userId
- the calling uservalue
- value to searchresultTypeGUID
- unique identifier of the type that the results should match withresultTypeName
- unique value of the type that the results should match withpropertyName
- property to look in - if null or empty list then all string properties are checked.requiredClassificationName
- String the name of the classification that must be on the entity.omittedClassificationName
- String the name of a classification that must not be on the entity.forLineage
- the query is to support lineage retrievalforDuplicateProcessing
- the query is for duplicate processing and so must not deduplicateserviceSupportedZones
- list of supported zones for this servicesequencingPropertyName
- name of property used to sequence the results - null means no sequencingstartFrom
- index of the list to start from (0 for start)pageSize
- maximum number of elements to returneffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- list of beans
- Throws:
InvalidParameterException
- the userId is null or invalid.PropertyServerException
- there is a problem retrieving information from the repositories.UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
getBeansByValue
public List<B> getBeansByValue(String userId, String value, String valueParameterName, String resultTypeGUID, String resultTypeName, List<String> specificMatchPropertyNames, boolean exactValueMatch, String requiredClassificationName, String omittedClassificationName, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, String sequencingPropertyName, int startFrom, int pageSize, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Return the list of beans of the requested type that match the supplied value.- Parameters:
userId
- the calling uservalue
- value to searchvalueParameterName
- parameter providing valueresultTypeGUID
- unique identifier of the type that the results should match withresultTypeName
- unique value of the type that the results should match withspecificMatchPropertyNames
- list of property value to look in - if null or empty list then all string properties are checked.exactValueMatch
- indicates whether the value must match the whole property value in a matching result, or whether it is a RegEx partial matchrequiredClassificationName
- String the name of the classification that must be on the entity.omittedClassificationName
- String the name of a classification that must not be on the entity.forLineage
- the query is to support lineage retrievalforDuplicateProcessing
- the query is for duplicate processing and so must not deduplicateserviceSupportedZones
- list of supported zones for this servicesequencingPropertyName
- name of property used to sequence the results - null means no sequencingstartFrom
- index of the list to start from (0 for start)pageSize
- maximum number of elements to returneffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- list of beans
- Throws:
InvalidParameterException
- the userId is null or invalid.PropertyServerException
- there is a problem retrieving information from the repositories.UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
getEntitiesByType
public List<EntityDetail> getEntitiesByType(String userId, String resultTypeGUID, String resultTypeName, String sequencingPropertyName, boolean forLineage, boolean forDuplicateProcessing, int startFrom, int pageSize, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Return the list of entities of the requested type.- Parameters:
userId
- the name of the calling userresultTypeGUID
- unique identifier of the type that the results should match withresultTypeName
- unique name of the type that the results should match withsequencingPropertyName
- name of property used to sequence the results - null means no sequencingstartFrom
- index of the list to start from (0 for start)pageSize
- maximum number of elements to returnforLineage
- the query is to support lineage retrievalforDuplicateProcessing
- the query is for duplicate processing and so must not deduplicateeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- list of entities
- Throws:
InvalidParameterException
- the userId is null or invalid.PropertyServerException
- there is a problem retrieving information from the repositories.UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
getEntitiesByType
public List<EntityDetail> getEntitiesByType(String userId, String resultTypeGUID, String resultTypeName, String sequencingPropertyName, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, int startFrom, int pageSize, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Return the list of entities of the requested type.- Parameters:
userId
- the name of the calling userresultTypeGUID
- unique identifier of the type that the results should match withresultTypeName
- unique name of the type that the results should match withserviceSupportedZones
- list of supported zones for this servicesequencingPropertyName
- name of property used to sequence the results - null means no sequencingstartFrom
- index of the list to start from (0 for start)pageSize
- maximum number of elements to returnforLineage
- the query is to support lineage retrievalforDuplicateProcessing
- the query is for duplicate processing and so must not deduplicateeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- list of entities
- Throws:
InvalidParameterException
- the userId is null or invalid.PropertyServerException
- there is a problem retrieving information from the repositories.UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
findEntities
public List<EntityDetail> findEntities(String userId, String searchString, String searchStringParameterName, String resultTypeGUID, String resultTypeName, String requiredClassificationName, String omittedClassificationName, String sequencingPropertyName, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Return the list of entities matching the supplied searchString.- Parameters:
userId
- the searchString of the calling user.searchString
- searchString of endpoint. This may include wild card characters.searchStringParameterName
- name of parameter providing search stringresultTypeGUID
- unique identifier of the type that the results should match withresultTypeName
- unique value of the type that the results should match withrequiredClassificationName
- String the name of the classification that must be on the entity.omittedClassificationName
- String the name of a classification that must not be on the entity.sequencingPropertyName
- name of property used to sequence the results - null means no sequencingstartFrom
- index of the list to start from (0 for start)pageSize
- maximum number of elements to return.forLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?effectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- list of entities
- Throws:
InvalidParameterException
- the userId is null or invalid.PropertyServerException
- there is a problem retrieving information from the repositories.UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
findEntities
public List<EntityDetail> findEntities(String userId, String searchString, String searchStringParameterName, String resultTypeGUID, String resultTypeName, String requiredClassificationName, String omittedClassificationName, String sequencingPropertyName, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Return the list of entities matching the supplied searchString.- Parameters:
userId
- the searchString of the calling user.searchString
- searchString of endpoint. This may include wild card characters.searchStringParameterName
- name of parameter providing search stringresultTypeGUID
- unique identifier of the type that the results should match withresultTypeName
- unique value of the type that the results should match withrequiredClassificationName
- String the name of the classification that must be on the entity.omittedClassificationName
- String the name of a classification that must not be on the entity.sequencingPropertyName
- name of property used to sequence the results - null means no sequencingstartFrom
- index of the list to start from (0 for start)pageSize
- maximum number of elements to return.forLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?serviceSupportedZones
- list of supported zones for this serviceeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- list of entities
- Throws:
InvalidParameterException
- the userId is null or invalid.PropertyServerException
- there is a problem retrieving information from the repositories.UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
getEntitiesByValue
public List<EntityDetail> getEntitiesByValue(String userId, String value, String valueParameterName, String resultTypeGUID, String resultTypeName, List<String> specificMatchPropertyNames, boolean exactValueMatch, String requiredClassificationName, String omittedClassificationName, boolean forLineage, boolean forDuplicateProcessing, int startFrom, int pageSize, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Return the list of entities of the requested type that match the supplied value.- Parameters:
userId
- the calling uservalue
- value to searchvalueParameterName
- parameter providing valueresultTypeGUID
- unique identifier of the type that the results should match withresultTypeName
- unique value of the type that the results should match withspecificMatchPropertyNames
- list of property value to look in - if null or empty list then all string properties are checked.exactValueMatch
- indicates whether the value must match the whole property value in a matching result, or whether it is a RegEx partial matchrequiredClassificationName
- String the name of the classification that must be on the attached entity.omittedClassificationName
- String the name of a classification that must not be on the attached entity.forLineage
- the query is to support lineage retrievalforDuplicateProcessing
- the query is for duplicate processing and so must not deduplicatestartFrom
- index of the list to start from (0 for start)pageSize
- maximum number of elements to returneffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- list of beans
- Throws:
InvalidParameterException
- the userId is null or invalid.PropertyServerException
- there is a problem retrieving information from the repositories.UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
getEntitiesByIntValue
public List<EntityDetail> getEntitiesByIntValue(String userId, int value, String resultTypeGUID, String resultTypeName, String propertyName, String requiredClassificationName, String omittedClassificationName, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, String sequencingPropertyName, int startFrom, int pageSize, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Return the list of entities of the requested type that match the supplied value.- Parameters:
userId
- the calling uservalue
- value to searchresultTypeGUID
- unique identifier of the type that the results should match withresultTypeName
- unique value of the type that the results should match withpropertyName
- property name to look in.requiredClassificationName
- String the name of the classification that must be on the attached entityomittedClassificationName
- String the name of a classification that must not be on the attached entityforLineage
- boolean indicating whether the entity is being retrieved for a lineage request or notforDuplicateProcessing
- the query is for duplicate processing and so must not deduplicateserviceSupportedZones
- list of supported zones for this servicesequencingPropertyName
- name of property used to sequence the results - null means no sequencingstartFrom
- index of the list to start from (0 for start)pageSize
- maximum number of elements to returneffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- list of beans
- Throws:
InvalidParameterException
- the userId is null or invalid.PropertyServerException
- there is a problem retrieving information from the repositories.UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
getEntitiesByValue
public List<EntityDetail> getEntitiesByValue(String userId, String value, String valueParameterName, String resultTypeGUID, String resultTypeName, List<String> specificMatchPropertyNames, boolean exactValueMatch, String requiredClassificationName, String omittedClassificationName, boolean forLineage, boolean forDuplicateProcessing, String sequencingPropertyName, int startFrom, int pageSize, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Return the list of entities of the requested type that match the supplied value.- Parameters:
userId
- the calling uservalue
- value to searchvalueParameterName
- parameter providing valueresultTypeGUID
- unique identifier of the type that the results should match withresultTypeName
- unique value of the type that the results should match withspecificMatchPropertyNames
- list of property value to look in - if null or empty list then all string properties are checked.exactValueMatch
- indicates whether the value must match the whole property value in a matching result, or whether it is a RegEx partial matchrequiredClassificationName
- String the name of the classification that must be on the attached entityomittedClassificationName
- String the name of a classification that must not be on the attached entityforLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicatesequencingPropertyName
- name of property used to sequence the results - null means no sequencingstartFrom
- index of the list to start from (0 for start)pageSize
- maximum number of elements to returneffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- list of beans
- Throws:
InvalidParameterException
- the userId is null or invalid.PropertyServerException
- there is a problem retrieving information from the repositories.UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
getEntitiesByValue
public List<EntityDetail> getEntitiesByValue(String userId, String value, String valueParameterName, String resultTypeGUID, String resultTypeName, List<String> specificMatchPropertyNames, boolean exactValueMatch, boolean caseInsensitive, String requiredClassificationName, String omittedClassificationName, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, String sequencingPropertyName, int startFrom, int pageSize, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Return the list of entities of the requested type that match the supplied value.- Parameters:
userId
- the calling uservalue
- value to searchvalueParameterName
- parameter providing valueresultTypeGUID
- unique identifier of the type that the results should match withresultTypeName
- unique value of the type that the results should match withspecificMatchPropertyNames
- list of property value to look in - if null or empty list then all string properties are checked.exactValueMatch
- indicates whether the value must match the whole property value in a matching result, or whether it is a RegEx partial matchcaseInsensitive
- set to true to have a case-insensitive exact match regular expressionrequiredClassificationName
- String the name of the classification that must be on the attached entityomittedClassificationName
- String the name of a classification that must not be on the attached entityforLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicateserviceSupportedZones
- list of supported zones for this servicesequencingPropertyName
- name of property used to sequence the results - null means no sequencingstartFrom
- index of the list to start from (0 for start)pageSize
- maximum number of elements to returneffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- list of entities
- Throws:
InvalidParameterException
- the userId is null or invalid.PropertyServerException
- there is a problem retrieving information from the repositories.UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
getEntitiesByValue
public List<EntityDetail> getEntitiesByValue(String userId, RepositoryIteratorForEntities iterator, String entityParameterName, String resultTypeName, String omittedClassificationName, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, int startFrom, int queryPageSize, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Return the list of entities of the requested type that match the supplied value.- Parameters:
userId
- the calling useriterator
- mechanism for searchentityParameterName
- parameter descriptionresultTypeName
- unique value of the type that the results should match withomittedClassificationName
- String the name of a classification that must not be on the attached entityforLineage
- boolean indicating whether the entity is being retrieved for a lineage request or notforDuplicateProcessing
- the query is for duplicate processing and so must not deduplicateserviceSupportedZones
- list of supported zones for this servicestartFrom
- index of the list to start from (0 for start)queryPageSize
- maximum number of elements to returneffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- list of beans
- Throws:
InvalidParameterException
- bad starting entityPropertyServerException
- there is a problem retrieving information from the repositories.UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
getEntityGUIDsByValue
public List<String> getEntityGUIDsByValue(String userId, String value, String valueParameterName, String resultTypeGUID, String resultTypeName, List<String> specificMatchPropertyNames, boolean exactValueMatch, String requiredClassificationName, String omittedClassificationName, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, String sequencingPropertyName, int startFrom, int pageSize, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Return the list of entities of the requested type that match the supplied value.- Parameters:
userId
- the calling uservalue
- value to searchvalueParameterName
- parameter providing valueresultTypeGUID
- unique identifier of the type that the results should match withresultTypeName
- unique value of the type that the results should match withspecificMatchPropertyNames
- list of property value to look in - if null or empty list then all string properties are checked.exactValueMatch
- indicates whether the value must match the whole property value in a matching result, or whether it is a RegEx partial matchrequiredClassificationName
- String the name of the classification that must be on the attached entity.omittedClassificationName
- String the name of a classification that must not be on the attached entity.forLineage
- boolean indicating whether the entity is being retrieved for a lineage request or not.serviceSupportedZones
- list of supported zones for this servicesequencingPropertyName
- name of property used to sequence the results - null means no sequencingstartFrom
- index of the list to start from (0 for start)pageSize
- maximum number of elements to returnforDuplicateProcessing
- the query is for duplicate processing and so must not deduplicateeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- list of beans
- Throws:
InvalidParameterException
- the userId is null or invalid.PropertyServerException
- there is a problem retrieving information from the repositories.UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
getEntityByValue
public EntityDetail getEntityByValue(String userId, String value, String valueParameterName, String resultTypeGUID, String resultTypeName, List<String> specificMatchPropertyNames, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Return the entity that matches the requested value.- Parameters:
userId
- identifier of calling uservalue
- value to searchvalueParameterName
- parameter providing valueresultTypeGUID
- unique identifier of the type that the results should match withresultTypeName
- unique value of the type that the results should match withspecificMatchPropertyNames
- list of property value to look in - if null or empty list then all string properties are checked.forLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the query is for duplicate processing and so must not deduplicateeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- requested entity
- Throws:
InvalidParameterException
- one of the parameters is null or invalid.UserNotAuthorizedException
- user not authorized to issue this request.PropertyServerException
- problem retrieving the entity.
-
getEntityByValue
public EntityDetail getEntityByValue(String userId, String value, String valueParameterName, String resultTypeGUID, String resultTypeName, List<String> specificMatchPropertyNames, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Return the entity that matches the requested value.- Parameters:
userId
- identifier of calling uservalue
- value to searchvalueParameterName
- parameter providing valueresultTypeGUID
- unique identifier of the type that the results should match withresultTypeName
- unique value of the type that the results should match withspecificMatchPropertyNames
- list of property value to look in - if null or empty list then all string properties are checked.forLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the query is for duplicate processing and so must not deduplicateserviceSupportedZones
- supported zones for calling serviceeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- requested entity
- Throws:
InvalidParameterException
- one of the parameters is null or invalid.UserNotAuthorizedException
- user not authorized to issue this request.PropertyServerException
- problem retrieving the entity.
-
getEntityGUIDByValue
public String getEntityGUIDByValue(String userId, String value, String valueParameterName, String resultTypeGUID, String resultTypeName, List<String> specificMatchPropertyNames, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Return the unique identifier of the entity matching the value.- Parameters:
userId
- identifier of calling uservalue
- value to searchvalueParameterName
- parameter providing valueresultTypeGUID
- unique identifier of the type that the results should match withresultTypeName
- unique value of the type that the results should match withspecificMatchPropertyNames
- list of property value to look in - if null or empty list then all string properties are checked.forLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicateeffectiveTime
- 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 requested entity.
- Throws:
InvalidParameterException
- one of the parameters is null or invalid.UserNotAuthorizedException
- user not authorized to issue this request.PropertyServerException
- problem retrieving the entity.
-
findBeanGUIDs
public List<String> findBeanGUIDs(String userId, String searchString, String searchStringParameterName, String resultTypeGUID, String resultTypeName, String sequencingPropertyName, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Return the list of beans of the requested type that match the supplied value.- Parameters:
userId
- the searchString of the calling user.searchString
- searchString of endpoint. This may include wild card characters.searchStringParameterName
- name of parameter providing search stringresultTypeGUID
- unique identifier of the type that the results should match withresultTypeName
- unique value of the type that the results should match withsequencingPropertyName
- name of property used to sequence the results - null means no sequencingstartFrom
- index of the list to start from (0 for start)pageSize
- maximum number of elements to return.forLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?effectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- list of beans
- Throws:
InvalidParameterException
- the userId is null or invalid.PropertyServerException
- there is a problem retrieving information from the repositories.UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
getBeansByCreator
public List<B> getBeansByCreator(String userId, String searchString, String searchStringParameterName, String resultTypeGUID, String resultTypeName, List<String> specificMatchPropertyNames, boolean exactValueMatch, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, String sequencingPropertyName, int startFrom, int pageSize, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Return the list of beans of the requested type that were created by the requesting user.- Parameters:
userId
- the name of the calling usersearchString
- value that describes what to search forsearchStringParameterName
- parameter providing search stringresultTypeGUID
- unique identifier of the type that the results should match withresultTypeName
- unique name of the type that the results should match withspecificMatchPropertyNames
- name of properties to visitexactValueMatch
- does the value need to match exactly?forLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicateserviceSupportedZones
- list of supported zones for this servicesequencingPropertyName
- should the results be sequenced?startFrom
- index of the list to start from (0 for start)pageSize
- maximum number of elements to returneffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- list of beans
- Throws:
InvalidParameterException
- the userId is null or invalid.PropertyServerException
- there is a problem retrieving information from the repositories.UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
getBeansByType
public List<B> getBeansByType(String userId, String resultTypeGUID, String resultTypeName, String sequencingPropertyName, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Return the list of beans of the requested type.- Parameters:
userId
- the name of the calling userresultTypeGUID
- unique identifier of the type that the results should match withresultTypeName
- unique name of the type that the results should match withsequencingPropertyName
- name of property used to sequence the results - null means no sequencingstartFrom
- index of the list to start from (0 for start)pageSize
- maximum number of elements to returnforLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?effectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- list of beans
- Throws:
InvalidParameterException
- the userId is null or invalid.PropertyServerException
- there is a problem retrieving information from the repositories.UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
getBeansByType
public List<B> getBeansByType(String userId, String resultTypeGUID, String resultTypeName, String sequencingPropertyName, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, int startFrom, int pageSize, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Return the list of beans of the requested type that match the supplied name.- Parameters:
userId
- the name of the calling userresultTypeGUID
- unique identifier of the type that the results should match withresultTypeName
- unique name of the type that the results should match withserviceSupportedZones
- list of supported zones for this serviceforDuplicateProcessing
- this request os for duplicate processing so do not deduplicateforLineage
- this request is for lineage so ignore Memento classificationssequencingPropertyName
- name of property used to sequence the results - null means no sequencingstartFrom
- index of the list to start from (0 for start)pageSize
- maximum number of elements to returneffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- list of beans
- Throws:
InvalidParameterException
- the userId is null or invalid.PropertyServerException
- there is a problem retrieving information from the repositories.UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
getBeanGUIDsByType
public List<String> getBeanGUIDsByType(String userId, String resultTypeGUID, String resultTypeName, String sequencingPropertyName, boolean forLineage, boolean forDuplicateProcessing, int startFrom, int pageSize, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Return the list of beans of the requested type.- Parameters:
userId
- the name of the calling userresultTypeGUID
- unique identifier of the type that the results should match withresultTypeName
- unique name of the type that the results should match withsequencingPropertyName
- should the results be sequenced?forLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicatestartFrom
- index of the list to start from (0 for start)pageSize
- maximum number of elements to returneffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- list of unique identifiers for matching beans
- Throws:
InvalidParameterException
- the userId is null or invalid.PropertyServerException
- there is a problem retrieving information from the repositories.UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
getBeanGUIDsByType
public List<String> getBeanGUIDsByType(String userId, String resultTypeGUID, String resultTypeName, String sequencingPropertyName, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, int startFrom, int pageSize, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Return the list of beans of the requested type.- Parameters:
userId
- the name of the calling userresultTypeGUID
- unique identifier of the type that the results should match withresultTypeName
- unique name of the type that the results should match withforLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicateserviceSupportedZones
- list of supported zones for this servicesequencingPropertyName
- should the results be sequenced?startFrom
- index of the list to start from (0 for start)pageSize
- maximum number of elements to returneffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- list of unique identifiers for matching beans
- Throws:
InvalidParameterException
- the userId is null or invalid.PropertyServerException
- there is a problem retrieving information from the repositories.UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
getBeansByClassification
public List<B> getBeansByClassification(String userId, String resultTypeGUID, String resultClassificationName, boolean forLineage, boolean forDuplicateProcessing, int startFrom, int pageSize, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Return the list of beans of the requested type that match the supplied classification.- Parameters:
userId
- the name of the calling userresultTypeGUID
- unique identifier of the type that the results should match withresultClassificationName
- unique name of the classification that the results should match withforLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicatestartFrom
- index of the list to start from (0 for start)pageSize
- maximum number of elements to returneffectiveTime
- the time that the retrieved elements must be effective formethodName
- calling method- Returns:
- list of beans
- Throws:
InvalidParameterException
- the userId is null or invalid.PropertyServerException
- there is a problem retrieving information from the repositories.UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
getBeanGUIDsByClassification
public List<String> getBeanGUIDsByClassification(String userId, String resultTypeGUID, String resultClassificationName, boolean forLineage, boolean forDuplicateProcessing, int startFrom, int pageSize, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Return the list of beans of the requested type that match the supplied classification.- Parameters:
userId
- the name of the calling userresultTypeGUID
- unique identifier of the type that the results should match withresultClassificationName
- unique name of the classification that the results should match withforLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicatestartFrom
- index of the list to start from (0 for start)pageSize
- maximum number of elements to returneffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- list of guids representing beans
- Throws:
InvalidParameterException
- the userId is null or invalid.PropertyServerException
- there is a problem retrieving information from the repositories.UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
linkElementToElement
public String linkElementToElement(String userId, String externalSourceGUID, String externalSourceName, String startingGUID, String startingGUIDParameterName, String startingElementTypeName, String attachingGUID, String attachingGUIDParameterName, String attachingElementTypeName, boolean forLineage, boolean forDuplicateProcessing, String relationshipTypeGUID, String relationshipTypeName, InstanceProperties relationshipProperties, Date effectiveFrom, Date effectiveTo, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Creates a relationship between two elements and updates the LatestChange in each one's anchor entity (if they have one). Both elements must be visible to the user to allow the link.- Parameters:
userId
- userId of user making requestexternalSourceGUID
- guid of the software capability entity that represented the external source - null for localexternalSourceName
- name of the software capability entity that represented the external sourcestartingGUID
- unique id for the starting element's entitystartingGUIDParameterName
- name of the parameter supplying the startingGUIDstartingElementTypeName
- type name of the starting element's entityattachingGUID
- unique id of the entity for the element that is being attachedattachingGUIDParameterName
- name of the parameter supplying the attachingGUIDattachingElementTypeName
- type name of the attaching element's entityforLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicaterelationshipTypeGUID
- unique identifier of type of the relationship to createrelationshipTypeName
- unique name of type of the relationship to createrelationshipProperties
- properties to add to the relationship or null if no properties to addeffectiveFrom
- the date when this element is active - null for active noweffectiveTo
- the date when this element becomes inactive - null for active until deletedeffectiveTime
- 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 relationship
- Throws:
InvalidParameterException
- one of the parameters is null or invalid.PropertyServerException
- there is a problem updating the repositories.UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
linkElementToElement
public String linkElementToElement(String userId, String externalSourceGUID, String externalSourceName, String startingGUID, String startingGUIDParameterName, String startingElementTypeName, String attachingGUID, String attachingGUIDParameterName, String attachingElementTypeName, boolean forLineage, boolean forDuplicateProcessing, String relationshipTypeGUID, String relationshipTypeName, Date effectiveFrom, Date effectiveTo, Map<String, Object> relationshipProperties, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedExceptionCreates a relationship between two elements and updates the LatestChange in each one's anchor entity (if they have one). Both elements must be visible to the user to allow the link.- Parameters:
userId
- userId of user making requestexternalSourceGUID
- guid of the software capability entity that represented the external source - null for localexternalSourceName
- name of the software capability entity that represented the external sourcestartingGUID
- unique id for the starting element's entitystartingGUIDParameterName
- name of the parameter supplying the startingGUIDstartingElementTypeName
- type name of the starting element's entityattachingGUID
- unique id of the entity for the element that is being attachedattachingGUIDParameterName
- name of the parameter supplying the attachingGUIDattachingElementTypeName
- type name of the attaching element's entityforLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicaterelationshipTypeGUID
- unique identifier of type of the relationship to createrelationshipTypeName
- unique name of type of the relationship to createeffectiveFrom
- the date when this element is active - null for active noweffectiveTo
- the date when this element becomes inactive - null for active until deletedrelationshipProperties
- properties to add to the relationship or null if no properties to addeffectiveTime
- the time that the retrieved elements must be effective formethodName
- calling method- Returns:
- unique identifier of the new relationship
- Throws:
InvalidParameterException
- one of the parameters is null or invalid.PropertyServerException
- there is a problem updating the repositories.UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
linkElementToElement
public String linkElementToElement(String userId, String externalSourceGUID, String externalSourceName, String startingElementGUID, String startingGUIDParameterName, String startingElementTypeName, String attachingElementGUID, String attachingGUIDParameterName, String attachingElementTypeName, boolean forLineage, boolean forDuplicateProcessing, List<String> suppliedSupportedZones, String attachmentTypeGUID, String attachmentTypeName, InstanceProperties relationshipProperties, Date effectiveFrom, Date effectiveTo, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Creates a relationship between two elements and updates the LatestChange in each one's anchor entity (if they have one). Both elements must be visible to the user to allow the link. If the relationship already exists with matching effectivity dates, the properties are updated.- Parameters:
userId
- userId of user making requestexternalSourceGUID
- guid of the software capability entity that represented the external source - null for localexternalSourceName
- name of the software capability entity that represented the external sourcestartingElementGUID
- unique id for the starting element's entitystartingGUIDParameterName
- name of the parameter supplying the startingGUIDstartingElementTypeName
- type name of the starting element's entityattachingElementGUID
- unique id of the entity for the element that is being attachedattachingGUIDParameterName
- name of the parameter supplying the attachingGUIDattachingElementTypeName
- type name of the attaching element's entityforLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicatesuppliedSupportedZones
- list of zones that any asset must be a member of at least one to be visibleattachmentTypeGUID
- unique identifier of type of the relationship to createattachmentTypeName
- unique name of type of the relationship to createrelationshipProperties
- properties to add to the relationship or null if no properties to addeffectiveFrom
- the date when this element is active - null for active noweffectiveTo
- the date when this element becomes inactive - null for active until deletedeffectiveTime
- 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 relationship
- Throws:
InvalidParameterException
- one of the parameters is null or invalid.PropertyServerException
- there is a problem adding the relationship to the repositories.UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
uncheckedLinkElementToElement
public String uncheckedLinkElementToElement(String userId, String externalSourceGUID, String externalSourceName, String startingElementGUID, String startingGUIDParameterName, String startingElementTypeName, String attachingElementGUID, String attachingGUIDParameterName, String attachingElementTypeName, boolean forLineage, boolean forDuplicateProcessing, List<String> suppliedSupportedZones, String attachmentTypeGUID, String attachmentTypeName, InstanceProperties relationshipProperties, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Creates a relationship between two elements and updates the LatestChange in each one's anchor entity (if they have one). Both elements must be visible to the user to allow the link. No check is done for the relationship existence before creating it.- Parameters:
userId
- userId of user making requestexternalSourceGUID
- guid of the software capability entity that represented the external source - null for localexternalSourceName
- name of the software capability entity that represented the external sourcestartingElementGUID
- unique id for the starting element's entitystartingGUIDParameterName
- name of the parameter supplying the startingGUIDstartingElementTypeName
- type name of the starting element's entityattachingElementGUID
- unique id of the entity for the element that is being attachedattachingGUIDParameterName
- name of the parameter supplying the attachingGUIDattachingElementTypeName
- type name of the attaching element's entityforLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicatesuppliedSupportedZones
- list of zones that any asset must be a member of at least one to be visibleattachmentTypeGUID
- unique identifier of type of the relationship to createattachmentTypeName
- unique name of type of the relationship to createrelationshipProperties
- properties to add to the relationship or null if no properties to addeffectiveTime
- 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 relationship
- Throws:
InvalidParameterException
- one of the parameters is null or invalid.PropertyServerException
- there is a problem adding the relationship to the repositories.UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
multiLinkElementToElement
public String multiLinkElementToElement(String userId, String externalSourceGUID, String externalSourceName, String startingElementGUID, String startingGUIDParameterName, String startingElementTypeName, String attachingElementGUID, String attachingGUIDParameterName, String attachingElementTypeName, boolean forLineage, boolean forDuplicateProcessing, List<String> suppliedSupportedZones, String attachmentTypeGUID, String attachmentTypeName, InstanceProperties relationshipProperties, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Creates a relationship between two elements and updates the LatestChange in each one's anchor entity (if they have one). Both elements must be visible to the user to allow the link.- Parameters:
userId
- userId of user making requestexternalSourceGUID
- guid of the software capability entity that represented the external source - null for localexternalSourceName
- name of the software capability entity that represented the external sourcestartingElementGUID
- unique id for the starting element's entitystartingGUIDParameterName
- name of the parameter supplying the startingGUIDstartingElementTypeName
- type name of the starting element's entityattachingElementGUID
- unique id of the entity for the element that is being attachedattachingGUIDParameterName
- name of the parameter supplying the attachingGUIDattachingElementTypeName
- type name of the attaching element's entityforLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicatesuppliedSupportedZones
- list of zones that any asset must be a member of at least one to be visibleattachmentTypeGUID
- unique identifier of type of the relationship to createattachmentTypeName
- unique name of type of the relationship to createrelationshipProperties
- properties to add to the relationship or null if no properties to addeffectiveTime
- 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 relationship
- Throws:
InvalidParameterException
- one of the parameters is null or invalid.PropertyServerException
- there is a problem adding the relationship to the repositories.UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
updateElementToElementLink
public void updateElementToElementLink(String userId, String externalSourceGUID, String externalSourceName, String startingGUID, String startingGUIDParameterName, String startingElementTypeName, String attachingGUID, String attachingGUIDParameterName, String attachingElementTypeName, boolean forLineage, boolean forDuplicateProcessing, List<String> suppliedSupportedZones, String attachmentTypeGUID, String attachmentTypeName, boolean isMergeUpdate, InstanceProperties relationshipProperties, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Updates a relationship between two elements and updates the LatestChange in each one's anchor entity (if they have one). Both elements must be visible to the user to allow the update.- Parameters:
userId
- userId of user making requestexternalSourceGUID
- guid of the software capability entity that represented the external source - null for localexternalSourceName
- name of the software capability entity that represented the external sourcestartingGUID
- unique id for the starting element's entitystartingGUIDParameterName
- name of the parameter supplying the startingGUIDstartingElementTypeName
- type name of the starting element's entityattachingGUID
- unique id of the entity for the element that is being attachedattachingGUIDParameterName
- name of the parameter supplying the attachingGUIDattachingElementTypeName
- type name of the attaching element's entityforLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicatesuppliedSupportedZones
- list of zones that any asset must be a member of at least one to be visibleattachmentTypeGUID
- unique identifier of type of the relationship to createattachmentTypeName
- unique name of type of the relationship to createisMergeUpdate
- should the supplied properties be merged with existing properties (true) by replacing just the properties with matching names, or should the entire properties of the instance be replaced?relationshipProperties
- properties to add to the relationship or null if no properties to addeffectiveTime
- the time that the retrieved elements must be effective formethodName
- calling method- Throws:
InvalidParameterException
- one of the parameters is null or invalid.PropertyServerException
- there is a problem adding the relationship to the repositories.UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
updateElementToElementLink
public void updateElementToElementLink(String userId, String externalSourceGUID, String externalSourceName, String relationshipGUID, String relationshipGUIDParameterName, String relationshipTypeName, boolean forLineage, boolean forDuplicateProcessing, boolean isMergeUpdate, Date effectiveFrom, Date effectiveTo, Map<String, Object> relationshipProperties, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedExceptionUpdates a relationship between two elements and updates the LatestChange in each one's anchor entity (if they have one). Both elements must be visible to the user to allow the update.- Parameters:
userId
- userId of user making requestexternalSourceGUID
- guid of the software capability entity that represented the external source - null for localexternalSourceName
- name of the software capability entity that represented the external sourcerelationshipGUID
- unique identifier of the relationshiprelationshipGUIDParameterName
- name of the parameter supplying the relationshipGUIDrelationshipTypeName
- name of the relationship typeforLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicateisMergeUpdate
- should the supplied properties be merged with existing properties (true) by replacing just the properties with matching names, or should the entire properties of the instance be replaced?effectiveFrom
- the date when this element is active - null for active noweffectiveTo
- the date when this element becomes inactive - null for active until deletedrelationshipProperties
- properties to add to the relationship or null if no properties to addeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Throws:
InvalidParameterException
- one of the parameters is null or invalid.PropertyServerException
- there is a problem adding the relationship to the repositories.UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
updateElementToElementLink
public void updateElementToElementLink(String userId, String externalSourceGUID, String externalSourceName, String relationshipGUID, String relationshipGUIDParameterName, String relationshipTypeName, boolean forLineage, boolean forDuplicateProcessing, List<String> suppliedSupportedZones, boolean isMergeUpdate, InstanceProperties relationshipProperties, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Updates a relationship between two elements and updates the LatestChange in each one's anchor entity (if they have one). Both elements must be visible to the user to allow the update.- Parameters:
userId
- userId of user making requestexternalSourceGUID
- guid of the software capability entity that represented the external source - null for localexternalSourceName
- name of the software capability entity that represented the external sourcerelationshipGUID
- unique identifier of the relationshiprelationshipGUIDParameterName
- name of the parameter supplying the relationshipGUIDrelationshipTypeName
- name of the relationship typeforLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicatesuppliedSupportedZones
- list of zones that any asset must be a member of at least one to be visibleisMergeUpdate
- should the supplied properties be merged with existing properties (true) by replacing just the properties with matching names, or should the entire properties of the instance be replaced?relationshipProperties
- properties to add to the relationship or null if no properties to addeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Throws:
InvalidParameterException
- one of the parameters is null or invalid.PropertyServerException
- there is a problem adding the relationship to the repositories.UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
relinkElementToNewElement
public void relinkElementToNewElement(String userId, String externalSourceGUID, String externalSourceName, String startingGUID, String startingGUIDParameterName, String startingElementTypeName, boolean startAtEnd1, String newAttachingGUID, String newAttachingGUIDParameterName, String newAttachingElementTypeName, boolean forLineage, boolean forDuplicateProcessing, String attachmentTypeGUID, String attachmentTypeName, InstanceProperties relationshipProperties, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Deleted the existing relationship between the starting element and another element then create a new relationship between the starting element and the new attaching element. If successful this updates the LatestChange in each one's anchor entity (if they have one). Both elements must be visible to the user to allow the relinking.- Parameters:
userId
- userId of user making requestexternalSourceGUID
- guid of the software capability entity that represented the external source - null for localexternalSourceName
- name of the software capability entity that represented the external sourcestartingGUID
- unique id for the starting element's entitystartingGUIDParameterName
- name of the parameter supplying the startingGUIDstartingElementTypeName
- type name of the starting element's entitystartAtEnd1
- is the starting element at end 1 of the relationshipnewAttachingGUID
- unique id of the entity for the element that is being attachednewAttachingGUIDParameterName
- name of the parameter supplying the newAttachingGUIDnewAttachingElementTypeName
- type name of the attaching element's entityforLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicateattachmentTypeGUID
- unique identifier of type of the relationship to createattachmentTypeName
- unique name of type of the relationship to createrelationshipProperties
- properties to add to the relationship or null if no properties to addeffectiveTime
- the time that the retrieved elements must be effective formethodName
- calling method- Throws:
InvalidParameterException
- one of the parameters is null or invalid; or the relationship to change is not obviousPropertyServerException
- there is a problem adding the relationship to the repositoriesUserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
relinkElementToNewElement
public void relinkElementToNewElement(String userId, String externalSourceGUID, String externalSourceName, String startingGUID, String startingGUIDParameterName, String startingElementTypeName, boolean startAtEnd1, String newAttachingGUID, String newAttachingGUIDParameterName, String newAttachingElementTypeName, boolean forLineage, boolean forDuplicateProcessing, List<String> suppliedSupportedZones, String attachmentTypeGUID, String attachmentTypeName, InstanceProperties relationshipProperties, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Deleted the existing relationship between the starting element and another element then create a new relationship between the starting element and the new attaching element. If successful this updates the LatestChange in each one's anchor entity (if they have one). Both elements must be visible to the user to allow the relinking.- Parameters:
userId
- userId of user making requestexternalSourceGUID
- guid of the software capability entity that represented the external source - null for localexternalSourceName
- name of the software capability entity that represented the external sourcestartingGUID
- unique id for the starting element's entitystartingGUIDParameterName
- name of the parameter supplying the startingGUIDstartingElementTypeName
- type name of the starting element's entitystartAtEnd1
- is the starting element at end 1 of the relationshipnewAttachingGUID
- unique id of the entity for the element that is being attachednewAttachingGUIDParameterName
- name of the parameter supplying the newAttachingGUIDnewAttachingElementTypeName
- type name of the attaching element's entityforLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicatesuppliedSupportedZones
- list of zones that any asset must be a member of at least one to be visibleattachmentTypeGUID
- unique identifier of type of the relationship to createattachmentTypeName
- unique name of type of the relationship to createrelationshipProperties
- properties to add to the relationship or null if no properties to addeffectiveTime
- the time that the retrieved elements must be effective formethodName
- calling method- Throws:
InvalidParameterException
- one of the parameters is null or invalid; or the relationship to change is not obviousPropertyServerException
- there is a problem adding the relationship to the repositoriesUserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
unlinkElementFromElement
public void unlinkElementFromElement(String userId, boolean onlyCreatorPermitted, String externalSourceGUID, String externalSourceName, String startingGUID, String startingGUIDParameterName, String startingElementTypeName, String attachingGUID, String attachingGUIDParameterName, String attachingElementTypeGUID, String attachingElementTypeName, boolean forLineage, boolean forDuplicateProcessing, String attachmentTypeGUID, String attachmentTypeName, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Removes a relationship between two specified elements. If after the relationship is deleted, one of the ends has now lost its anchor, then that entity is deleted. Anchored entities should not be left unanchored. This can cause a cascading effect if the anchored elements are organized in a hierarchy, such as a schema or a comment conversation.- Parameters:
userId
- userId of user making requestonlyCreatorPermitted
- operation only permitted if the userId was the same one that created the relationshipexternalSourceGUID
- guid of the software capability entity that represented the external source - null for localexternalSourceName
- name of the software capability entity that represented the external sourcestartingGUID
- unique id for the starting element's entitystartingGUIDParameterName
- name of the parameter supplying the startingGUIDstartingElementTypeName
- type name of the starting element's entityattachingGUID
- unique id of the entity for the element that is being attachedattachingGUIDParameterName
- name of the parameter supplying the attachingGUIDattachingElementTypeGUID
- type identifier of the attaching element's entityattachingElementTypeName
- type name of the attaching element's entityforLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicateattachmentTypeGUID
- unique identifier of type of the relationship to createattachmentTypeName
- unique name of type of the relationship to createeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Throws:
InvalidParameterException
- one of the parameters is null or invalid.PropertyServerException
- there is a problem updating relationship in the repositories.UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
unlinkElementFromElement
public void unlinkElementFromElement(String userId, boolean onlyCreatorPermitted, String externalSourceGUID, String externalSourceName, String startingGUID, String startingGUIDParameterName, String startingElementTypeName, String attachedGUID, String attachedGUIDParameterName, String attachedElementTypeGUID, String attachedElementTypeName, boolean forLineage, boolean forDuplicateProcessing, List<String> suppliedSupportedZones, String attachmentTypeGUID, String attachmentTypeName, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Removes a relationship between two specified elements. If after the relationship is deleted, one of the ends has now lost its anchor, then that entity is deleted. Anchored entities should not be left unanchored. This can cause a cascading effect if the anchored elements are organized in a hierarchy, such as a schema or a comment conversation.- Parameters:
userId
- userId of user making requestonlyCreatorPermitted
- operation only permitted if the userId was the same one that created the relationshipexternalSourceGUID
- guid of the software capability entity that represented the external source - null for localexternalSourceName
- name of the software capability entity that represented the external sourcestartingGUID
- unique id for the starting element's entitystartingGUIDParameterName
- name of the parameter supplying the startingGUIDstartingElementTypeName
- type name of the starting element's entityattachedGUID
- unique id of the entity for the element that is being detachedattachedGUIDParameterName
- name of the parameter supplying the attachedGUIDattachedElementTypeGUID
- type GUID of the attaching element's entityattachedElementTypeName
- type name of the attaching element's entityforLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicatesuppliedSupportedZones
- list of zones that any asset must be a member of at least one to be visibleattachmentTypeGUID
- unique identifier of type of the relationship to removeattachmentTypeName
- unique name of type of the relationship to removeeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Throws:
InvalidParameterException
- one of the parameters is null or invalid.PropertyServerException
- there is a problem updating relationship in the repositories.UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
unlinkElementFromElement
public void unlinkElementFromElement(String userId, boolean onlyCreatorPermitted, String externalSourceGUID, String externalSourceName, String startingGUID, String startingGUIDParameterName, String startingElementTypeName, String attachedGUID, String attachedGUIDParameterName, String attachedElementTypeGUID, String attachedElementTypeName, boolean forLineage, boolean forDuplicateProcessing, String attachmentTypeName, Relationship relationship, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Removes a relationship between two specified elements. If after the relationship is deleted, one of the ends has now lost its anchor, then that entity is deleted. Anchored entities should not be left unanchored. This can cause a cascading effect if the anchored elements are organized in a hierarchy, such as a schema or a comment conversation.- Parameters:
userId
- userId of user making requestonlyCreatorPermitted
- operation only permitted if the userId was the same one that created the relationshipexternalSourceGUID
- guid of the software capability entity that represented the external source - null for localexternalSourceName
- name of the software capability entity that represented the external sourcestartingGUID
- unique id for the starting element's entitystartingGUIDParameterName
- name of the parameter supplying the startingGUIDstartingElementTypeName
- type name of the starting element's entityattachedGUID
- unique id of the entity for the element that is being detachedattachedGUIDParameterName
- name of the parameter supplying the attachedGUIDattachedElementTypeGUID
- type GUID of the attaching element's entityattachedElementTypeName
- type name of the attaching element's entityforLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicateattachmentTypeName
- unique name of type of the relationship to removerelationship
- specific relationship to removeeffectiveTime
- the time that the retrieved elements must be effective formethodName
- calling method- Throws:
InvalidParameterException
- one of the parameters is null or invalid.PropertyServerException
- there is a problem updating relationship in the repositories.UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
unlinkElementFromElement
public void unlinkElementFromElement(String userId, boolean onlyCreatorPermitted, String externalSourceGUID, String externalSourceName, String startingGUID, String startingGUIDParameterName, String startingElementTypeName, String attachedGUID, String attachedGUIDParameterName, String attachedElementTypeGUID, String attachedElementTypeName, boolean forLineage, boolean forDuplicateProcessing, List<String> suppliedSupportedZones, String attachmentTypeName, Relationship relationship, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Removes a relationship between two specified elements. If after the relationship is deleted, one of the ends has now lost its anchor, then that entity is deleted. Anchored entities should not be left unanchored. This can cause a cascading effect if the anchored elements are organized in a hierarchy, such as a schema or a comment conversation.- Parameters:
userId
- userId of user making requestonlyCreatorPermitted
- operation only permitted if the userId was the same one that created the relationshipexternalSourceGUID
- guid of the software capability entity that represented the external source - null for localexternalSourceName
- name of the software capability entity that represented the external sourcestartingGUID
- unique id for the starting element's entitystartingGUIDParameterName
- name of the parameter supplying the startingGUIDstartingElementTypeName
- type name of the starting element's entityattachedGUID
- unique id of the entity for the element that is being detachedattachedGUIDParameterName
- name of the parameter supplying the attachedGUIDattachedElementTypeGUID
- type GUID of the attaching element's entityattachedElementTypeName
- type name of the attaching element's entityforLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicatesuppliedSupportedZones
- list of zones that any asset must be a member of at least one to be visibleattachmentTypeName
- unique name of type of the relationship to removerelationship
- specific relationship to removeeffectiveTime
- the time that the retrieved elements must be effective formethodName
- calling method- Throws:
InvalidParameterException
- one of the parameters is null or invalid.PropertyServerException
- there is a problem updating relationship in the repositories.UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
unlinkAllElements
public void unlinkAllElements(String userId, boolean onlyCreatorPermitted, String externalSourceGUID, String externalSourceName, String startingGUID, String startingGUIDParameterName, String startingElementTypeName, boolean forLineage, boolean forDuplicateProcessing, List<String> suppliedSupportedZones, String attachmentTypeGUID, String attachmentTypeName, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Calls unlinkElementFromElement for all relationships of a certain type emanating from the requested element.- Parameters:
userId
- userId of user making requestonlyCreatorPermitted
- operation only permitted if the userId was the same one that created the relationshipexternalSourceGUID
- guid of the software capability entity that represented the external source - null for localexternalSourceName
- name of the software capability entity that represented the external sourcestartingGUID
- unique id for the starting element's entitystartingGUIDParameterName
- name of the parameter supplying the startingGUIDstartingElementTypeName
- type name of the starting element's entityforLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicatesuppliedSupportedZones
- list of zones that any asset must be a member of at least one to be visibleattachmentTypeGUID
- unique identifier of type of the relationship to createattachmentTypeName
- unique name of type of the relationship to createeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Throws:
InvalidParameterException
- one of the parameters is null or invalid.PropertyServerException
- there is a problem updating the relationships in the repositories.UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
unlinkConnectedElement
public String unlinkConnectedElement(String userId, boolean onlyCreatorPermitted, String externalSourceGUID, String externalSourceName, String startingGUID, String startingGUIDParameterName, String startingElementTypeName, boolean forLineage, boolean forDuplicateProcessing, List<String> suppliedSupportedZones, String attachmentTypeGUID, String attachmentTypeName, String detachedElementTypeName, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Removes the relationship of a specific type attached to an entity. If the connected entity is anchored to the starting entity it is deleted (and linked dependent elements). There should be only one relationship. If there are more, an error is thrown.- Parameters:
userId
- userId of user making requestonlyCreatorPermitted
- operation only permitted if the userId was the same one that created the relationshipexternalSourceGUID
- guid of the software capability entity that represented the external source - null for localexternalSourceName
- name of the software capability entity that represented the external sourcestartingGUID
- unique id for the starting element's entitystartingGUIDParameterName
- name of the parameter supplying the startingGUIDstartingElementTypeName
- type name of the starting element's entityforLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicatesuppliedSupportedZones
- list of zones that any asset must be a member of at least one to be visibleattachmentTypeGUID
- unique identifier of type of the relationship to createattachmentTypeName
- unique name of type of the relationship to createdetachedElementTypeName
- name of type of element that will be detachedeffectiveTime
- 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 entity that has been detached
- Throws:
InvalidParameterException
- one of the parameters is null or invalid.PropertyServerException
- there is a problem updating the relationship in the repositories.UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
verifyExternalSourceIdentity
public void verifyExternalSourceIdentity(String userId, String externalSourceGUID, String externalSourceName, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Verify that the integrator identities are either null or refer to a valid software capability. These values will be used to set up the- Parameters:
userId
- calling userexternalSourceGUID
- guid of the software capability entity that represented the external source - null for localexternalSourceName
- name of the software capability entity that represented the external sourceforLineage
- is this request part of a lineage serviceforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicateeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Throws:
InvalidParameterException
- the integrator GUID or name does not match what is in the metadata repositoryPropertyServerException
- problem accessing repositoriesUserNotAuthorizedException
- security access problem
-
isEntityATypeOf
public boolean isEntityATypeOf(String userId, String guid, String guidParameterName, String entityTypeName, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Test whether an entity is of a particular type or not. Internally it delegates toRepositoryHandler.isEntityATypeOf(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.util.Date, java.lang.String)
- Parameters:
userId
- calling userguid
- unique identifier of the entity.guidParameterName
- name of the parameter containing the guid.entityTypeName
- name of the type to test forforLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?effectiveTime
- the time that the retrieved elements must be effective formethodName
- calling method- Returns:
- boolean flag
- Throws:
InvalidParameterException
- one of the parameters is null or invalid.UserNotAuthorizedException
- user not authorized to issue this request.PropertyServerException
- problem retrieving the entity.
-
getSpecification
public Map<String,List<Map<String, getSpecificationString>>> (String userId, String elementGUID, String elementGUIDParameterName, String elementTypeName, List<String> serviceSupportedZones) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Retrieve the reference data for this element.- Parameters:
userId
- calling userelementGUID
- element to queryelementGUIDParameterName
- parameter nameelementTypeName
- type nameserviceSupportedZones
- supported zones for the service- Returns:
- map of reference data
- Throws:
InvalidParameterException
- bad parameterPropertyServerException
- repository errorUserNotAuthorizedException
- authorization issue
-