Class ActorProfileHandler<B>
- java.lang.Object
-
- org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericHandler<B>
-
- org.odpi.openmetadata.commonservices.generichandlers.ReferenceableHandler<B>
-
- org.odpi.openmetadata.commonservices.generichandlers.ActorProfileHandler<B>
-
- Type Parameters:
B- class that represents the profile
public class ActorProfileHandler<B> extends ReferenceableHandler<B>
ActorProfileHandler provides the exchange of metadata about actor profiles between the repository and the OMAS.
-
-
Field Summary
-
Fields inherited from class org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericHandler
auditLog, beanClass, converter, defaultZones, errorHandler, invalidParameterHandler, localServerUserId, publishZones, repositoryHandler, repositoryHelper, securityVerifier, serverName, serviceName, supportedZones
-
-
Constructor Summary
Constructors Constructor Description ActorProfileHandler(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 with information needed to work with B objects.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringcreateActorProfile(String userId, String externalSourceGUID, String externalSourceName, String qualifiedName, String name, String description, Map<String,String> additionalProperties, String suppliedTypeName, Map<String,Object> extendedProperties, Date effectiveFrom, Date effectiveTo, String methodName)Create the anchor object that all elements in a profile (terms and categories) are linked to.StringcreateActorProfileFromTemplate(String userId, String externalSourceGUID, String externalSourceName, String templateGUID, String qualifiedName, String name, String description, String methodName)Create a new metadata element to represent a profile using an existing metadata element as a template.List<B>findActorProfiles(String userId, String searchString, String searchStringParameterName, String typeGUID, String typeName, int startFrom, int pageSize, Date effectiveTime, String methodName)Retrieve the list of profile metadata elements that contain the search string.BgetActorProfileByGUID(String userId, String guid, String guidParameterName, String typeName, Date effectiveTime, String methodName)Retrieve the profile metadata element with the supplied unique identifier.BgetActorProfileByUniqueName(String userId, String qualifiedName, String qualifiedNameParameterName, String typeGUID, String typeName, Date effectiveTime, String methodName)Retrieve the profile metadata element with the supplied unique identifier.BgetActorProfileForUser(String userId, String profileUserId, String profileUserIdParameterName, String typeName, Date effectiveTime, String methodName)Retrieve the profile metadata element with the supplied unique identifier.List<B>getActorProfilesByName(String userId, String name, String nameParameterName, String typeGUID, String typeName, int startFrom, int pageSize, Date effectiveTime, String methodName)Retrieve the list of profile metadata elements with a matching qualified or display name.voidlinkPeerPersonProfiles(String userId, String externalSourceGUID, String externalSourceName, String profile1GUID, String profile1GUIDParameterName, String profile2GUID, String profile2GUIDParameterName, Date effectiveFrom, Date effectiveTo, String methodName)Link two person profiles as peers.voidlinkTeamHierarchy(String userId, String externalSourceGUID, String externalSourceName, String superTeamGUID, String superTeamGUIDParameterName, String subTeamGUID, String subTeamGUIDParameterName, boolean delegationEscalationAuthority, Date effectiveFrom, Date effectiveTo, String methodName)Link two team profiles as part of a hierarchy.voidremoveActorProfile(String userId, String externalSourceGUID, String externalSourceName, String profileGUID, String profileGUIDParameterName, String methodName)Remove the metadata element representing a profile.voidunlinkPeerPersonProfiles(String userId, String externalSourceGUID, String externalSourceName, String profile1GUID, String profile1GUIDParameterName, String profile2GUID, String profile2GUIDParameterName, Date effectiveTime, String methodName)Unlink two person profiles as peers.voidunlinkTeamHierarchy(String userId, String externalSourceGUID, String externalSourceName, String superTeamGUID, String superTeamGUIDParameterName, String subTeamGUID, String subTeamGUIDParameterName, Date effectiveTime, String methodName)Unlink two team profiles from the hierarchy.voidupdateActorProfile(String userId, String externalSourceGUID, String externalSourceName, String profileGUID, String profileGUIDParameterName, String qualifiedName, String name, String description, Map<String,String> additionalProperties, String typeName, Map<String,Object> extendedProperties, boolean isMergeUpdate, Date effectiveFrom, Date effectiveTo, String methodName)Update the anchor object that all elements in a profile (terms and categories) are linked to.-
Methods inherited from class org.odpi.openmetadata.commonservices.generichandlers.ReferenceableHandler
addOwner, addSecurityTags, addTemplateClassification, clearBusinessSignificant, findBeanGUIDsByQualifiedName, findBeansByQualifiedName, findBeansByQualifiedName, getBeanByQualifiedName, getBeanByQualifiedName, getBeanGUIDByQualifiedName, getBeanGUIDByQualifiedName, getBeanGUIDsByQualifiedName, getBeanGUIDsByQualifiedName, getBeansByQualifiedName, getBeansByQualifiedName, getCollectionMembers, getEntityByUniqueQualifiedName, getMoreInformation, getMoreInformation, getVendorProperties, linkElementsAsPeerDuplicates, removeOwner, removeResourceListMember, removeSecurityTags, removeSemanticAssignment, removeTemplateClassification, saveResourceListMember, saveSemanticAssignment, saveSemanticAssignment, setBusinessSignificant, setVendorProperties, unlinkElementsAsPeerDuplicates
-
Methods inherited from class org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericHandler
addAnchorsClassification, archiveBeanInRepository, archiveBeanInRepository, countAttachments, createBeanFromTemplate, createBeanInRepository, deleteAnchoredEntity, deleteBeanInRepository, deleteBeanInRepository, deleteBeanInRepository, deleteBeanInRepository, deleteRelationship, entityMatchSearchCriteria, findAttachmentLinks, findBeanGUIDs, findBeans, findBeans, findBeans, findEntities, findEntities, getAllAttachmentLinks, getAnchorGUIDFromAnchorsClassification, getAttachedElement, getAttachedElementGUID, getAttachedElementGUID, getAttachedElementGUIDs, getAttachedElementGUIDs, getAttachedElements, getAttachedElements, getAttachedElements, getAttachedEntities, getAttachedEntities, getAttachedEntitiesFromUser, getAttachedEntity, getAttachedEntity, getAttachedEntity, getAttachedEntityFromUser, getAttachedFilteredEntities, getAttachedFilteredEntities, getAttachedFilteredEntities, getAttachmentLink, getAttachmentLinks, getAttachmentLinks, getAttachmentLinks, getBeanByUniqueName, getBeanByUniqueName, getBeanByValue, getBeanFromEntity, getBeanFromRepository, getBeanFromRepository, getBeanFromRepository, getBeanGUIDByUniqueName, getBeanGUIDByUniqueName, getBeanGUIDsByClassification, getBeanGUIDsByType, getBeanGUIDsByType, getBeanGUIDsByValue, getBeansByClassification, getBeansByCreator, getBeansByIntValue, getBeansByType, getBeansByType, getBeansByValue, getBeansByValue, getBeansByValue, getBeansByValue, getEffectiveTime, getEffectiveTime, getEntitiesByIntValue, getEntitiesByType, getEntitiesByType, getEntitiesByValue, getEntitiesByValue, getEntitiesByValue, getEntitiesByValue, getEntitiesByValue, getEntityByValue, getEntityFromRepository, getEntityFromRepository, getEntityGUIDByValue, getEntityGUIDsByValue, getRepositoryHandler, getRepositoryHelper, getServerName, getServiceName, getTypeDefByName, getUniqueAttachmentLink, getUniqueAttachmentLink, isBeanIsolated, isEntityATypeOf, linkElementToElement, linkElementToElement, linkElementToElement, linkElementToElement, maintainSupplementaryProperties, multiLinkElementToElement, regexSearchCriteria, relinkElementToNewElement, relinkElementToNewElement, removeClassificationFromRepository, removeClassificationFromRepository, setClassificationInRepository, setClassificationInRepository, setClassificationInRepository, setClassificationInRepository, setClassificationInRepository, setSecurityVerifier, unlinkAllElements, unlinkConnectedElement, unlinkElementFromElement, unlinkElementFromElement, unlinkElementFromElement, unlinkElementFromElement, updateBeanEffectivityDates, updateBeanEffectivityDates, updateBeanInRepository, updateBeanInRepository, updateBeanInRepository, updateBeanPropertyInRepository, updateBeanStatusInRepository, updateBeanStatusInRepository, updateBeanStatusInRepository, updateClassificationEffectivityDates, updateClassificationEffectivityDates, updateElementToElementLink, updateElementToElementLink, updateElementToElementLink, updateElementToElementLink, updateRelationshipEffectivityDates, updateRelationshipEffectivityDates, updateRelationshipProperties, validateAnchorEntity, validateAnchorEntity, validateUniqueProperty, verifyExternalSourceIdentity
-
-
-
-
Constructor Detail
-
ActorProfileHandler
public ActorProfileHandler(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 with information needed to work with B objects.- 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 B instances fromdefaultZones- list of zones that the access service should set in all new B instancespublishZones- list of zones that the access service sets up in published B instancesauditLog- destination for audit log events
-
-
Method Detail
-
createActorProfile
public String createActorProfile(String userId, String externalSourceGUID, String externalSourceName, String qualifiedName, String name, String description, Map<String,String> additionalProperties, String suppliedTypeName, Map<String,Object> extendedProperties, Date effectiveFrom, Date effectiveTo, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Create the anchor object that all elements in a profile (terms and categories) are linked to.- Parameters:
userId- calling userexternalSourceGUID- unique identifier of software server capability representing the callerexternalSourceName- unique name of software server capability representing the callerqualifiedName- unique name for the profile - used in other configurationname- short display name for the profiledescription- description of the governance profileadditionalProperties- additional properties for a profilesuppliedTypeName- type name from the caller (enables creation of subtypes)extendedProperties- properties for a governance profile subtypeeffectiveFrom- starting time for this relationship (null for all time)effectiveTo- ending time for this relationship (null for all time)methodName- calling method- Returns:
- unique identifier of the new profile object
- Throws:
InvalidParameterException- qualifiedName or userId is nullPropertyServerException- problem accessing property serverUserNotAuthorizedException- security access problem
-
createActorProfileFromTemplate
public String createActorProfileFromTemplate(String userId, String externalSourceGUID, String externalSourceName, String templateGUID, String qualifiedName, String name, String description, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Create a new metadata element to represent a profile using an existing metadata element as a template. The template defines additional classifications and relationships that should be added to the new profile. All categories and terms are linked to a single profile. They are owned by this profile and if the profile is deleted, any linked terms and categories are deleted as well.- Parameters:
userId- calling userexternalSourceGUID- unique identifier of software server capability representing the callerexternalSourceName- unique name of software server capability representing the callertemplateGUID- unique identifier of the metadata element to copyqualifiedName- unique name for the profile - used in other configurationname- short display name for the profiledescription- description of the governance profilemethodName- calling method- Returns:
- unique identifier of the new metadata element
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
updateActorProfile
public void updateActorProfile(String userId, String externalSourceGUID, String externalSourceName, String profileGUID, String profileGUIDParameterName, String qualifiedName, String name, String description, Map<String,String> additionalProperties, String typeName, Map<String,Object> extendedProperties, boolean isMergeUpdate, Date effectiveFrom, Date effectiveTo, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Update the anchor object that all elements in a profile (terms and categories) are linked to.- Parameters:
userId- calling userexternalSourceGUID- unique identifier of software server capability representing the callerexternalSourceName- unique name of software server capability representing the callerprofileGUID- unique identifier of the profile to updateprofileGUIDParameterName- parameter passing the profileGUIDqualifiedName- unique name for the profile - used in other configurationname- short display name for the profiledescription- description of the governance profileadditionalProperties- additional properties for a governance profiletypeName- type of profileextendedProperties- properties for a governance profile subtypeisMergeUpdate- 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?effectiveFrom- starting time for this relationship (null for all time)effectiveTo- ending time for this relationship (null for all time)methodName- calling method- Throws:
InvalidParameterException- qualifiedName or userId is nullPropertyServerException- problem accessing property serverUserNotAuthorizedException- security access problem
-
linkPeerPersonProfiles
public void linkPeerPersonProfiles(String userId, String externalSourceGUID, String externalSourceName, String profile1GUID, String profile1GUIDParameterName, String profile2GUID, String profile2GUIDParameterName, Date effectiveFrom, Date effectiveTo, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Link two person profiles as peers.- Parameters:
userId- calling userexternalSourceGUID- unique identifier of software server capability representing the callerexternalSourceName- unique name of software server capability representing the callerprofile1GUID- unique identifier of person profileprofile1GUIDParameterName- parameter name supplying profile1GUIDprofile2GUID- unique identifier of the other person profileprofile2GUIDParameterName- parameter name supplying profile2GUIDeffectiveFrom- starting time for this relationship (null for all time)effectiveTo- ending time for this relationship (null for all time)methodName- calling method- Throws:
InvalidParameterException- entity not known, null userId or guidPropertyServerException- problem accessing property serverUserNotAuthorizedException- security access problem
-
unlinkPeerPersonProfiles
public void unlinkPeerPersonProfiles(String userId, String externalSourceGUID, String externalSourceName, String profile1GUID, String profile1GUIDParameterName, String profile2GUID, String profile2GUIDParameterName, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Unlink two person profiles as peers.- Parameters:
userId- calling userexternalSourceGUID- unique identifier of software server capability representing the callerexternalSourceName- unique name of software server capability representing the callerprofile1GUID- unique identifier of person profileprofile1GUIDParameterName- parameter name supplying profile1GUIDprofile2GUID- unique identifier of the other person profileprofile2GUIDParameterName- parameter name supplying profile2GUIDeffectiveTime- the time that the retrieved elements must be effective formethodName- calling method- Throws:
InvalidParameterException- entity not known, null userId or guidPropertyServerException- problem accessing property serverUserNotAuthorizedException- security access problem
-
linkTeamHierarchy
public void linkTeamHierarchy(String userId, String externalSourceGUID, String externalSourceName, String superTeamGUID, String superTeamGUIDParameterName, String subTeamGUID, String subTeamGUIDParameterName, boolean delegationEscalationAuthority, Date effectiveFrom, Date effectiveTo, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Link two team profiles as part of a hierarchy.- Parameters:
userId- calling userexternalSourceGUID- unique identifier of software server capability representing the callerexternalSourceName- unique name of software server capability representing the callersuperTeamGUID- unique identifier of team profilesuperTeamGUIDParameterName- parameter name supplying superTeamGUIDsubTeamGUID- unique identifier of the other team profilesubTeamGUIDParameterName- parameter name supplying subTeamGUIDdelegationEscalationAuthority- can workflows delegate/escalate through this link?effectiveFrom- starting time for this relationship (null for all time)effectiveTo- ending time for this relationship (null for all time)methodName- calling method- Throws:
InvalidParameterException- entity not known, null userId or guidPropertyServerException- problem accessing property serverUserNotAuthorizedException- security access problem
-
unlinkTeamHierarchy
public void unlinkTeamHierarchy(String userId, String externalSourceGUID, String externalSourceName, String superTeamGUID, String superTeamGUIDParameterName, String subTeamGUID, String subTeamGUIDParameterName, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Unlink two team profiles from the hierarchy.- Parameters:
userId- calling userexternalSourceGUID- unique identifier of software server capability representing the callerexternalSourceName- unique name of software server capability representing the callersuperTeamGUID- unique identifier of team profilesuperTeamGUIDParameterName- parameter name supplying superTeamGUIDsubTeamGUID- unique identifier of the other team profilesubTeamGUIDParameterName- parameter name supplying subTeamGUIDeffectiveTime- the time that the retrieved elements must be effective formethodName- calling method- Throws:
InvalidParameterException- entity not known, null userId or guidPropertyServerException- problem accessing property serverUserNotAuthorizedException- security access problem
-
removeActorProfile
public void removeActorProfile(String userId, String externalSourceGUID, String externalSourceName, String profileGUID, String profileGUIDParameterName, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove the metadata element representing a profile. This will delete the profile and all categories and terms because the Anchors classifications are set up in these elements.- Parameters:
userId- calling userexternalSourceGUID- unique identifier of software server capability representing the callerexternalSourceName- unique name of software server capability representing the callerprofileGUID- unique identifier of the metadata element to removeprofileGUIDParameterName- parameter supplying the profileGUIDmethodName- calling method- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
findActorProfiles
public List<B> findActorProfiles(String userId, String searchString, String searchStringParameterName, String typeGUID, String typeName, int startFrom, int pageSize, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the list of profile metadata elements that contain the search string. The search string is treated as a regular expression.- Parameters:
userId- calling usersearchString- string to find in the propertiessearchStringParameterName- name of parameter supplying the search stringtypeGUID- unique identifier of the type of the profile to retrievetypeName- unique name of the type of the profile to retrievestartFrom- paging start pointpageSize- maximum results that can be returnedeffectiveTime- the time that the retrieved elements must be effective formethodName- calling method- Returns:
- list of matching metadata elements
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
getActorProfilesByName
public List<B> getActorProfilesByName(String userId, String name, String nameParameterName, String typeGUID, String typeName, int startFrom, int pageSize, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the list of profile metadata elements with a matching qualified or display name. There are no wildcards supported on this request.- Parameters:
userId- calling username- name to search fornameParameterName- parameter supplying nametypeGUID- unique identifier of the type of the profile to retrievetypeName- unique name of the type of the profile to retrievestartFrom- paging start pointpageSize- maximum results that can be returnedeffectiveTime- the time that the retrieved elements must be effective formethodName- calling method- Returns:
- list of matching metadata elements
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
getActorProfileByGUID
public B getActorProfileByGUID(String userId, String guid, String guidParameterName, String typeName, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the profile metadata element with the supplied unique identifier. This method only returns the core profile information from the ActorProfile entity.- Parameters:
userId- calling userguid- unique identifier of the requested metadata elementguidParameterName- parameter name of guidtypeName- unique name of the type of the profile to retrieveeffectiveTime- the time that the retrieved elements must be effective formethodName- calling method- Returns:
- matching metadata element
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
getActorProfileForUser
public B getActorProfileForUser(String userId, String profileUserId, String profileUserIdParameterName, String typeName, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the profile metadata element with the supplied unique identifier.- Parameters:
userId- calling userprofileUserId- unique name of the linked user idprofileUserIdParameterName- parameter name of profileUserIdtypeName- unique name of the type of the profile to retrieveeffectiveTime- the time that the retrieved elements must be effective formethodName- calling method- Returns:
- matching metadata element
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
getActorProfileByUniqueName
public B getActorProfileByUniqueName(String userId, String qualifiedName, String qualifiedNameParameterName, String typeGUID, String typeName, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the profile metadata element with the supplied unique identifier.- Parameters:
userId- calling userqualifiedName- unique name of the linked user idqualifiedNameParameterName- parameter name of qualifiedNametypeGUID- unique identifier of type of profiletypeName- unique name of type of profileeffectiveTime- the time that the retrieved elements must be effective formethodName- calling method- Returns:
- matching metadata element
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
-