Class RepoAdminServiceImpl

    • Field Detail

      • defaultSubtypeOfDictionaryModel

        public static final java.lang.String defaultSubtypeOfDictionaryModel
        See Also:
        Constant Field Values
      • defaultSubtypeOfContent

        public static final java.lang.String defaultSubtypeOfContent
        See Also:
        Constant Field Values
    • Constructor Detail

      • RepoAdminServiceImpl

        public RepoAdminServiceImpl()
    • Method Detail

      • setDictionaryDAO

        public void setDictionaryDAO​(org.alfresco.repo.dictionary.DictionaryDAO dictionaryDAO)
      • setSearchService

        public void setSearchService​(org.alfresco.service.cmr.search.SearchService searchService)
      • setNodeService

        public void setNodeService​(org.alfresco.service.cmr.repository.NodeService nodeService)
      • setContentService

        public void setContentService​(ContentService contentService)
      • setNamespaceService

        public void setNamespaceService​(org.alfresco.service.namespace.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 org.alfresco.service.cmr.repository.NodeRef deployModel​(java.io.InputStream modelStream,
                                                                       java.lang.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​(java.io.InputStream modelStream,
                                java.lang.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
      • activateModel

        public org.alfresco.service.namespace.QName activateModel​(java.lang.String modelFileName)
        Description copied from interface: RepoAdminService
        Activate custom model.
        Specified by:
        activateModel in interface RepoAdminService
      • deactivateModel

        public org.alfresco.service.namespace.QName deactivateModel​(java.lang.String modelFileName)
        Description copied from interface: RepoAdminService
        Deactivate custom model.
        Specified by:
        deactivateModel in interface RepoAdminService
      • undeployModel

        public org.alfresco.service.namespace.QName undeployModel​(java.lang.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
      • getMessageBundles

        public java.util.List<java.lang.String> getMessageBundles()
        Description copied from interface: RepoAdminService
        Get deployed custom messages resource bundles.
        Specified by:
        getMessageBundles in interface RepoAdminService
      • deployMessageBundle

        public java.lang.String deployMessageBundle​(java.lang.String resourceClasspath)
        Description copied from interface: RepoAdminService
        Deploy custom message resource bundle (to the 'Messages' space).
        Specified by:
        deployMessageBundle in interface RepoAdminService
      • undeployMessageBundle

        public void undeployMessageBundle​(java.lang.String bundleBaseName)
        Description copied from interface: RepoAdminService
        Undeploy custom message resource bundle (from the 'Messages' space).
        Specified by:
        undeployMessageBundle 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