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 ClassesModifier and TypeClassDescriptionclass
Authority Item Helper Classclass
Role Item Helper ClassNested classes/interfaces inherited from class org.springframework.extensions.webscripts.AbstractWebScript
org.springframework.extensions.webscripts.AbstractWebScript.ScriptDetails
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AuthorityService
Authority serviceprotected FilePlanRoleService
File plan role serviceprotected FilePlanService
File plan service -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected 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 Details
-
filePlanService
File plan service -
filePlanRoleService
File plan role service -
authorityService
Authority service
-
-
Constructor Details
-
RoleDeclarativeWebScript
public RoleDeclarativeWebScript()
-
-
Method Details
-
setFilePlanService
- Parameters:
filePlanService
- file plan service
-
setFilePlanRoleService
- Parameters:
filePlanRoleService
- file plan role service
-
setAuthorityService
- Parameters:
authorityService
- authority service
-
getFilePlan
Utility method to get the file plan from the passed parameters.- Parameters:
req
-- Returns:
-
createRoleItems
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:
-