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
ConstructorsConstructorDescriptionOrganizationManagement
(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 TypeMethodDescriptiongetActorProfileByUserId
(String userId, String actorProfileUserId) Return information about a specific actor profile.getPersonRoleByGUID
(String userId, String personRoleGUID) Return information about a specific 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
-
getActorProfileByUserId
public ActorProfileGraphElement 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
-
getPersonRoleByGUID
public ActorRoleElement 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
-