Class RepoAdminServiceImpl

    • Constructor Detail

      • RepoAdminServiceImpl

        public RepoAdminServiceImpl()
    • Method Detail

      • setDictionaryDAO

        public void setDictionaryDAO​(DictionaryDAO dictionaryDAO)
      • setSearchService

        public void setSearchService​(SearchService searchService)
      • setNodeService

        public void setNodeService​(NodeService nodeService)
      • setContentService

        public void setContentService​(ContentService contentService)
      • setNamespaceService

        public void setNamespaceService​(NamespaceService namespaceService)
      • setMessageService

        public void setMessageService​(MessageService messageService)
      • setRepoUsageComponent

        public void setRepoUsageComponent​(RepoUsageComponent repoUsageComponent)
      • setRepositoryModelsLocation

        public void setRepositoryModelsLocation​(RepositoryLocation repoModelsLocation)
      • setRepositoryMessagesLocation

        public void setRepositoryMessagesLocation​(RepositoryLocation repoMessagesLocation)
      • deployModel

        public NodeRef deployModel​(InputStream modelStream,
                                   String modelFileName,
                                   boolean activate)
        Description copied from interface: RepoAdminService
        Deploy custom model (to the 'Models' space). Allows creation of new models and incremental update of existing models.
        Specified by:
        deployModel in interface RepoAdminService
        Parameters:
        modelStream - the model input stream
        modelFileName - modelFileName the model file name
        activate - whether the model should be activated or not
        Returns:
        the nodeRef of the created model
      • deployModel

        public void deployModel​(InputStream modelStream,
                                String modelFileName)
        Description copied from interface: RepoAdminService
        Deploy custom model (to the 'Models' space). Allows creation of new models and incremental update of existing models.
        Specified by:
        deployModel in interface RepoAdminService
      • undeployModel

        public QName undeployModel​(String modelFileName)
        Description copied from interface: RepoAdminService
        Undeploy custom model (from the 'Models' space). Allows delete of existing models, if not used. Permanently removes the model definition from the repository (all versions).
        Specified by:
        undeployModel in interface RepoAdminService
      • updateUsage

        public boolean updateUsage​(RepoUsage.UsageType usageType)
        Description copied from interface: RepoAdminService
        Force an update of the usages, providing a hint on the specific updates required. If another client is already performing the update, then the calling code will need to determine the severity i.e. is an updated value really needed. Generally clients should accept that the data might be slightly stale, especially since there is no way to guarantee visibility of data being put into the database by other transactions.
        Specified by:
        updateUsage in interface RepoAdminService
        Parameters:
        usageType - the type of usage update to perform
        Returns:
        true if the update succeeded or false if some other client was already performing the same update
      • getUsageStatus

        public RepoUsageStatus getUsageStatus()
        Description copied from interface: RepoAdminService
        Get full information on the state of the usage limits, including errors and warnings about limits in play.
        Specified by:
        getUsageStatus in interface RepoAdminService
        Returns:
        the object containing all the information