Class AbstractAdminWebScript

java.lang.Object
org.springframework.extensions.webscripts.AbstractWebScript
org.springframework.extensions.webscripts.DeclarativeWebScript
org.alfresco.repo.web.scripts.admin.AbstractAdminWebScript
All Implemented Interfaces:
org.springframework.extensions.webscripts.WebScript
Direct Known Subclasses:
RepoRestrictionsGet, RepoUsageGet, RepoUsagePost

public abstract class AbstractAdminWebScript extends org.springframework.extensions.webscripts.DeclarativeWebScript
Abstract implementation for scripts that access the RepoAdminService.
Since:
3.4
Author:
Derek Hulley
  • Field Details

  • Constructor Details

    • AbstractAdminWebScript

      public AbstractAdminWebScript()
  • Method Details

    • setRepoAdminService

      public void setRepoAdminService(RepoAdminService repoAdminService)
      Parameters:
      repoAdminService - the service that provides the functionality
    • setDescriptorService

      public void setDescriptorService(DescriptorService descriptorService)
      Parameters:
      descriptorService - the service that provides the functionality
    • getI18NMessage

      protected String getI18NMessage(String key, Object... args)
      Return an I18N'd message for the given key or the key itself if not present
      Parameters:
      args - arguments to replace the variables in the message
    • putUsageInModel

      protected void putUsageInModel(Map<String,Object> model, RepoUsage repoUsage, boolean updated)
      Helper to assign JSON return variables based on the repository usage data.