Class RepoAdminServiceImpl

java.lang.Object
org.alfresco.repo.admin.RepoAdminServiceImpl
All Implemented Interfaces:
RepoAdminService

public class RepoAdminServiceImpl extends Object implements RepoAdminService
Repository Admin Service Implementation.

See Also:
  • Field Details

  • Constructor Details

    • RepoAdminServiceImpl

      public RepoAdminServiceImpl()
  • Method Details

    • 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)
    • getModels

      public List<RepoModelDefinition> getModels()
      Description copied from interface: RepoAdminService
      Get list of deployed custom model.
      Specified by:
      getModels in interface RepoAdminService
    • 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
    • activateModel

      public QName activateModel(String modelFileName)
      Description copied from interface: RepoAdminService
      Activate custom model.
      Specified by:
      activateModel in interface RepoAdminService
    • deactivateModel

      public QName deactivateModel(String modelFileName)
      Description copied from interface: RepoAdminService
      Deactivate custom model.
      Specified by:
      deactivateModel 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
    • getMessageBundles

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

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

      public void reloadMessageBundle(String bundleBaseName)
      Description copied from interface: RepoAdminService
      Reload custom message resource bundle.
      Specified by:
      reloadMessageBundle in interface RepoAdminService
    • getRestrictions

      public RepoUsage getRestrictions()
      Description copied from interface: RepoAdminService
      Get the currently-active restrictions to the repository usage
      Specified by:
      getRestrictions in interface RepoAdminService
    • getUsage

      public RepoUsage getUsage()
      Description copied from interface: RepoAdminService
      Get the repository usage, where known
      Specified by:
      getUsage in interface RepoAdminService
      Returns:
      the currently-known repository usage
    • 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