Class 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
    • Field Detail

      • filePlanService

        protected FilePlanService filePlanService
        File plan service
      • filePlanRoleService

        protected FilePlanRoleService filePlanRoleService
        File plan role service
      • authorityService

        protected org.alfresco.service.cmr.security.AuthorityService authorityService
        Authority service
    • Constructor Detail

      • RoleDeclarativeWebScript

        public RoleDeclarativeWebScript()
    • 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​(org.alfresco.service.cmr.security.AuthorityService authorityService)
        Parameters:
        authorityService - authority service
      • getFilePlan

        protected org.alfresco.service.cmr.repository.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​(org.alfresco.service.cmr.repository.NodeRef filePlan,
                                                                         Set<Role> roles)
        Create role items
        Parameters:
        filePlan -
        roles -
        Returns:
      • createRoleItems

        protected Set<RoleDeclarativeWebScript.RoleItem> createRoleItems​(org.alfresco.service.cmr.repository.NodeRef filePlan,
                                                                         Set<Role> roles,
                                                                         boolean showAuths)
        Create role items
        Parameters:
        filePlan -
        roles -
        showAuths -
        Returns: