Class GovernanceProgramServicesInstance


public class GovernanceProgramServicesInstance extends OMASServiceInstance
GovernanceProgramServicesInstance caches references to OMRS objects for a specific server. It is also responsible for registering itself in the instance map.
  • Constructor Details

    • GovernanceProgramServicesInstance

      public GovernanceProgramServicesInstance(OMRSRepositoryConnector repositoryConnector, List<String> supportedZones, List<String> defaultZones, List<String> publishZones, AuditLog auditLog, String localServerUserId, int maxPageSize) throws NewInstanceException
      Set up the local repository connector that will service the REST Calls.
      Parameters:
      repositoryConnector - link to the repository responsible for servicing the REST calls.
      supportedZones - list of zones that SecurityManager is allowed to serve Assets from.
      defaultZones - list of zones that SecurityManager sets up in new Asset instances.
      publishZones - list of zones that SecurityManager sets up in published Asset instances.
      auditLog - logging destination
      localServerUserId - userId to use for server initiated requests
      maxPageSize - maximum number of results on a single request
      Throws:
      NewInstanceException - a problem occurred during initialization
  • Method Details

    • getRelatedElementHandler

      public ReferenceableHandler<RelatedElement> getRelatedElementHandler()
      Return the handler for related referenceables.
      Returns:
      handler object
    • getElementStubHandler

      public ReferenceableHandler<ElementStub> getElementStubHandler()
      Return the handler for related referenceables.
      Returns:
      handler object
    • getRelatedAssetHandler

      public AssetHandler<RelatedElement> getRelatedAssetHandler()
      Return the handler for related assets.
      Returns:
      handler object
    • getAssetHandler

      public AssetHandler<ElementStub> getAssetHandler()
      Return the handler for related assets.
      Returns:
      handler object