Class SetPagePermissionsAction

java.lang.Object
org.apache.struts2.ActionSupport
All Implemented Interfaces:
Beanable, PageAware, WebInterface, MessageHolderAware, com.opensymphony.xwork2.Action, com.opensymphony.xwork2.interceptor.ValidationAware, com.opensymphony.xwork2.LocaleProvider, com.opensymphony.xwork2.TextProvider, com.opensymphony.xwork2.Validateable, Serializable, org.apache.struts2.action.Action, org.apache.struts2.interceptor.ValidationAware, org.apache.struts2.Validateable

public class SetPagePermissionsAction extends AbstractPageAwareAction implements Beanable
Called for a existing Page via AJAX, sets new ContentPermissions for the Page, overwriting any existing ones.
See Also:
  • Field Details

  • Constructor Details

    • SetPagePermissionsAction

      public SetPagePermissionsAction()
  • Method Details

    • setPagePermissions

      public String setPagePermissions() throws Exception
      Throws:
      Exception
    • setContentPermissions

      public String setContentPermissions() throws Exception
      Throws:
      Exception
    • getBean

      public Map<String,Object> getBean()
      Specified by:
      getBean in interface Beanable
    • isPageRequired

      public boolean isPageRequired()
      Description copied from interface: PageAware
      If the action requires that the page be set before being run, then it should return true to this method. If the action requires a page, but no page is available, then the interceptor will automatically redirect to the 'pagenotfound' result
      Specified by:
      isPageRequired in interface PageAware
      Overrides:
      isPageRequired in class AbstractPageAwareAction
      Returns:
      true if the action requires a page in order to execute
    • setViewPermissionsGroups

      public void setViewPermissionsGroups(String viewPermissionsGroups)
    • setViewPermissionsUsers

      public void setViewPermissionsUsers(String viewPermissionsUsers)
    • setEditPermissionsGroups

      public void setEditPermissionsGroups(String editPermissionsGroups)
    • setEditPermissionsUsers

      public void setEditPermissionsUsers(String editPermissionsUsers)
    • setContentEntityManager

      public void setContentEntityManager(ContentEntityManager contentEntityManager)
    • setContentId

      public void setContentId(long contentId)
    • getViewPermissionsGroupList

      public List<String> getViewPermissionsGroupList()
    • setViewPermissionsGroupList

      public void setViewPermissionsGroupList(List<String> viewPermissionsGroupList)
    • getEditPermissionsGroupList

      public List<String> getEditPermissionsGroupList()
    • setEditPermissionsGroupList

      public void setEditPermissionsGroupList(List<String> editPermissionsGroupList)
    • getViewPermissionsUserList

      public List<String> getViewPermissionsUserList()
    • setViewPermissionsUserList

      public void setViewPermissionsUserList(List<String> viewPermissionsUserList)
    • getEditPermissionsUserList

      public List<String> getEditPermissionsUserList()
    • setEditPermissionsUserList

      public void setEditPermissionsUserList(List<String> editPermissionsUserList)
    • setContentPermissionTester

      public void setContentPermissionTester(ContentPermissionTester contentPermissionTester)
      Since:
      9.2.6