Interface OrganizationManagementInterface
- All Known Implementing Classes:
OrganizationManagement
public interface OrganizationManagementInterface
OrganizationManagementInterface defines the client interface for setting up the profiles, roles and relationships for an organization.
-
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 actorProfileGUID, String externalSourceGUID, String externalSourceName) 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 matching named actor profiles.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.
-
Method Details
-
createActorProfile
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.- 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
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.- 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
void deleteActorProfile(String userId, String actorProfileGUID, String externalSourceGUID, String externalSourceName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Remove the definition of an actor profile.- 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
String addContactMethod(String userId, String externalSourceGUID, String externalSourceName, String actorProfileGUID, ContactMethodProperties properties) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Add a new contact method to the profile.- 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
void deleteContactMethod(String userId, String externalSourceGUID, String externalSourceName, String contactMethodGUID) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Remove an obsolete contact method from the profile.- 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
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.- 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
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.- 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
ActorProfileElement getActorProfileByGUID(String userId, String actorProfileGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Return information about a specific actor profile.- 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
ActorProfileElement getActorProfileByUserId(String userId, String actorProfileUserId) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Return information about a specific actor profile.- 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
List<ActorProfileElement> getActorProfilesByName(String userId, String name, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Return information about matching named actor profiles.- 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
- Throws:
InvalidParameterException
- name or userId is nullPropertyServerException
- problem accessing property serverUserNotAuthorizedException
- security access problem
-
getActorProfiles
List<ActorProfileElement> getActorProfiles(String userId, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Return information about all actor profiles.- 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
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.- Parameters:
userId
- calling userlocationGUID
- unique locationGUID 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
- Throws:
InvalidParameterException
- locationGUID or userId is nullPropertyServerException
- problem accessing property serverUserNotAuthorizedException
- security access problem
-
findActorProfiles
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.- 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
String createPersonRole(String userId, String externalSourceGUID, String externalSourceName, PersonRoleProperties properties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create a definition of a person role.- 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
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.- 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
void deletePersonRole(String userId, String externalSourceGUID, String externalSourceName, String personRoleGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Remove the definition of a person role.- 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
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.- 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
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.- 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
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.- 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
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.- 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
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.- 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
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.- 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
PersonRoleElement getPersonRoleByGUID(String userId, String personRoleGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Return information about a specific person role.- 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
List<PersonRoleElement> getPersonRolesByName(String userId, String name, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Return information about a named person role.- 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
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.- 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
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.- 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
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.- 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.
-