Package com.atlassian.jira.security.type
Class CurrentReporter
java.lang.Object
com.atlassian.jira.security.type.AbstractSecurityType
com.atlassian.jira.security.type.AbstractIssueFieldSecurityType
com.atlassian.jira.security.type.SimpleIssueFieldSecurityType
com.atlassian.jira.security.type.CurrentReporter
- All Implemented Interfaces:
SchemeType,SecurityType
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoValidation(String key, Map parameters, JiraServiceContext jiraServiceContext) protected StringgetField()protected StringgetFieldName(String parameter) Get the field name for this Issue Field-based Security Type given the parameter in the saved configuration.protected StringgetFieldValue(Issue issue) Returns the user key value for the given issue for the field that this security type checks.getType()getUsers(PermissionContext ctx, String ignored) Returns a set ofApplicationUsers represented by a security type instance.protected booleanhasProjectPermission(ApplicationUser user, boolean issueCreation, Project project) Methods inherited from class com.atlassian.jira.security.type.SimpleIssueFieldSecurityType
hasIssuePermissionMethods inherited from class com.atlassian.jira.security.type.AbstractIssueFieldSecurityType
getPermissionFieldContents, getPermissionFieldContents, getPermissionFieldContentsForProject, getPermissionFieldContentsForSecurityLevel, hasPermission, hasPermission, hasPermission, hasPermission, isTopLevelIssueSecurityPermission, isTopLevelProjectPermissionMethods inherited from class com.atlassian.jira.security.type.AbstractSecurityType
getArgumentDisplay, isValidForPermissionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.jira.security.type.SecurityType
getUsers
-
Field Details
-
DESC
- See Also:
-
-
Constructor Details
-
CurrentReporter
-
-
Method Details
-
getDisplayName
-
getType
-
doValidation
-
getFieldName
Description copied from class:AbstractIssueFieldSecurityTypeGet the field name for this Issue Field-based Security Type given the parameter in the saved configuration.Some Field based permissions are based on hard-coded fields like assignee and reporter in which case the parameter is not used. Other types use the parameter to name the particular User or Group custom field that is used for the permission.
- Specified by:
getFieldNamein classAbstractIssueFieldSecurityType- Parameters:
parameter- the parameter as saved in the config- Returns:
- the field name for this Issue Field-based Security Type.
-
hasProjectPermission
protected boolean hasProjectPermission(ApplicationUser user, boolean issueCreation, Project project) - Specified by:
hasProjectPermissionin classAbstractIssueFieldSecurityType
-
getField
- Specified by:
getFieldin classSimpleIssueFieldSecurityType
-
getFieldValue
Description copied from class:SimpleIssueFieldSecurityTypeReturns the user key value for the given issue for the field that this security type checks.- Specified by:
getFieldValuein classSimpleIssueFieldSecurityType- Parameters:
issue- the Issue- Returns:
- the user key value for the given issue for the field that this security type checks.
-
getUsers
Description copied from interface:SecurityTypeReturns a set ofApplicationUsers represented by a security type instance. The collection must not contain any nulls.- Parameters:
ctx- The current issue and projectignored- Instance value, eg. a group name, user name, custom field id- Returns:
- A set of
ApplicationUsers.
-