public class SecurityOfficerInstance extends OMASServiceInstance
SecurityOfficerInstance caches references to OMRS objects for a specific server. It is also responsible for registering itself in the instance map. It is created by the admin class during server start up and
  • Constructor Details

    • SecurityOfficerInstance

      public SecurityOfficerInstance(OMRSRepositoryConnector repositoryConnector, List<String> supportedZones, AuditLog auditLog, String localServerUserId, int maxPageSize, Connection outTopicEventBusConnection, SecurityOfficerPublisher securityOfficerPublisher) throws NewInstanceException
      Set up the local repository connector that will service the REST Calls.
      repositoryConnector - link to the repository responsible for servicing the REST calls.
      supportedZones - list of zones that SecurityOfficer is allowed to serve Assets from.
      auditLog - logging destination
      localServerUserId - userId used for server initiated actions
      maxPageSize - max number of results to return on single request.
      outTopicEventBusConnection - inner event bus connection to use to build topic connection to send to client if they which to listen on the out topic.
      securityOfficerPublisher - outbound published
      NewInstanceException - a problem occurred during initialization
  • Method Details

    • getGovernedAssetHandler

      public GovernedAssetHandler getGovernedAssetHandler()
      Return the handler for governed asset requests
      handler object
    • getSecurityOfficerRequestHandler

      public SecurityOfficerRequestHandler getSecurityOfficerRequestHandler()
      Return the handler for security officer requests
      handler object