Class AbstractRmAuthorities

java.lang.Object
org.springframework.extensions.webscripts.AbstractWebScript
org.springframework.extensions.webscripts.DeclarativeWebScript
org.alfresco.module.org_alfresco_module_rm.script.admin.RoleDeclarativeWebScript
org.alfresco.repo.web.scripts.roles.AbstractRmAuthorities
All Implemented Interfaces:
org.springframework.extensions.webscripts.WebScript
Direct Known Subclasses:
RmAuthoritiesDelete, RmAuthoritiesPost

public class AbstractRmAuthorities extends RoleDeclarativeWebScript
Abstract class for adding/removing a user/group to/from a role This class contains the common methods needed in the sub classes.
Since:
2.1
Author:
Tuna Aksoy
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.alfresco.module.org_alfresco_module_rm.script.admin.RoleDeclarativeWebScript

    RoleDeclarativeWebScript.AuthorityItem, RoleDeclarativeWebScript.RoleItem

    Nested classes/interfaces inherited from class org.springframework.extensions.webscripts.AbstractWebScript

    org.springframework.extensions.webscripts.AbstractWebScript.ScriptDetails
  • Field Summary

    Fields inherited from class org.alfresco.module.org_alfresco_module_rm.script.admin.RoleDeclarativeWebScript

    authorityService, filePlanRoleService, filePlanService
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected String
    getAuthorityName(org.springframework.extensions.webscripts.WebScriptRequest req)
    Util method for getting the authorityName from the request
    protected NodeRef
    getFilePlan(org.springframework.extensions.webscripts.WebScriptRequest req)
    Util method for getting the nodeRef from the request
    protected String
    getRoleId(org.springframework.extensions.webscripts.WebScriptRequest req)
    Util method for getting the roleId from the request

    Methods inherited from class org.alfresco.module.org_alfresco_module_rm.script.admin.RoleDeclarativeWebScript

    createRoleItems, createRoleItems, setAuthorityService, setFilePlanRoleService, setFilePlanService

    Methods inherited from class org.springframework.extensions.webscripts.DeclarativeWebScript

    execute, executeFinallyImpl, executeImpl, executeImpl, executeImpl, getTemplateModel, renderFormatTemplate

    Methods inherited from class org.springframework.extensions.webscripts.AbstractWebScript

    addModuleBundleToCache, checkModuleBundleCache, createArgs, createArgsM, createHeaders, createHeadersM, createScriptParameters, createStatusException, createTemplateParameters, executeScript, getContainer, getDescription, getExecuteScript, getResources, getStatusTemplate, init, renderString, renderString, renderTemplate, sendStatus, setURLModelFactory, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • AbstractRmAuthorities

      public AbstractRmAuthorities()
  • Method Details

    • getFilePlan

      protected NodeRef getFilePlan(org.springframework.extensions.webscripts.WebScriptRequest req)
      Util method for getting the nodeRef from the request
      Overrides:
      getFilePlan in class RoleDeclarativeWebScript
      Parameters:
      req - The webscript request
      Returns:
      The nodeRef passed in the request
    • getRoleId

      protected String getRoleId(org.springframework.extensions.webscripts.WebScriptRequest req)
      Util method for getting the roleId from the request
      Parameters:
      req - The webscript request
      Returns:
      The role id passed in the request
    • getAuthorityName

      protected String getAuthorityName(org.springframework.extensions.webscripts.WebScriptRequest req)
      Util method for getting the authorityName from the request
      Parameters:
      req - The webscript request
      Returns:
      The authorityName passed in the request