Class AppointmentHandler
java.lang.Object
org.odpi.openmetadata.accessservices.governanceprogram.handlers.AppointmentHandler
AppointmentHandler is responsible for managing the relationship between a person role and a
profile. It typically returns the combination of the relationship and the profile bean.
Specifically it supports the return of GovernanceAppointee in GovernanceRoleAppointee and
GovernanceRoleHistory.
-
Constructor Summary
ConstructorsConstructorDescriptionAppointmentHandler(org.odpi.openmetadata.commonservices.generichandlers.PersonRoleHandler<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.GovernanceRoleElement> roleHandler, org.odpi.openmetadata.commonservices.generichandlers.ActorProfileHandler<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ProfileElement> profileHandler, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryHelper repositoryHelper, String serviceName, String serverName, org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog) Create an AppointmentHandler. -
Method Summary
Modifier and TypeMethodDescriptionList<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.GovernanceRoleAppointee>getCurrentGovernanceRoleAppointments(String userId, int domainIdentifier, int startFrom, int pageSize, String methodName) Return all the governance roles and their incumbents (if any).org.odpi.openmetadata.frameworks.openmetadata.metadataelements.GovernanceRoleHistorygetGovernanceRoleHistoryByGUID(String userId, String governanceRoleGUID, String methodName) Retrieve a governance role description by unique guid along with the history of who has been appointed to the role.
-
Constructor Details
-
AppointmentHandler
public AppointmentHandler(org.odpi.openmetadata.commonservices.generichandlers.PersonRoleHandler<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.GovernanceRoleElement> roleHandler, org.odpi.openmetadata.commonservices.generichandlers.ActorProfileHandler<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ProfileElement> profileHandler, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryHelper repositoryHelper, String serviceName, String serverName, org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog) Create an AppointmentHandler.- Parameters:
roleHandler- handler for person rolesprofileHandler- handler for actor profilesrepositoryHelper- helperserviceName- this serviceserverName- controlling server nameauditLog- logging destination
-
-
Method Details
-
getCurrentGovernanceRoleAppointments
public List<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.GovernanceRoleAppointee> getCurrentGovernanceRoleAppointments(String userId, int domainIdentifier, int startFrom, int pageSize, String methodName) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException Return all the governance roles and their incumbents (if any).- Parameters:
userId- the name of the calling userdomainIdentifier- identifier of domain - 0 means allstartFrom- where to start from in the list of definitionspageSize- max number of results to return in one callmethodName- calling method- Returns:
- list of governance role objects
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- the userId is either null or invalid.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- the server is not available.org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the calling user is not authorized to issue the call.
-
getGovernanceRoleHistoryByGUID
public org.odpi.openmetadata.frameworks.openmetadata.metadataelements.GovernanceRoleHistory getGovernanceRoleHistoryByGUID(String userId, String governanceRoleGUID, String methodName) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException Retrieve a governance role description by unique guid along with the history of who has been appointed to the role.- Parameters:
userId- the name of the calling user.governanceRoleGUID- unique identifier (guid) of the governance rolemethodName- calling method- Returns:
- governance role object
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- the unique identifier of the governance role is either null or invalid.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- the server is not available.org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the calling user is not authorized to issue the call.
-