public class PersonalProfileHandler extends Object
| Constructor and Description |
|---|
PersonalProfileHandler(String serviceName,
String serverName,
InvalidParameterHandler invalidParameterHandler,
OMRSRepositoryHelper repositoryHelper,
RepositoryHandler repositoryHandler,
RepositoryErrorHandler errorHandler)
Construct the discovery engine configuration handler caching the objects
needed to operate within a single server instance.
|
| Modifier and Type | Method and Description |
|---|---|
String |
createPersonalProfile(String userId,
String profileUserId,
String employeeNumber,
String fullName,
String knownName,
String jobTitle,
String jobRoleDescription,
Map<String,String> additionalProperties,
String methodName)
Create a personal profile for an individual.
|
void |
deletePersonalProfile(String userId,
String profileGUID,
String qualifiedName,
String methodName)
Delete the personal profile.
|
PersonalProfile |
getPersonalProfile(String userId,
EntityDetail personalProfileEntity,
String methodName)
Create a personal profile from an entity.
|
PersonalProfile |
getPersonalProfile(String userId,
String profileUserId,
String methodName)
Retrieve a personal profile for a userId.
|
PersonalProfile |
getPersonalProfileByGUID(String userId,
String profileGUID,
String methodName)
Retrieve a personal profile by guid.
|
PersonalProfile |
getPersonalProfileByQualifiedName(String userId,
String qualifiedName,
String methodName)
Retrieve a personal profile by personnel/serial/unique employee number of the individual.
|
List<PersonalProfile> |
getPersonalProfilesByName(String userId,
String name,
int startFrom,
int pageSize,
String methodName)
Return a list of candidate personal profiles for an individual.
|
void |
updatePersonalProfile(String userId,
String profileGUID,
String qualifiedName,
String fullName,
String knownName,
String jobTitle,
String jobRoleDescription,
Map<String,Object> extendedProperties,
Map<String,String> additionalProperties,
String methodName)
Update properties for the personal properties.
|
public PersonalProfileHandler(String serviceName, String serverName, InvalidParameterHandler invalidParameterHandler, OMRSRepositoryHelper repositoryHelper, RepositoryHandler repositoryHandler, RepositoryErrorHandler errorHandler)
serviceName - name of the consuming serviceserverName - name of this server instanceinvalidParameterHandler - handler for invalid parametersrepositoryHelper - helper used by the convertersrepositoryHandler - handler for calling the repository serviceserrorHandler - handler for repository service errorspublic PersonalProfile getPersonalProfile(String userId, EntityDetail personalProfileEntity, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling userIdpersonalProfileEntity - principle entity of the profile.methodName - calling methodInvalidParameterException - one of the userIds is nullPropertyServerException - the metadata repository is not availableUserNotAuthorizedException - the user is not authorized to issue this requestpublic PersonalProfile getPersonalProfile(String userId, String profileUserId, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling userIdprofileUserId - userId associated with the profile.methodName - calling methodInvalidParameterException - one of the userIds is nullPropertyServerException - the metadata repository is not availableUserNotAuthorizedException - the user is not authorized to issue this requestpublic String createPersonalProfile(String userId, String profileUserId, String employeeNumber, String fullName, String knownName, String jobTitle, String jobRoleDescription, Map<String,String> additionalProperties, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - the name of the calling user.profileUserId - userId of the individual whose profile this is.employeeNumber - personnel/serial/unique employee number of the individual.fullName - full name of the person.knownName - known name or nickname of the individual.jobTitle - job title of the individual.jobRoleDescription - job description of the individual.additionalProperties - additional properties about the individual.methodName - calling methodInvalidParameterException - the qualified name or known name is null.PropertyServerException - the server is not available.UserNotAuthorizedException - the calling user is not authorized to issue the call.public void updatePersonalProfile(String userId, String profileGUID, String qualifiedName, String fullName, String knownName, String jobTitle, String jobRoleDescription, Map<String,Object> extendedProperties, Map<String,String> additionalProperties, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - the name of the calling user.profileGUID - unique identifier for the profile.qualifiedName - personnel/serial/unique employee number of the individual. Used to verify the profileGUID.fullName - full name of the person.knownName - known name or nickname of the individual.jobTitle - job title of the individual.jobRoleDescription - job description of the individual.extendedProperties - subtype properties.additionalProperties - additional properties about the individual.methodName - calling methodInvalidParameterException - the full name is null or the qualifiedName does not match the profileGUID.PropertyServerException - the server is not available.UserNotAuthorizedException - the calling user is not authorized to issue the call.public void deletePersonalProfile(String userId, String profileGUID, String qualifiedName, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - the name of the calling user.profileGUID - unique identifier for the profile.qualifiedName - personnel/serial/unique employee number of the individual.methodName - calling methodInvalidParameterException - the employee number or full name is null.PropertyServerException - the server is not available.UserNotAuthorizedException - the calling user is not authorized to issue the call.public PersonalProfile getPersonalProfileByGUID(String userId, String profileGUID, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - the name of the calling user.profileGUID - unique identifier for the profile.methodName - calling methodInvalidParameterException - the unique identifier of the personal profile is either null or invalid.PropertyServerException - the server is not available.UserNotAuthorizedException - the calling user is not authorized to issue the call.public PersonalProfile getPersonalProfileByQualifiedName(String userId, String qualifiedName, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - the name of the calling user.qualifiedName - personnel/serial/unique employee number of the individual.methodName - calling methodInvalidParameterException - userId is null; the qualified name is null or not unique.PropertyServerException - the server is not available.UserNotAuthorizedException - the calling user is not authorized to issue the call.public List<PersonalProfile> getPersonalProfilesByName(String userId, String name, int startFrom, int pageSize, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - the name of the calling user.name - name of individual.startFrom - scan pointerpageSize - maximum number of resultsmethodName - calling methodInvalidParameterException - the name is null.PropertyServerException - the server is not available.UserNotAuthorizedException - the calling user is not authorized to issue the call.Copyright © 2018–2021 LF AI & Data Foundation. All rights reserved.