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 Detail

      • GovernanceProgramServicesInstance

        public GovernanceProgramServicesInstance​(OMRSRepositoryConnector repositoryConnector,
                                                 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.
        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 Detail

      • 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