Class ViewProjectRoleActors

java.lang.Object
webwork.action.ActionSupport
com.atlassian.jira.web.action.JiraWebActionSupport
com.atlassian.jira.web.action.admin.roles.ViewProjectRoleActors
All Implemented Interfaces:
ErrorCollection, I18nHelper, HttpServletVariables, AuthorizationSupport, Serializable, webwork.action.Action, webwork.action.CommandDriven, webwork.action.IllegalArgumentAware

public class ViewProjectRoleActors extends JiraWebActionSupport
See Also:
  • Field Details

    • pluginAccessor

      protected com.atlassian.plugin.PluginAccessor pluginAccessor
  • Constructor Details

  • Method Details

    • doExecute

      protected String doExecute() throws Exception
      Overrides:
      doExecute in class webwork.action.ActionSupport
      Throws:
      Exception
    • canCurrentUserEditProjectRole

      protected boolean canCurrentUserEditProjectRole()
    • getRoleActorTypes

      public Collection getRoleActorTypes(ProjectRole projectRole, String type, int length)
      Returns the RoleActors in a ProjectRole that have the given type e.g. {@link com.atlassian.jira.security.roles.actor.UserRoleActorFactory.UserRoleActor#} or {@link com.atlassian.jira.security.roles.actor.GroupRoleActorFactory.GroupRoleActor#}.
      Parameters:
      projectRole -
      type - designation to specify which kind of RoleActor to get.
      length -
      Returns:
      the Collection of RoleActors.
    • getProject

      public Project getProject()
    • getProjectId

      public Long getProjectId()
    • setProjectId

      public void setProjectId(Long projectId)
    • getRoleActors

      public Collection getRoleActors(ProjectRole projectRole)
    • getRoles

      public Collection getRoles()
    • getProjectRole

      public ProjectRole getProjectRole()
    • setProjectRoleId

      public void setProjectRoleId(Long projectRoleId)
    • setId

      public void setId(Long projectRoleId)
    • getProjectRoleId

      public Long getProjectRoleId()
    • getRoleActorTypes

      public List getRoleActorTypes()
    • getConfigurationUrl

      public String getConfigurationUrl(String roleActorType)
    • getTableWidthForRoleActorTypes

      public int getTableWidthForRoleActorTypes(int percentToDivide)