public class

SecurityTypeValuesServiceImpl

extends Object
implements SecurityTypeValuesService
java.lang.Object
   ↳ com.atlassian.jira.permission.management.SecurityTypeValuesServiceImpl

Class Overview

SecurityTypes have magic methods of how to get their "add" possible values. This code knows about what they are

Summary

Public Constructors
SecurityTypeValuesServiceImpl(GlobalPermissionManager globalPermissionManager, PermissionTypeManager permissionTypeManager, I18nHelper i18nHelper, HelpUrls helpUrls)
Public Methods
List<SecurityTypeBean> buildPrimarySecurityTypes(ApplicationUser user)
Given a user return primary security types returning their bean information
List<SecurityTypeBean> buildSecondarySecurityTypes(ApplicationUser user)
Given a user return secondary security types returning their bean information
void sort(List<SecurityTypeBean> grants)
Sorts the grants into a UI specific and consistent order
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.permission.management.SecurityTypeValuesService

Public Constructors

public SecurityTypeValuesServiceImpl (GlobalPermissionManager globalPermissionManager, PermissionTypeManager permissionTypeManager, I18nHelper i18nHelper, HelpUrls helpUrls)

Public Methods

public List<SecurityTypeBean> buildPrimarySecurityTypes (ApplicationUser user)

Given a user return primary security types returning their bean information

Parameters
user to get types for
Returns
  • primary security types

public List<SecurityTypeBean> buildSecondarySecurityTypes (ApplicationUser user)

Given a user return secondary security types returning their bean information

Parameters
user to get types for
Returns
  • secondary security types

public void sort (List<SecurityTypeBean> grants)

Sorts the grants into a UI specific and consistent order

Parameters
grants the list to sort inline