Class RoleDeclarativeWebScript
- java.lang.Object
-
- org.springframework.extensions.webscripts.AbstractWebScript
-
- org.springframework.extensions.webscripts.DeclarativeWebScript
-
- org.alfresco.module.org_alfresco_module_rm.script.admin.RoleDeclarativeWebScript
-
- All Implemented Interfaces:
org.springframework.extensions.webscripts.WebScript
- Direct Known Subclasses:
AbstractRmAuthorities
,RmRoleDelete
,RmRoleGet
,RmRolePut
,RmRolesGet
,RmRolesPost
public class RoleDeclarativeWebScript extends org.springframework.extensions.webscripts.DeclarativeWebScript
Base declarative web script for role API.- Since:
- 2.1
- Author:
- Roy Wetherall
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
RoleDeclarativeWebScript.AuthorityItem
Authority Item Helper Classclass
RoleDeclarativeWebScript.RoleItem
Role Item Helper Class
-
Field Summary
Fields Modifier and Type Field Description protected AuthorityService
authorityService
Authority serviceprotected FilePlanRoleService
filePlanRoleService
File plan role serviceprotected FilePlanService
filePlanService
File plan service
-
Constructor Summary
Constructors Constructor Description RoleDeclarativeWebScript()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Set<RoleDeclarativeWebScript.RoleItem>
createRoleItems(NodeRef filePlan, Set<Role> roles)
Create role itemsprotected Set<RoleDeclarativeWebScript.RoleItem>
createRoleItems(NodeRef filePlan, Set<Role> roles, boolean showAuths)
Create role itemsprotected NodeRef
getFilePlan(org.springframework.extensions.webscripts.WebScriptRequest req)
Utility method to get the file plan from the passed parameters.void
setAuthorityService(AuthorityService authorityService)
void
setFilePlanRoleService(FilePlanRoleService filePlanRoleService)
void
setFilePlanService(FilePlanService filePlanService)
-
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
-
-
-
-
Field Detail
-
filePlanService
protected FilePlanService filePlanService
File plan service
-
filePlanRoleService
protected FilePlanRoleService filePlanRoleService
File plan role service
-
authorityService
protected AuthorityService authorityService
Authority service
-
-
Method Detail
-
setFilePlanService
public void setFilePlanService(FilePlanService filePlanService)
- Parameters:
filePlanService
- file plan service
-
setFilePlanRoleService
public void setFilePlanRoleService(FilePlanRoleService filePlanRoleService)
- Parameters:
filePlanRoleService
- file plan role service
-
setAuthorityService
public void setAuthorityService(AuthorityService authorityService)
- Parameters:
authorityService
- authority service
-
getFilePlan
protected NodeRef getFilePlan(org.springframework.extensions.webscripts.WebScriptRequest req)
Utility method to get the file plan from the passed parameters.- Parameters:
req
-- Returns:
-
createRoleItems
protected Set<RoleDeclarativeWebScript.RoleItem> createRoleItems(NodeRef filePlan, Set<Role> roles)
Create role items- Parameters:
filePlan
-roles
-- Returns:
-
createRoleItems
protected Set<RoleDeclarativeWebScript.RoleItem> createRoleItems(NodeRef filePlan, Set<Role> roles, boolean showAuths)
Create role items- Parameters:
filePlan
-roles
-showAuths
-- Returns:
-
-