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
-
-
Field Summary
-
Fields inherited from class org.alfresco.module.org_alfresco_module_rm.script.admin.RoleDeclarativeWebScript
authorityService, filePlanRoleService, filePlanService
-
-
Constructor Summary
Constructors Constructor Description AbstractRmAuthorities()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
getAuthorityName(org.springframework.extensions.webscripts.WebScriptRequest req)
Util method for getting the authorityName from the requestprotected org.alfresco.service.cmr.repository.NodeRef
getFilePlan(org.springframework.extensions.webscripts.WebScriptRequest req)
Util method for getting the nodeRef from the requestprotected 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
-
-
-
-
Method Detail
-
getFilePlan
protected org.alfresco.service.cmr.repository.NodeRef getFilePlan(org.springframework.extensions.webscripts.WebScriptRequest req)
Util method for getting the nodeRef from the request- Overrides:
getFilePlan
in classRoleDeclarativeWebScript
- 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
-
-