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

    Constructors
    Constructor
    Description
    SecurityManagerClient(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 Type
    Method
    Description
    createSecurityGroup(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.
    void
    deleteSecurityGroup(String userId, String securityGroupGUID)
    Delete a specific security group.
    void
    deleteUserIdentity(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.PersonRoleElement>
    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.ActorProfileElement
    getActorProfileByGUID(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.ActorProfileElement
    getActorProfileByUserId(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.PersonRoleElement
    getPersonRoleByGUID(String userId, String personRoleGUID)
    Return information about a specific person role.
    List<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.PersonRoleElement>
    getPersonRoleByName(String userId, String name, int startFrom, int pageSize)
    Return information about a named person role.
    org.odpi.openmetadata.frameworks.openmetadata.metadataelements.SecurityGroupElement
    getSecurityGroupByGUID(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.UserIdentityElement
    getUserIdentityByGUID(String userId, String userIdentityGUID)
    Retrieve the userIdentity metadata element with the supplied unique identifier.
    void
    updateSecurityGroup(String userId, String securityGroupGUID, boolean isMergeUpdate, org.odpi.openmetadata.frameworks.openmetadata.properties.security.SecurityGroupProperties properties)
    Update an existing security group.
    void
    updateUserIdentity(String userId, String externalSourceGUID, String externalSourceName, String userIdentityGUID, boolean isMergeUpdate, org.odpi.openmetadata.frameworks.openmetadata.properties.actors.UserIdentityProperties properties)
    Update a UserIdentity.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SecurityManagerClient

      public SecurityManagerClient(String serverName, String serverPlatformURLRoot) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException
      Create a new client with no authentication embedded in the HTTP request.
      Parameters:
      serverName - name of the server to connect to
      serverPlatformURLRoot - the network address of the server running the OMAS REST services
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - bad input parameters
    • SecurityManagerClient

      public SecurityManagerClient(String serverName, String serverPlatformURLRoot, org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException
      Create a new client with no authentication embedded in the HTTP request.
      Parameters:
      serverName - name of the server to connect to
      serverPlatformURLRoot - the network address of the server running the OMAS REST services
      auditLog - logging destination
      Throws:
      org.odpi.openmetadata.frameworks.connectors.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.connectors.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 to
      serverPlatformURLRoot - the network address of the server running the OMAS REST services
      userId - caller's userId embedded in all HTTP requests
      password - caller's userId embedded in all HTTP requests
      Throws:
      org.odpi.openmetadata.frameworks.connectors.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.connectors.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 to
      serverPlatformURLRoot - the network address of the server running the OMAS REST services
      userId - caller's userId embedded in all HTTP requests
      password - caller's userId embedded in all HTTP requests
      auditLog - logging destination
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - bad input parameters
    • SecurityManagerClient

      public SecurityManagerClient(String serverName, String serverPlatformURLRoot, SecurityManagerRESTClient restClient, int maxPageSize) throws org.odpi.openmetadata.frameworks.connectors.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 to
      serverPlatformURLRoot - the network address of the server running the OMAS REST services
      restClient - pre-initialized REST client
      maxPageSize - pre-initialized parameter limit
      Throws:
      org.odpi.openmetadata.frameworks.connectors.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.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException
      Create a new security group. The type of the definition is located in the properties.
      Specified by:
      createSecurityGroup in interface org.odpi.openmetadata.accessservices.securitymanager.api.SecurityManagerInterface
      Parameters:
      userId - calling user
      properties - properties of the definition
      Returns:
      unique identifier of the definition
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - typeName, documentIdentifier or userId is null; documentIdentifier is not unique; typeName is not valid
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - problem accessing the metadata service
      org.odpi.openmetadata.frameworks.connectors.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.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException
      Update an existing security group.
      Specified by:
      updateSecurityGroup in interface org.odpi.openmetadata.accessservices.securitymanager.api.SecurityManagerInterface
      Parameters:
      userId - calling user
      securityGroupGUID - unique identifier of the definition to update
      isMergeUpdate - are unspecified properties unchanged (true) or removed?
      properties - properties to update
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - guid, documentIdentifier or userId is null; documentIdentifier is not unique; guid is not known
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - problem accessing property server
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - security access problem
    • deleteSecurityGroup

      public void deleteSecurityGroup(String userId, String securityGroupGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException
      Delete a specific security group.
      Specified by:
      deleteSecurityGroup in interface org.odpi.openmetadata.accessservices.securitymanager.api.SecurityManagerInterface
      Parameters:
      userId - calling user
      securityGroupGUID - unique identifier of the definition to remove
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - guid is null or not known
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - problem accessing property server
      org.odpi.openmetadata.frameworks.connectors.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.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException
      Return the list of security groups associated with a unique distinguishedName. In an ideal world, the should be only one.
      Specified by:
      getSecurityGroupsForDistinguishedName in interface org.odpi.openmetadata.accessservices.securitymanager.api.SecurityManagerInterface
      Parameters:
      userId - calling user
      distinguishedName - unique name of the security group
      startFrom - where to start from in the list of definitions
      pageSize - max number of results to return in one call
      Returns:
      list of security groups
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - one of the parameters is invalid
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - the caller is not authorized to issue the request
      org.odpi.openmetadata.frameworks.connectors.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.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException
      Return the elements that are governed by the supplied security group.
      Specified by:
      getElementsGovernedBySecurityGroup in interface org.odpi.openmetadata.accessservices.securitymanager.api.SecurityManagerInterface
      Parameters:
      userId - calling user
      securityGroupGUID - unique name of the security group
      startFrom - where to start from in the list of definitions
      pageSize - max number of results to return in one call
      Returns:
      list of headers for the associated elements
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - one of the parameters is invalid
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - the caller is not authorized to issue the request
      org.odpi.openmetadata.frameworks.connectors.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.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException
      Return the list of security groups that match the search string - this can be a regular expression.
      Specified by:
      findSecurityGroups in interface org.odpi.openmetadata.accessservices.securitymanager.api.SecurityManagerInterface
      Parameters:
      userId - calling user
      searchString - value to search for
      startFrom - where to start from in the list of definition results
      pageSize - max number of results to return in one call
      Returns:
      list of security groups
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - one of the parameters is invalid
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - the caller is not authorized to issue the request
      org.odpi.openmetadata.frameworks.connectors.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.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException
      Retrieve the security group metadata element with the supplied unique identifier.
      Specified by:
      getSecurityGroupByGUID in interface org.odpi.openmetadata.accessservices.securitymanager.api.SecurityManagerInterface
      Parameters:
      userId - calling user
      securityGroupGUID - unique identifier of the requested metadata element
      Returns:
      matching metadata element
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - one of the parameters is invalid
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - the user is not authorized to issue this request
      org.odpi.openmetadata.frameworks.connectors.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.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException
      Create a UserIdentity.
      Specified by:
      createUserIdentity in interface org.odpi.openmetadata.accessservices.securitymanager.api.SecurityManagerInterface
      Parameters:
      userId - the name of the calling user.
      externalSourceGUID - unique identifier of software server capability representing the caller
      externalSourceName - unique name of software server capability representing the caller
      newIdentity - properties for the new userIdentity.
      Returns:
      unique identifier of the UserIdentity
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - one of the parameters is invalid.
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - there is a problem retrieving information from the property server(s).
      org.odpi.openmetadata.frameworks.connectors.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.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException
      Update a UserIdentity.
      Specified by:
      updateUserIdentity in interface org.odpi.openmetadata.accessservices.securitymanager.api.SecurityManagerInterface
      Parameters:
      userId - the name of the calling user
      externalSourceGUID - unique identifier of software server capability representing the caller
      externalSourceName - unique name of software server capability representing the caller
      userIdentityGUID - unique identifier of the UserIdentity
      isMergeUpdate - should the supplied properties be overlaid on the existing properties (true) or replace them (false
      properties - updated properties for the new userIdentity
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - one of the parameters is invalid.
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - there is a problem retrieving information from the property server(s).
      org.odpi.openmetadata.frameworks.connectors.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.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException
      Remove a user identity object. This will fail if the profile would be left without an associated user identity.
      Specified by:
      deleteUserIdentity in interface org.odpi.openmetadata.accessservices.securitymanager.api.SecurityManagerInterface
      Parameters:
      userId - the name of the calling user
      externalSourceGUID - unique identifier of software server capability representing the caller
      externalSourceName - unique name of software server capability representing the caller
      userIdentityGUID - unique identifier of the UserIdentity
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - one of the parameters is invalid.
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - there is a problem retrieving information from the property server(s).
      org.odpi.openmetadata.frameworks.connectors.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.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.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:
      findUserIdentities in interface org.odpi.openmetadata.accessservices.securitymanager.api.SecurityManagerInterface
      Parameters:
      userId - calling user
      searchString - string to find in the properties
      startFrom - paging start point
      pageSize - maximum results that can be returned
      Returns:
      list of matching metadata elements
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - one of the parameters is invalid
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - the user is not authorized to issue this request
      org.odpi.openmetadata.frameworks.connectors.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.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.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:
      getUserIdentitiesByName in interface org.odpi.openmetadata.accessservices.securitymanager.api.SecurityManagerInterface
      Parameters:
      userId - calling user
      name - name to search for
      startFrom - paging start point
      pageSize - maximum results that can be returned
      Returns:
      list of matching metadata elements
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - one of the parameters is invalid
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - the user is not authorized to issue this request
      org.odpi.openmetadata.frameworks.connectors.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.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException
      Retrieve the userIdentity metadata element with the supplied unique identifier.
      Specified by:
      getUserIdentityByGUID in interface org.odpi.openmetadata.accessservices.securitymanager.api.SecurityManagerInterface
      Parameters:
      userId - calling user
      userIdentityGUID - unique identifier of the requested metadata element
      Returns:
      matching metadata element
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - one of the parameters is invalid
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - the user is not authorized to issue this request
      org.odpi.openmetadata.frameworks.connectors.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.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException
      Return information about a specific actor profile.
      Specified by:
      getActorProfileByGUID in interface org.odpi.openmetadata.accessservices.securitymanager.api.SecurityManagerInterface
      Parameters:
      userId - calling user
      actorProfileGUID - unique identifier for the actor profile
      Returns:
      properties of the actor profile
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - actorProfileGUID or userId is null
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - problem accessing property server
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - security access problem
    • getActorProfileByUserId

      public org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ActorProfileElement getActorProfileByUserId(String userId, String actorProfileUserId) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException
      Return information about a specific actor profile.
      Specified by:
      getActorProfileByUserId in interface org.odpi.openmetadata.accessservices.securitymanager.api.SecurityManagerInterface
      Parameters:
      userId - calling user
      actorProfileUserId - unique identifier for the actor profile
      Returns:
      properties of the actor profile
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - actorProfileUserId or userId is null
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - problem accessing property server
      org.odpi.openmetadata.frameworks.connectors.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.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException
      Return information about a named actor profile.
      Specified by:
      getActorProfileByName in interface org.odpi.openmetadata.accessservices.securitymanager.api.SecurityManagerInterface
      Parameters:
      userId - calling user
      name - unique name for the actor profile
      startFrom - 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.connectors.ffdc.InvalidParameterException - name or userId is null
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - problem accessing property server
      org.odpi.openmetadata.frameworks.connectors.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.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException
      Retrieve the list of matching profiles for the search string.
      Specified by:
      findActorProfile in interface org.odpi.openmetadata.accessservices.securitymanager.api.SecurityManagerInterface
      Parameters:
      userId - the name of the calling user.
      searchString - RegEx string to search for
      startFrom - 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.connectors.ffdc.InvalidParameterException - guid invalid or the external references are not correctly specified, or are null.
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - the server is not available.
      org.odpi.openmetadata.frameworks.connectors.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.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException
      Return the list of people appointed to a particular role.
      Specified by:
      getAppointees in interface org.odpi.openmetadata.accessservices.securitymanager.api.SecurityManagerInterface
      Parameters:
      userId - calling user
      personRoleGUID - unique identifier of the person role
      effectiveTime - time for appointments, null for full appointment history
      startFrom - 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.connectors.ffdc.InvalidParameterException - one of the guids is null or not known
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - problem accessing property server
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - security access problem
    • getPersonRoleByGUID

      public org.odpi.openmetadata.frameworks.openmetadata.metadataelements.PersonRoleElement getPersonRoleByGUID(String userId, String personRoleGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException
      Return information about a specific person role.
      Specified by:
      getPersonRoleByGUID in interface org.odpi.openmetadata.accessservices.securitymanager.api.SecurityManagerInterface
      Parameters:
      userId - calling user
      personRoleGUID - unique identifier for the person role
      Returns:
      properties of the person role
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - personRoleGUID or userId is null
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - problem accessing property server
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - security access problem
    • getPersonRoleByName

      public List<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.PersonRoleElement> getPersonRoleByName(String userId, String name, int startFrom, int pageSize) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException
      Return information about a named person role.
      Specified by:
      getPersonRoleByName in interface org.odpi.openmetadata.accessservices.securitymanager.api.SecurityManagerInterface
      Parameters:
      userId - calling user
      name - unique name for the actor profile
      startFrom - 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.connectors.ffdc.InvalidParameterException - name or userId is null
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - problem accessing property server
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - security access problem
    • findPersonRole

      public List<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.PersonRoleElement> findPersonRole(String userId, String searchString, int startFrom, int pageSize) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException
      Retrieve the list of matching roles for the search string.
      Specified by:
      findPersonRole in interface org.odpi.openmetadata.accessservices.securitymanager.api.SecurityManagerInterface
      Parameters:
      userId - the name of the calling user.
      searchString - RegEx string to search for
      startFrom - 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.connectors.ffdc.InvalidParameterException - guid invalid or the external references are not correctly specified, or are null.
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - the server is not available.
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - the calling user is not authorized to issue the call.