Class OrganizationManagement
java.lang.Object
org.odpi.openmetadata.accessservices.communityprofile.client.CommunityProfileBaseClient
org.odpi.openmetadata.accessservices.communityprofile.client.OrganizationManagement
- All Implemented Interfaces:
OrganizationManagementInterface
,RelatedElementsManagementInterface
public class OrganizationManagement
extends CommunityProfileBaseClient
implements OrganizationManagementInterface
OrganizationManagement is the client used by the Organization Integrator OMIS that is responsible with synchronizing organizational
structures, profiles rules and users with open metadata.
-
Field Summary
Fields inherited from class org.odpi.openmetadata.accessservices.communityprofile.client.CommunityProfileBaseClient
baseURLTemplatePrefix, openMetadataStoreClient, propertyHelper
-
Constructor Summary
ConstructorDescriptionOrganizationManagement
(String serverName, String serverPlatformURLRoot, int maxPageSize) Create a new client with no authentication embedded in the HTTP request.OrganizationManagement
(String serverName, String serverPlatformURLRoot, String userId, String password, int maxPageSize) Create a new client that passes userId and password in each HTTP request.OrganizationManagement
(String serverName, String serverPlatformURLRoot, String userId, String password, AuditLog auditLog, int maxPageSize) Create a new client that passes userId and password in each HTTP request.OrganizationManagement
(String serverName, String serverPlatformURLRoot, CommunityProfileRESTClient restClient, int maxPageSize) Create a new client that passes userId and password in each HTTP request.OrganizationManagement
(String serverName, String serverPlatformURLRoot, AuditLog auditLog, int maxPageSize) Create a new client with no authentication embedded in the HTTP request. -
Method Summary
Modifier and TypeMethodDescriptionaddContactMethod
(String userId, String externalSourceGUID, String externalSourceName, String actorProfileGUID, ContactMethodProperties properties) Add a new contact method to the profile.createActorProfile
(String userId, String externalSourceGUID, String externalSourceName, ActorProfileProperties properties, ContributionRecord contributionRecord) Create a definition of an actor profile.createPersonRole
(String userId, String externalSourceGUID, String externalSourceName, PersonRoleProperties properties) Create a definition of a person role.void
deleteActorProfile
(String userId, String externalSourceGUID, String externalSourceName, String actorProfileGUID) Remove the definition of an actor profile.void
deleteContactMethod
(String userId, String externalSourceGUID, String externalSourceName, String contactMethodGUID) Remove an obsolete contact method from the profile.void
deletePersonRole
(String userId, String externalSourceGUID, String externalSourceName, String personRoleGUID) Remove the definition of a person role.findActorProfiles
(String userId, String searchString, int startFrom, int pageSize) Retrieve the list of matching profiles for the search string.findPersonRoles
(String userId, String searchString, int startFrom, int pageSize) Retrieve the list of matching roles for the search string.getActorProfileByGUID
(String userId, String actorProfileGUID) Return information about a specific actor profile.getActorProfileByUserId
(String userId, String actorProfileUserId) Return information about a specific actor profile.getActorProfiles
(String userId, int startFrom, int pageSize) Return information about all actor profiles.getActorProfilesByLocation
(String userId, String locationGUID, int startFrom, int pageSize) Return information about the actor profiles associated with a location.getActorProfilesByName
(String userId, String name, int startFrom, int pageSize) Return information about a named actor profile.getAppointees
(String userId, String personRoleGUID, Date effectiveTime, int startFrom, int pageSize) Return the list of people appointed to a particular role.getLeadershipRolesForTeam
(String userId, String teamGUID, int startFrom, int pageSize) Return information about the leadership person roles linked to a team.getMembershipRolesForTeam
(String userId, String teamGUID, int startFrom, int pageSize) Return information about the membership person roles linked to a team.getPersonRoleByGUID
(String userId, String personRoleGUID) Return information about a specific person role.getPersonRolesByName
(String userId, String name, int startFrom, int pageSize) Return information about a named person role.linkPersonRoleToProfile
(String userId, String externalSourceGUID, String externalSourceName, String personRoleGUID, String personProfileGUID, AppointmentProperties properties) Link a person role to a person profile to show that that person is performing the role.void
linkTeamPlayer
(String userId, String externalSourceGUID, String externalSourceName, String teamRoleGUID, String teamProfileGUID, String position, boolean leadershipPosition) Link a team leader person role or team member person role to a team profile.void
linkTeamsInHierarchy
(String userId, String externalSourceGUID, String externalSourceName, String superTeamProfileGUID, String subTeamProfileGUID, boolean delegationEscalationAuthority, Date effectiveFrom, Date effectiveTo) Link two related team/organization actor profiles together as part of a hierarchy.void
unlinkPersonRoleFromProfile
(String userId, String externalSourceGUID, String externalSourceName, String appointmentGUID) Remove the link between a person role and a person profile.void
unlinkTeamPlayer
(String userId, String externalSourceGUID, String externalSourceName, String teamRoleGUID, String teamProfileGUID, boolean leadershipPosition) Remove the link between a person role and a team profile.void
unlinkTeamsInHierarchy
(String userId, String externalSourceGUID, String externalSourceName, String superTeamProfileGUID, String subTeamProfileGUID) Remove the link between two actor profiles in the actor profile hierarchy.void
updateActorProfile
(String userId, String externalSourceGUID, String externalSourceName, String actorProfileGUID, boolean isMergeUpdate, ActorProfileProperties properties, ContributionRecord contributionRecord) Update the definition of an actor profile.void
updateAppointment
(String userId, String externalSourceGUID, String externalSourceName, String appointmentGUID, boolean isMergeUpdate, AppointmentProperties properties) Update the properties for the appointment of a person to a role.void
updatePersonRole
(String userId, String externalSourceGUID, String externalSourceName, String personRoleGUID, boolean isMergeUpdate, PersonRoleProperties properties) Update the definition of a person role.Methods inherited from class org.odpi.openmetadata.accessservices.communityprofile.client.CommunityProfileBaseClient
clearAssignmentScope, clearMoreInformation, clearResource, clearStakeholder, getAssignedActors, getAssignedScopes, getDescriptiveElements, getMoreInformation, getResourceList, getStakeholderCommissionedElements, getStakeholders, getSupportedByResource, removeReferenceable, setupAssignmentScope, setupMoreInformation, setupResource, setupStakeholder, updateRelationship
-
Constructor Details
-
OrganizationManagement
public OrganizationManagement(String serverName, String serverPlatformURLRoot, int maxPageSize) throws InvalidParameterException Create a new client with no authentication embedded in the HTTP request.- Parameters:
serverName
- name of the server to connect toserverPlatformURLRoot
- the network address of the server running the OMAS REST servicesmaxPageSize
- maximum value allowed for page size- Throws:
InvalidParameterException
- bad input parameters
-
OrganizationManagement
public OrganizationManagement(String serverName, String serverPlatformURLRoot, AuditLog auditLog, int maxPageSize) throws InvalidParameterException Create a new client with no authentication embedded in the HTTP request.- Parameters:
serverName
- name of the server to connect toserverPlatformURLRoot
- the network address of the server running the OMAS REST servicesauditLog
- logging destinationmaxPageSize
- maximum value allowed for page size- Throws:
InvalidParameterException
- there is a problem creating the client-side components to issue any REST API calls.
-
OrganizationManagement
public OrganizationManagement(String serverName, String serverPlatformURLRoot, String userId, String password, int maxPageSize) throws InvalidParameterException Create a new client that passes userId and password in each HTTP request. This is the userId/password of the calling server. The end user's userId is sent on each request.- Parameters:
serverName
- name of the server to connect toserverPlatformURLRoot
- the network address of the server running the OMAS REST servicesuserId
- caller's userId embedded in all HTTP requestspassword
- caller's userId embedded in all HTTP requestsmaxPageSize
- maximum value allowed for page size- Throws:
InvalidParameterException
- bad input parameters
-
OrganizationManagement
public OrganizationManagement(String serverName, String serverPlatformURLRoot, String userId, String password, AuditLog auditLog, int maxPageSize) throws InvalidParameterException Create a new client that passes userId and password in each HTTP request. This is the userId/password of the calling server. The end user's userId is sent on each request.- Parameters:
serverName
- name of the server to connect toserverPlatformURLRoot
- the network address of the server running the OMAS REST servicesuserId
- caller's userId embedded in all HTTP requestspassword
- caller's userId embedded in all HTTP requestsauditLog
- logging destinationmaxPageSize
- maximum value allowed for page size- Throws:
InvalidParameterException
- bad input parameters
-
OrganizationManagement
public OrganizationManagement(String serverName, String serverPlatformURLRoot, CommunityProfileRESTClient restClient, int maxPageSize) throws InvalidParameterException Create a new client that passes userId and password in each HTTP request. This is the userId/password of the calling server. The end user's userId is sent on each request.- Parameters:
serverName
- name of the server to connect toserverPlatformURLRoot
- the network address of the server running the OMAS REST servicesrestClient
- pre-initialized REST clientmaxPageSize
- pre-initialized parameter limit- Throws:
InvalidParameterException
- there is a problem with the information about the remote OMAS
-
-
Method Details
-
createActorProfile
public String createActorProfile(String userId, String externalSourceGUID, String externalSourceName, ActorProfileProperties properties, ContributionRecord contributionRecord) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create a definition of an actor profile. This could be for the whole organization, a team, a person or a system.- Specified by:
createActorProfile
in interfaceOrganizationManagementInterface
- Parameters:
userId
- calling userexternalSourceGUID
- guid of the software server capability entity that represented the external source - null for localexternalSourceName
- name of the software server capability entity that represented the external sourceproperties
- properties for a actor profilecontributionRecord
- optional properties for the contribution record- Returns:
- unique identifier of actor profile
- Throws:
InvalidParameterException
- qualifiedName or userId is null; qualifiedName is not uniquePropertyServerException
- problem accessing property serverUserNotAuthorizedException
- security access problem
-
updateActorProfile
public void updateActorProfile(String userId, String externalSourceGUID, String externalSourceName, String actorProfileGUID, boolean isMergeUpdate, ActorProfileProperties properties, ContributionRecord contributionRecord) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Update the definition of an actor profile.- Specified by:
updateActorProfile
in interfaceOrganizationManagementInterface
- Parameters:
userId
- calling userexternalSourceGUID
- guid of the software server capability entity that represented the external source - null for localexternalSourceName
- name of the software server capability entity that represented the external sourceactorProfileGUID
- unique identifier of actor profileisMergeUpdate
- are unspecified properties unchanged (true) or replaced with null?properties
- properties to changecontributionRecord
- additional properties for contribution record.- Throws:
InvalidParameterException
- guid, qualifiedName or userId is null; qualifiedName is not unique; guid is not knownPropertyServerException
- problem accessing property serverUserNotAuthorizedException
- security access problem
-
deleteActorProfile
public void deleteActorProfile(String userId, String externalSourceGUID, String externalSourceName, String actorProfileGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Remove the definition of an actor profile.- Specified by:
deleteActorProfile
in interfaceOrganizationManagementInterface
- Parameters:
userId
- calling userexternalSourceGUID
- guid of the software server capability entity that represented the external source - null for localexternalSourceName
- name of the software server capability entity that represented the external sourceactorProfileGUID
- unique identifier of actor profile- Throws:
InvalidParameterException
- guid or userId is null; guid is not knownPropertyServerException
- problem accessing property serverUserNotAuthorizedException
- security access problem
-
addContactMethod
public String addContactMethod(String userId, String externalSourceGUID, String externalSourceName, String actorProfileGUID, ContactMethodProperties properties) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Add a new contact method to the profile.- Specified by:
addContactMethod
in interfaceOrganizationManagementInterface
- Parameters:
userId
- the name of the calling user.externalSourceGUID
- guid of the software server capability entity that represented the external source - null for localexternalSourceName
- name of the software server capability entity that represented the external sourceactorProfileGUID
- identifier of the profile to update.properties
- properties of contact method.- Returns:
- unique identifier (guid) for the new contact method.
- Throws:
InvalidParameterException
- the userId is null or invalid. Another property is invalid.PropertyServerException
- there is a problem retrieving information from the property server(s).UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
deleteContactMethod
public void deleteContactMethod(String userId, String externalSourceGUID, String externalSourceName, String contactMethodGUID) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Remove an obsolete contact method from the profile.- Specified by:
deleteContactMethod
in interfaceOrganizationManagementInterface
- Parameters:
userId
- the name of the calling user.externalSourceGUID
- guid of the software server capability entity that represented the external source - null for localexternalSourceName
- name of the software server capability entity that represented the external sourcecontactMethodGUID
- unique identifier (guid) for the obsolete contact method.- Throws:
InvalidParameterException
- the userId is null or invalid. Another property is invalid.PropertyServerException
- there is a problem retrieving information from the property server(s).UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
linkTeamsInHierarchy
public void linkTeamsInHierarchy(String userId, String externalSourceGUID, String externalSourceName, String superTeamProfileGUID, String subTeamProfileGUID, boolean delegationEscalationAuthority, Date effectiveFrom, Date effectiveTo) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Link two related team/organization actor profiles together as part of a hierarchy. A team/organization actor profile can only have one parent but many child actor profiles.- Specified by:
linkTeamsInHierarchy
in interfaceOrganizationManagementInterface
- Parameters:
userId
- calling userexternalSourceGUID
- guid of the software server capability entity that represented the external source - null for localexternalSourceName
- name of the software server capability entity that represented the external sourcesuperTeamProfileGUID
- unique identifier of the parent team profilesubTeamProfileGUID
- unique identifier of the child team profiledelegationEscalationAuthority
- can workflows delegate/escalate through this link?effectiveFrom
- start date for the team relationshipeffectiveTo
- end date for the team relationship- Throws:
InvalidParameterException
- one of the guids is null or not knownPropertyServerException
- problem accessing property serverUserNotAuthorizedException
- security access problem
-
unlinkTeamsInHierarchy
public void unlinkTeamsInHierarchy(String userId, String externalSourceGUID, String externalSourceName, String superTeamProfileGUID, String subTeamProfileGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Remove the link between two actor profiles in the actor profile hierarchy.- Specified by:
unlinkTeamsInHierarchy
in interfaceOrganizationManagementInterface
- Parameters:
userId
- calling userexternalSourceGUID
- guid of the software server capability entity that represented the external source - null for localexternalSourceName
- name of the software server capability entity that represented the external sourcesuperTeamProfileGUID
- unique identifier of the parent actor profilesubTeamProfileGUID
- unique identifier of the child actor profile- Throws:
InvalidParameterException
- one of the guids is null or not knownPropertyServerException
- problem accessing property serverUserNotAuthorizedException
- security access problem
-
getActorProfileByGUID
public ActorProfileElement getActorProfileByGUID(String userId, String actorProfileGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Return information about a specific actor profile.- Specified by:
getActorProfileByGUID
in interfaceOrganizationManagementInterface
- Parameters:
userId
- calling useractorProfileGUID
- unique identifier for the actor profile- Returns:
- properties of the actor profile
- Throws:
InvalidParameterException
- actorProfileGUID or userId is nullPropertyServerException
- problem accessing property serverUserNotAuthorizedException
- security access problem
-
getActorProfileByUserId
public ActorProfileElement getActorProfileByUserId(String userId, String actorProfileUserId) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Return information about a specific actor profile.- Specified by:
getActorProfileByUserId
in interfaceOrganizationManagementInterface
- Parameters:
userId
- calling useractorProfileUserId
- unique identifier for the actor profile- Returns:
- properties of the actor profile
- Throws:
InvalidParameterException
- actorProfileUserId or userId is nullPropertyServerException
- problem accessing property serverUserNotAuthorizedException
- security access problem
-
getActorProfilesByName
public List<ActorProfileElement> getActorProfilesByName(String userId, String name, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Return information about a named actor profile.- Specified by:
getActorProfilesByName
in interfaceOrganizationManagementInterface
- Parameters:
userId
- calling username
- unique name for the actor profilestartFrom
- index of the list to start from (0 for start)pageSize
- maximum number of elements to return.- Returns:
- list of matching actor profiles (hopefully only one)
- Throws:
InvalidParameterException
- name or userId is nullPropertyServerException
- problem accessing property serverUserNotAuthorizedException
- security access problem
-
getActorProfiles
public List<ActorProfileElement> getActorProfiles(String userId, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Return information about all actor profiles.- Specified by:
getActorProfiles
in interfaceOrganizationManagementInterface
- Parameters:
userId
- calling userstartFrom
- index of the list to start from (0 for start)pageSize
- maximum number of elements to return.- Returns:
- list of matching actor profiles (hopefully only one)
- Throws:
InvalidParameterException
- name or userId is nullPropertyServerException
- problem accessing property serverUserNotAuthorizedException
- security access problem
-
getActorProfilesByLocation
public List<ActorProfileElement> getActorProfilesByLocation(String userId, String locationGUID, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Return information about the actor profiles associated with a location.- Specified by:
getActorProfilesByLocation
in interfaceOrganizationManagementInterface
- Parameters:
userId
- calling userlocationGUID
- unique identifier for the locationstartFrom
- index of the list to start from (0 for start)pageSize
- maximum number of elements to return.- Returns:
- list of matching actor profiles (hopefully only one)
- Throws:
InvalidParameterException
- locationGUID or userId is nullPropertyServerException
- problem accessing property serverUserNotAuthorizedException
- security access problem
-
findActorProfiles
public List<ActorProfileElement> findActorProfiles(String userId, String searchString, int startFrom, int pageSize) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Retrieve the list of matching profiles for the search string.- Specified by:
findActorProfiles
in interfaceOrganizationManagementInterface
- Parameters:
userId
- the name of the calling user.searchString
- RegEx string to search forstartFrom
- index of the list to start from (0 for start)pageSize
- maximum number of elements to return.- Returns:
- list of matching actor profiles
- Throws:
InvalidParameterException
- guid invalid or the external references are not correctly specified, or are null.PropertyServerException
- the server is not available.UserNotAuthorizedException
- the calling user is not authorized to issue the call.
-
createPersonRole
public String createPersonRole(String userId, String externalSourceGUID, String externalSourceName, PersonRoleProperties properties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create a definition of a person role.- Specified by:
createPersonRole
in interfaceOrganizationManagementInterface
- Parameters:
userId
- calling userexternalSourceGUID
- guid of the software server capability entity that represented the external source - null for localexternalSourceName
- name of the software server capability entity that represented the external sourceproperties
- properties for a person role- Returns:
- unique identifier of person role
- Throws:
InvalidParameterException
- qualifiedName or userId is null; qualifiedName is not uniquePropertyServerException
- problem accessing property serverUserNotAuthorizedException
- security access problem
-
updatePersonRole
public void updatePersonRole(String userId, String externalSourceGUID, String externalSourceName, String personRoleGUID, boolean isMergeUpdate, PersonRoleProperties properties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Update the definition of a person role.- Specified by:
updatePersonRole
in interfaceOrganizationManagementInterface
- Parameters:
userId
- calling userexternalSourceGUID
- guid of the software server capability entity that represented the external source - null for localexternalSourceName
- name of the software server capability entity that represented the external sourcepersonRoleGUID
- unique identifier of person roleisMergeUpdate
- are unspecified properties unchanged (true) or replaced with null?properties
- properties to change- Throws:
InvalidParameterException
- guid, qualifiedName or userId is null; qualifiedName is not unique; guid is not knownPropertyServerException
- problem accessing property serverUserNotAuthorizedException
- security access problem
-
deletePersonRole
public void deletePersonRole(String userId, String externalSourceGUID, String externalSourceName, String personRoleGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Remove the definition of a person role.- Specified by:
deletePersonRole
in interfaceOrganizationManagementInterface
- Parameters:
userId
- calling userexternalSourceGUID
- guid of the software server capability entity that represented the external source - null for localexternalSourceName
- name of the software server capability entity that represented the external sourcepersonRoleGUID
- unique identifier of person role- Throws:
InvalidParameterException
- guid or userId is null; guid is not knownPropertyServerException
- problem accessing property serverUserNotAuthorizedException
- security access problem
-
linkPersonRoleToProfile
public String linkPersonRoleToProfile(String userId, String externalSourceGUID, String externalSourceName, String personRoleGUID, String personProfileGUID, AppointmentProperties properties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Link a person role to a person profile to show that that person is performing the role.- Specified by:
linkPersonRoleToProfile
in interfaceOrganizationManagementInterface
- Parameters:
userId
- calling userexternalSourceGUID
- guid of the software server capability entity that represented the external source - null for localexternalSourceName
- name of the software server capability entity that represented the external sourcepersonRoleGUID
- unique identifier of the person rolepersonProfileGUID
- unique identifier of the person profileproperties
- optional properties for the appointment- Returns:
- unique identifier of the appointment
- Throws:
InvalidParameterException
- one of the guids is null or not knownPropertyServerException
- problem accessing property serverUserNotAuthorizedException
- security access problem
-
getAppointees
public List<Appointee> getAppointees(String userId, String personRoleGUID, Date effectiveTime, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Return the list of people appointed to a particular role.- Specified by:
getAppointees
in interfaceOrganizationManagementInterface
- Parameters:
userId
- calling userpersonRoleGUID
- unique identifier of the person roleeffectiveTime
- time for appointments, null for full appointment historystartFrom
- index of the list to start from (0 for start)pageSize
- maximum number of elements to return- Returns:
- list of appointees
- Throws:
InvalidParameterException
- one of the guids is null or not knownPropertyServerException
- problem accessing property serverUserNotAuthorizedException
- security access problem
-
updateAppointment
public void updateAppointment(String userId, String externalSourceGUID, String externalSourceName, String appointmentGUID, boolean isMergeUpdate, AppointmentProperties properties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Update the properties for the appointment of a person to a role.- Specified by:
updateAppointment
in interfaceOrganizationManagementInterface
- Parameters:
userId
- calling userexternalSourceGUID
- guid of the software server capability entity that represented the external source - null for localexternalSourceName
- name of the software server capability entity that represented the external sourceappointmentGUID
- unique identifier of the appointment relationshipisMergeUpdate
- are unspecified properties unchanged (true) or replaced with null?properties
- properties to change- Throws:
InvalidParameterException
- one of the guids is null or not knownPropertyServerException
- problem accessing property serverUserNotAuthorizedException
- security access problem
-
unlinkPersonRoleFromProfile
public void unlinkPersonRoleFromProfile(String userId, String externalSourceGUID, String externalSourceName, String appointmentGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Remove the link between a person role and a person profile.- Specified by:
unlinkPersonRoleFromProfile
in interfaceOrganizationManagementInterface
- Parameters:
userId
- calling userexternalSourceGUID
- guid of the software server capability entity that represented the external source - null for localexternalSourceName
- name of the software server capability entity that represented the external sourceappointmentGUID
- unique identifier of the appointment relationship- Throws:
InvalidParameterException
- one of the guids is null or not knownPropertyServerException
- problem accessing property serverUserNotAuthorizedException
- security access problem
-
linkTeamPlayer
public void linkTeamPlayer(String userId, String externalSourceGUID, String externalSourceName, String teamRoleGUID, String teamProfileGUID, String position, boolean leadershipPosition) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Link a team leader person role or team member person role to a team profile.- Specified by:
linkTeamPlayer
in interfaceOrganizationManagementInterface
- Parameters:
userId
- calling userexternalSourceGUID
- guid of the software server capability entity that represented the external source - null for localexternalSourceName
- name of the software server capability entity that represented the external sourceteamRoleGUID
- unique identifier of the person roleteamProfileGUID
- unique identifier of the team profileposition
- position name of the role in the teamleadershipPosition
- is this a leadership position- Throws:
InvalidParameterException
- one of the guids is null or not known; the person role is not a team member or team leaderPropertyServerException
- problem accessing property serverUserNotAuthorizedException
- security access problem
-
unlinkTeamPlayer
public void unlinkTeamPlayer(String userId, String externalSourceGUID, String externalSourceName, String teamRoleGUID, String teamProfileGUID, boolean leadershipPosition) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Remove the link between a person role and a team profile.- Specified by:
unlinkTeamPlayer
in interfaceOrganizationManagementInterface
- Parameters:
userId
- calling userexternalSourceGUID
- guid of the software server capability entity that represented the external source - null for localexternalSourceName
- name of the software server capability entity that represented the external sourceteamRoleGUID
- unique identifier of the person roleteamProfileGUID
- unique identifier of the team profileleadershipPosition
- is this a leadership position- Throws:
InvalidParameterException
- one of the guids is null or not known; the person role is not a team member or team leaderPropertyServerException
- problem accessing property serverUserNotAuthorizedException
- security access problem
-
getPersonRoleByGUID
public PersonRoleElement getPersonRoleByGUID(String userId, String personRoleGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Return information about a specific person role.- Specified by:
getPersonRoleByGUID
in interfaceOrganizationManagementInterface
- Parameters:
userId
- calling userpersonRoleGUID
- unique identifier for the person role- Returns:
- properties of the person role
- Throws:
InvalidParameterException
- personRoleGUID or userId is nullPropertyServerException
- problem accessing property serverUserNotAuthorizedException
- security access problem
-
getPersonRolesByName
public List<PersonRoleElement> getPersonRolesByName(String userId, String name, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Return information about a named person role.- Specified by:
getPersonRolesByName
in interfaceOrganizationManagementInterface
- Parameters:
userId
- calling username
- unique name for the actor profilestartFrom
- index of the list to start from (0 for start)pageSize
- maximum number of elements to return.- Returns:
- list of matching actor profiles (hopefully only one)
- Throws:
InvalidParameterException
- name or userId is nullPropertyServerException
- problem accessing property serverUserNotAuthorizedException
- security access problem
-
getLeadershipRolesForTeam
public List<PersonRoleElement> getLeadershipRolesForTeam(String userId, String teamGUID, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Return information about the leadership person roles linked to a team.- Specified by:
getLeadershipRolesForTeam
in interfaceOrganizationManagementInterface
- Parameters:
userId
- calling userteamGUID
- unique identifier for the Team actor profilestartFrom
- index of the list to start from (0 for start)pageSize
- maximum number of elements to return.- Returns:
- list of matching actor profiles (hopefully only one)
- Throws:
InvalidParameterException
- name or userId is nullPropertyServerException
- problem accessing property serverUserNotAuthorizedException
- security access problem
-
getMembershipRolesForTeam
public List<PersonRoleElement> getMembershipRolesForTeam(String userId, String teamGUID, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Return information about the membership person roles linked to a team.- Specified by:
getMembershipRolesForTeam
in interfaceOrganizationManagementInterface
- Parameters:
userId
- calling userteamGUID
- unique identifier for the Team actor profilestartFrom
- index of the list to start from (0 for start)pageSize
- maximum number of elements to return.- Returns:
- list of matching actor profiles (hopefully only one)
- Throws:
InvalidParameterException
- name or userId is nullPropertyServerException
- problem accessing property serverUserNotAuthorizedException
- security access problem
-
findPersonRoles
public List<PersonRoleElement> findPersonRoles(String userId, String searchString, int startFrom, int pageSize) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Retrieve the list of matching roles for the search string.- Specified by:
findPersonRoles
in interfaceOrganizationManagementInterface
- Parameters:
userId
- the name of the calling user.searchString
- RegEx string to search forstartFrom
- index of the list to start from (0 for start)pageSize
- maximum number of elements to return.- Returns:
- list of matching actor profiles
- Throws:
InvalidParameterException
- guid invalid or the external references are not correctly specified, or are null.PropertyServerException
- the server is not available.UserNotAuthorizedException
- the calling user is not authorized to issue the call.
-