org.alfresco.repo.admin
Class RepoAdminServiceImpl

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

public class RepoAdminServiceImpl
extends java.lang.Object
implements RepoAdminService

Repository Admin Service Implementation.

See Also:
interface

Field Summary
static java.lang.String CRITERIA_ALL
           
static java.lang.String defaultSubtypeOfContent
           
static java.lang.String defaultSubtypeOfDictionaryModel
           
 
Constructor Summary
RepoAdminServiceImpl()
           
 
Method Summary
 org.alfresco.service.namespace.QName activateModel(java.lang.String modelFileName)
          Activate custom model.
 org.alfresco.service.namespace.QName deactivateModel(java.lang.String modelFileName)
          Deactivate custom model.
 java.lang.String deployMessageBundle(java.lang.String resourceClasspath)
          Deploy custom message resource bundle (to the 'Messages' space).
 void deployModel(java.io.InputStream modelStream, java.lang.String modelFileName)
          Deploy custom model (to the 'Models' space).
 java.util.List getMessageBundles()
          Get deployed custom messages resource bundles.
 java.util.List getModels()
          Get list of deployed custom model.
 RepoUsage getRestrictions()
          Get the currently-active restrictions to the repository usage
 RepoUsage getUsage()
          Get the repository usage, where known
 RepoUsageStatus getUsageStatus()
          Get full information on the state of the usage limits, including errors and warnings about limits in play.
 void reloadMessageBundle(java.lang.String bundleBaseName)
          Reload custom message resource bundle.
 void setContentService(ContentService contentService)
           
 void setDictionaryDAO(org.alfresco.repo.dictionary.DictionaryDAO dictionaryDAO)
           
 void setMessageService(MessageService messageService)
           
 void setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)
           
 void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
           
 void setRepositoryMessagesLocation(RepositoryLocation repoMessagesLocation)
           
 void setRepositoryModelsLocation(RepositoryLocation repoModelsLocation)
           
 void setRepoUsageComponent(RepoUsageComponent repoUsageComponent)
           
 void setSearchService(org.alfresco.service.cmr.search.SearchService searchService)
           
 void undeployMessageBundle(java.lang.String bundleBaseName)
          Undeploy custom message resource bundle (from the 'Messages' space).
 org.alfresco.service.namespace.QName undeployModel(java.lang.String modelFileName)
          Undeploy custom model (from the 'Models' space).
 boolean updateUsage(RepoUsage.UsageType usageType)
          Force an update of the usages, providing a hint on the specific updates required.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CRITERIA_ALL

public static final java.lang.String CRITERIA_ALL
See Also:
Constant Field Values

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)

getModels

public java.util.List getModels()
Description copied from interface: RepoAdminService
Get list of deployed custom model.

Specified by:
getModels in interface RepoAdminService

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 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

reloadMessageBundle

public void reloadMessageBundle(java.lang.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


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.