Class SecurityManagerClient
java.lang.Object
org.odpi.openmetadata.accessservices.securitymanager.client.SecurityManagerClient
- All Implemented Interfaces:
org.odpi.openmetadata.accessservices.securitymanager.api.SecurityManagerInterface
public class SecurityManagerClient
extends Object
implements org.odpi.openmetadata.accessservices.securitymanager.api.SecurityManagerInterface
SecurityManagerClient is the client for explicitly managing the user identity entities and associating them with
profiles. It is typically used when the relationship between user identities and profiles are many to one.
-
Constructor Summary
ConstructorsConstructorDescriptionSecurityManagerClient(String serverName, String serverPlatformURLRoot) Create a new client with no authentication embedded in the HTTP request.SecurityManagerClient(String serverName, String serverPlatformURLRoot, String userId, String password) Create a new client that passes userId and password in each HTTP request.SecurityManagerClient(String serverName, String serverPlatformURLRoot, String userId, String password, org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog) Create a new client that passes userId and password in each HTTP request.SecurityManagerClient(String serverName, String serverPlatformURLRoot, SecurityManagerRESTClient restClient, int maxPageSize) Create a new client that passes userId and password in each HTTP request.SecurityManagerClient(String serverName, String serverPlatformURLRoot, org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog) Create a new client with no authentication embedded in the HTTP request. -
Method Summary
Modifier and TypeMethodDescriptioncreateSecurityGroup(String userId, org.odpi.openmetadata.frameworks.openmetadata.properties.security.SecurityGroupProperties properties) Create a new security group.createUserIdentity(String userId, String externalSourceGUID, String externalSourceName, org.odpi.openmetadata.frameworks.openmetadata.properties.actors.UserIdentityProperties newIdentity) Create a UserIdentity.voiddeleteSecurityGroup(String userId, String securityGroupGUID) Delete a specific security group.voiddeleteUserIdentity(String userId, String externalSourceGUID, String externalSourceName, String userIdentityGUID) Remove a user identity object.List<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ActorProfileElement>findActorProfile(String userId, String searchString, int startFrom, int pageSize) Retrieve the list of matching profiles for the search string.List<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ActorRoleElement>findPersonRole(String userId, String searchString, int startFrom, int pageSize) Retrieve the list of matching roles for the search string.List<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.SecurityGroupElement>findSecurityGroups(String userId, String searchString, int startFrom, int pageSize) Return the list of security groups that match the search string - this can be a regular expression.List<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.UserIdentityElement>findUserIdentities(String userId, String searchString, int startFrom, int pageSize) Retrieve the list of user identity metadata elements that contain the search string.org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ActorProfileElementgetActorProfileByGUID(String userId, String actorProfileGUID) Return information about a specific actor profile.List<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ActorProfileElement>getActorProfileByName(String userId, String name, int startFrom, int pageSize) Return information about a named actor profile.org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ActorProfileElementgetActorProfileByUserId(String userId, String actorProfileUserId) Return information about a specific actor profile.List<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.Appointee>getAppointees(String userId, String personRoleGUID, Date effectiveTime, int startFrom, int pageSize) Return the list of people appointed to a particular role.List<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementStub>getElementsGovernedBySecurityGroup(String userId, String securityGroupGUID, int startFrom, int pageSize) Return the elements that are governed by the supplied security group.org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ActorRoleElementgetPersonRoleByGUID(String userId, String personRoleGUID) Return information about a specific person role.List<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ActorRoleElement>getPersonRoleByName(String userId, String name, int startFrom, int pageSize) Return information about a named person role.org.odpi.openmetadata.frameworks.openmetadata.metadataelements.SecurityGroupElementgetSecurityGroupByGUID(String userId, String securityGroupGUID) Retrieve the security group metadata element with the supplied unique identifier.List<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.SecurityGroupElement>getSecurityGroupsForDistinguishedName(String userId, String distinguishedName, int startFrom, int pageSize) Return the list of security groups associated with a unique distinguishedName.List<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.UserIdentityElement>getUserIdentitiesByName(String userId, String name, int startFrom, int pageSize) Retrieve the list of user identity metadata elements with a matching qualified name.org.odpi.openmetadata.frameworks.openmetadata.metadataelements.UserIdentityElementgetUserIdentityByGUID(String userId, String userIdentityGUID) Retrieve the userIdentity metadata element with the supplied unique identifier.voidupdateSecurityGroup(String userId, String securityGroupGUID, boolean isMergeUpdate, org.odpi.openmetadata.frameworks.openmetadata.properties.security.SecurityGroupProperties properties) Update an existing security group.voidupdateUserIdentity(String userId, String externalSourceGUID, String externalSourceName, String userIdentityGUID, boolean isMergeUpdate, org.odpi.openmetadata.frameworks.openmetadata.properties.actors.UserIdentityProperties properties) Update a UserIdentity.
-
Constructor Details
-
SecurityManagerClient
public SecurityManagerClient(String serverName, String serverPlatformURLRoot) throws org.odpi.openmetadata.frameworks.openmetadata.ffdc.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 services- Throws:
org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException- bad input parameters
-
SecurityManagerClient
public SecurityManagerClient(String serverName, String serverPlatformURLRoot, org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog) throws org.odpi.openmetadata.frameworks.openmetadata.ffdc.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 destination- Throws:
org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException- there is a problem creating the client-side components to issue any REST API calls.
-
SecurityManagerClient
public SecurityManagerClient(String serverName, String serverPlatformURLRoot, String userId, String password) throws org.odpi.openmetadata.frameworks.openmetadata.ffdc.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 requests- Throws:
org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException- bad input parameters
-
SecurityManagerClient
public SecurityManagerClient(String serverName, String serverPlatformURLRoot, String userId, String password, org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog) throws org.odpi.openmetadata.frameworks.openmetadata.ffdc.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 destination- Throws:
org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException- bad input parameters
-
SecurityManagerClient
public SecurityManagerClient(String serverName, String serverPlatformURLRoot, SecurityManagerRESTClient restClient, int maxPageSize) throws org.odpi.openmetadata.frameworks.openmetadata.ffdc.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:
org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException- there is a problem with the information about the remote OMAS
-
-
Method Details
-
createSecurityGroup
public String createSecurityGroup(String userId, org.odpi.openmetadata.frameworks.openmetadata.properties.security.SecurityGroupProperties properties) throws org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException Create a new security group. The type of the definition is located in the properties.- Specified by:
createSecurityGroupin interfaceorg.odpi.openmetadata.accessservices.securitymanager.api.SecurityManagerInterface- Parameters:
userId- calling userproperties- properties of the definition- Returns:
- unique identifier of the definition
- Throws:
org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException- typeName, documentIdentifier or userId is null; documentIdentifier is not unique; typeName is not validorg.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException- problem accessing the metadata serviceorg.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException- security access problem
-
updateSecurityGroup
public void updateSecurityGroup(String userId, String securityGroupGUID, boolean isMergeUpdate, org.odpi.openmetadata.frameworks.openmetadata.properties.security.SecurityGroupProperties properties) throws org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException Update an existing security group.- Specified by:
updateSecurityGroupin interfaceorg.odpi.openmetadata.accessservices.securitymanager.api.SecurityManagerInterface- Parameters:
userId- calling usersecurityGroupGUID- unique identifier of the definition to updateisMergeUpdate- are unspecified properties unchanged (true) or removed?properties- properties to update- Throws:
org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException- guid, documentIdentifier or userId is null; documentIdentifier is not unique; guid is not knownorg.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException- problem accessing property serverorg.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException- security access problem
-
deleteSecurityGroup
public void deleteSecurityGroup(String userId, String securityGroupGUID) throws org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException Delete a specific security group.- Specified by:
deleteSecurityGroupin interfaceorg.odpi.openmetadata.accessservices.securitymanager.api.SecurityManagerInterface- Parameters:
userId- calling usersecurityGroupGUID- unique identifier of the definition to remove- Throws:
org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException- guid is null or not knownorg.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException- problem accessing property serverorg.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException- security access problem
-
getSecurityGroupsForDistinguishedName
public List<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.SecurityGroupElement> getSecurityGroupsForDistinguishedName(String userId, String distinguishedName, int startFrom, int pageSize) throws org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException Return the list of security groups associated with a unique distinguishedName. In an ideal world, the should be only one.- Specified by:
getSecurityGroupsForDistinguishedNamein interfaceorg.odpi.openmetadata.accessservices.securitymanager.api.SecurityManagerInterface- Parameters:
userId- calling userdistinguishedName- unique name of the security groupstartFrom- where to start from in the list of definitionspageSize- max number of results to return in one call- Returns:
- list of security groups
- Throws:
org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException- the caller is not authorized to issue the requestorg.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException- the metadata service has problems
-
getElementsGovernedBySecurityGroup
public List<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementStub> getElementsGovernedBySecurityGroup(String userId, String securityGroupGUID, int startFrom, int pageSize) throws org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException Return the elements that are governed by the supplied security group.- Specified by:
getElementsGovernedBySecurityGroupin interfaceorg.odpi.openmetadata.accessservices.securitymanager.api.SecurityManagerInterface- Parameters:
userId- calling usersecurityGroupGUID- unique name of the security groupstartFrom- where to start from in the list of definitionspageSize- max number of results to return in one call- Returns:
- list of headers for the associated elements
- Throws:
org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException- the caller is not authorized to issue the requestorg.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException- the metadata service has problems
-
findSecurityGroups
public List<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.SecurityGroupElement> findSecurityGroups(String userId, String searchString, int startFrom, int pageSize) throws org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException Return the list of security groups that match the search string - this can be a regular expression.- Specified by:
findSecurityGroupsin interfaceorg.odpi.openmetadata.accessservices.securitymanager.api.SecurityManagerInterface- Parameters:
userId- calling usersearchString- value to search forstartFrom- where to start from in the list of definition resultspageSize- max number of results to return in one call- Returns:
- list of security groups
- Throws:
org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException- the caller is not authorized to issue the requestorg.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException- the metadata service has problems
-
getSecurityGroupByGUID
public org.odpi.openmetadata.frameworks.openmetadata.metadataelements.SecurityGroupElement getSecurityGroupByGUID(String userId, String securityGroupGUID) throws org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException Retrieve the security group metadata element with the supplied unique identifier.- Specified by:
getSecurityGroupByGUIDin interfaceorg.odpi.openmetadata.accessservices.securitymanager.api.SecurityManagerInterface- Parameters:
userId- calling usersecurityGroupGUID- unique identifier of the requested metadata element- Returns:
- matching metadata element
- Throws:
org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
createUserIdentity
public String createUserIdentity(String userId, String externalSourceGUID, String externalSourceName, org.odpi.openmetadata.frameworks.openmetadata.properties.actors.UserIdentityProperties newIdentity) throws org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException Create a UserIdentity.- Specified by:
createUserIdentityin interfaceorg.odpi.openmetadata.accessservices.securitymanager.api.SecurityManagerInterface- Parameters:
userId- the name of the calling user.externalSourceGUID- unique identifier of software server capability representing the callerexternalSourceName- unique name of software server capability representing the callernewIdentity- properties for the new userIdentity.- Returns:
- unique identifier of the UserIdentity
- Throws:
org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException- one of the parameters is invalid.org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException- there is a problem retrieving information from the property server(s).org.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException- the requesting user is not authorized to issue this request.
-
updateUserIdentity
public void updateUserIdentity(String userId, String externalSourceGUID, String externalSourceName, String userIdentityGUID, boolean isMergeUpdate, org.odpi.openmetadata.frameworks.openmetadata.properties.actors.UserIdentityProperties properties) throws org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException Update a UserIdentity.- Specified by:
updateUserIdentityin interfaceorg.odpi.openmetadata.accessservices.securitymanager.api.SecurityManagerInterface- Parameters:
userId- the name of the calling userexternalSourceGUID- unique identifier of software server capability representing the callerexternalSourceName- unique name of software server capability representing the calleruserIdentityGUID- unique identifier of the UserIdentityisMergeUpdate- should the supplied properties be overlaid on the existing properties (true) or replace them (falseproperties- updated properties for the new userIdentity- Throws:
org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException- one of the parameters is invalid.org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException- there is a problem retrieving information from the property server(s).org.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException- the requesting user is not authorized to issue this request.
-
deleteUserIdentity
public void deleteUserIdentity(String userId, String externalSourceGUID, String externalSourceName, String userIdentityGUID) throws org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException Remove a user identity object. This will fail if the profile would be left without an associated user identity.- Specified by:
deleteUserIdentityin interfaceorg.odpi.openmetadata.accessservices.securitymanager.api.SecurityManagerInterface- Parameters:
userId- the name of the calling userexternalSourceGUID- unique identifier of software server capability representing the callerexternalSourceName- unique name of software server capability representing the calleruserIdentityGUID- unique identifier of the UserIdentity- Throws:
org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException- one of the parameters is invalid.org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException- there is a problem retrieving information from the property server(s).org.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException- the requesting user is not authorized to issue this request.
-
findUserIdentities
public List<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.UserIdentityElement> findUserIdentities(String userId, String searchString, int startFrom, int pageSize) throws org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException Retrieve the list of user identity metadata elements that contain the search string. The search string is treated as a regular expression.- Specified by:
findUserIdentitiesin interfaceorg.odpi.openmetadata.accessservices.securitymanager.api.SecurityManagerInterface- Parameters:
userId- calling usersearchString- string to find in the propertiesstartFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- list of matching metadata elements
- Throws:
org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
getUserIdentitiesByName
public List<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.UserIdentityElement> getUserIdentitiesByName(String userId, String name, int startFrom, int pageSize) throws org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException Retrieve the list of user identity metadata elements with a matching qualified name. There are no wildcards supported on this request.- Specified by:
getUserIdentitiesByNamein interfaceorg.odpi.openmetadata.accessservices.securitymanager.api.SecurityManagerInterface- Parameters:
userId- calling username- name to search forstartFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- list of matching metadata elements
- Throws:
org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
getUserIdentityByGUID
public org.odpi.openmetadata.frameworks.openmetadata.metadataelements.UserIdentityElement getUserIdentityByGUID(String userId, String userIdentityGUID) throws org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException Retrieve the userIdentity metadata element with the supplied unique identifier.- Specified by:
getUserIdentityByGUIDin interfaceorg.odpi.openmetadata.accessservices.securitymanager.api.SecurityManagerInterface- Parameters:
userId- calling useruserIdentityGUID- unique identifier of the requested metadata element- Returns:
- matching metadata element
- Throws:
org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
getActorProfileByGUID
public org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ActorProfileElement getActorProfileByGUID(String userId, String actorProfileGUID) throws org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException Return information about a specific actor profile.- Specified by:
getActorProfileByGUIDin interfaceorg.odpi.openmetadata.accessservices.securitymanager.api.SecurityManagerInterface- Parameters:
userId- calling useractorProfileGUID- unique identifier for the actor profile- Returns:
- properties of the actor profile
- Throws:
org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException- actorProfileGUID or userId is nullorg.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException- problem accessing property serverorg.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException- security access problem
-
getActorProfileByUserId
public org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ActorProfileElement getActorProfileByUserId(String userId, String actorProfileUserId) throws org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException Return information about a specific actor profile.- Specified by:
getActorProfileByUserIdin interfaceorg.odpi.openmetadata.accessservices.securitymanager.api.SecurityManagerInterface- Parameters:
userId- calling useractorProfileUserId- unique identifier for the actor profile- Returns:
- properties of the actor profile
- Throws:
org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException- actorProfileUserId or userId is nullorg.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException- problem accessing property serverorg.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException- security access problem
-
getActorProfileByName
public List<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ActorProfileElement> getActorProfileByName(String userId, String name, int startFrom, int pageSize) throws org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException Return information about a named actor profile.- Specified by:
getActorProfileByNamein interfaceorg.odpi.openmetadata.accessservices.securitymanager.api.SecurityManagerInterface- 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:
org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException- name or userId is nullorg.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException- problem accessing property serverorg.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException- security access problem
-
findActorProfile
public List<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ActorProfileElement> findActorProfile(String userId, String searchString, int startFrom, int pageSize) throws org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException Retrieve the list of matching profiles for the search string.- Specified by:
findActorProfilein interfaceorg.odpi.openmetadata.accessservices.securitymanager.api.SecurityManagerInterface- 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:
org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException- guid invalid or the external references are not correctly specified, or are null.org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException- the server is not available.org.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException- the calling user is not authorized to issue the call.
-
getAppointees
public List<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.Appointee> getAppointees(String userId, String personRoleGUID, Date effectiveTime, int startFrom, int pageSize) throws org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException Return the list of people appointed to a particular role.- Specified by:
getAppointeesin interfaceorg.odpi.openmetadata.accessservices.securitymanager.api.SecurityManagerInterface- 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:
org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException- one of the guids is null or not knownorg.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException- problem accessing property serverorg.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException- security access problem
-
getPersonRoleByGUID
public org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ActorRoleElement getPersonRoleByGUID(String userId, String personRoleGUID) throws org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException Return information about a specific person role.- Specified by:
getPersonRoleByGUIDin interfaceorg.odpi.openmetadata.accessservices.securitymanager.api.SecurityManagerInterface- Parameters:
userId- calling userpersonRoleGUID- unique identifier for the person role- Returns:
- properties of the person role
- Throws:
org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException- personRoleGUID or userId is nullorg.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException- problem accessing property serverorg.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException- security access problem
-
getPersonRoleByName
public List<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ActorRoleElement> getPersonRoleByName(String userId, String name, int startFrom, int pageSize) throws org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException Return information about a named person role.- Specified by:
getPersonRoleByNamein interfaceorg.odpi.openmetadata.accessservices.securitymanager.api.SecurityManagerInterface- 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:
org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException- name or userId is nullorg.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException- problem accessing property serverorg.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException- security access problem
-
findPersonRole
public List<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ActorRoleElement> findPersonRole(String userId, String searchString, int startFrom, int pageSize) throws org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException Retrieve the list of matching roles for the search string.- Specified by:
findPersonRolein interfaceorg.odpi.openmetadata.accessservices.securitymanager.api.SecurityManagerInterface- 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:
org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException- guid invalid or the external references are not correctly specified, or are null.org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException- the server is not available.org.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException- the calling user is not authorized to issue the call.
-