|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SchemeType
Method Summary | |
---|---|
void |
doValidation(String key,
Map<String,String> parameters,
JiraServiceContext jiraServiceContext)
|
String |
getDisplayName()
|
String |
getType()
|
boolean |
hasPermission(org.ofbiz.core.entity.GenericValue entity,
String argument)
Deprecated. Use hasPermission(com.atlassian.jira.issue.Issue, String) or hasPermission(com.atlassian.jira.project.Project, String) instead. Since v5.2. |
boolean |
hasPermission(org.ofbiz.core.entity.GenericValue entity,
String argument,
com.atlassian.crowd.embedded.api.User user,
boolean issueCreation)
Deprecated. Use hasPermission(Project, String, User, boolean) or hasPermission(Issue, String, User, boolean) instead. Since v5.2. |
boolean |
hasPermission(Issue issue,
String parameter)
Determines if this permission type is satisfied for anonymous access. |
boolean |
hasPermission(Issue issue,
String parameter,
com.atlassian.crowd.embedded.api.User user,
boolean issueCreation)
Determines if this permission type is satisfied. |
boolean |
hasPermission(Project project,
String parameter)
Determines if this permission type is satisfied for anonymous access. |
boolean |
hasPermission(Project project,
String parameter,
com.atlassian.crowd.embedded.api.User user,
boolean issueCreation)
Determines if this permission type is satisfied. |
boolean |
isValidForPermission(int permissionId)
This method determines if this SchemeType is valid for the given permissionId. |
Method Detail |
---|
String getDisplayName()
String getType()
void doValidation(String key, Map<String,String> parameters, JiraServiceContext jiraServiceContext)
boolean hasPermission(org.ofbiz.core.entity.GenericValue entity, String argument)
hasPermission(com.atlassian.jira.issue.Issue, String)
or hasPermission(com.atlassian.jira.project.Project, String)
instead. Since v5.2.
entity
- This is the issue or the project that the security is being checked forargument
- If this particular SchemeType has been configured with a parameter, then this parameter is passed (eg. Group Name for GroupDropdown
)
boolean hasPermission(Project project, String parameter)
project
- This is the project that the security is being checked forparameter
- If this particular SchemeType has been configured with a parameter, then this parameter is passed (eg. Group Name for GroupDropdown
)
boolean hasPermission(Issue issue, String parameter)
issue
- This is the issue that the security is being checked forparameter
- If this particular SchemeType has been configured with a parameter, then this parameter is passed (eg. Group Name for GroupDropdown
)
boolean hasPermission(org.ofbiz.core.entity.GenericValue entity, String argument, com.atlassian.crowd.embedded.api.User user, boolean issueCreation)
hasPermission(Project, String, User, boolean)
or hasPermission(Issue, String, User, boolean)
instead. Since v5.2.
entity
- This is the issue or the project that the security is being checked forargument
- If this particular SchemeType has been configured with a parameter, then this parameter is passed (eg. Group Name for GroupDropdown
)user
- The user for whom the permission is being checkedissueCreation
- Whether this permission is being checked during issue creation
boolean hasPermission(Project project, String parameter, com.atlassian.crowd.embedded.api.User user, boolean issueCreation)
project
- This is the project that the security is being checked forparameter
- If this particular SchemeType has been configured with a parameter, then this parameter is passed (eg. Group Name for GroupDropdown
)user
- The user for whom the permission is being checkedissueCreation
- Whether this permission is being checked during issue creation
boolean hasPermission(Issue issue, String parameter, com.atlassian.crowd.embedded.api.User user, boolean issueCreation)
issue
- This is the issue that the security is being checked forparameter
- If this particular SchemeType has been configured with a parameter, then this parameter is passed (eg. Group Name for GroupDropdown
)user
- The user for whom the permission is being checkedissueCreation
- Whether this permission is being checked during issue creation
boolean isValidForPermission(int permissionId)
The default behaviour is for SchemeTypes to be valid for all permission functions, but some scheme types may choose to override this behaviour. eg the CurrentReporterHasCreatePermission scheme is invalid to be added to the "Create Issue" function. Also see JRA-13315.
permissionId
- ID of the permission in question
CurrentReporterHasCreatePermission
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |