|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.greenhopper.service.PermissionServiceImpl
@Service(value="gh-permissionService") public class PermissionServiceImpl
PermissionService implementation
Field Summary |
---|
Fields inherited from interface com.atlassian.greenhopper.service.PermissionService |
---|
SERVICE |
Constructor Summary | |
---|---|
PermissionServiceImpl()
|
Method Summary | |
---|---|
boolean |
canCreateIssue(com.atlassian.crowd.embedded.api.User user)
Check if the user is allowed to create an issue in any of the projects in the system |
boolean |
canCreateProject(com.atlassian.crowd.embedded.api.User user)
Check if the user is allowed to create a project in the system |
boolean |
canUpdateIssue(com.atlassian.crowd.embedded.api.User user,
com.atlassian.jira.issue.Issue issue)
Check if the user is allowed to save changes to the issue. |
boolean |
hasAllPermission(com.atlassian.crowd.embedded.api.User user,
java.util.Collection<com.atlassian.jira.project.Project> projects,
int permission)
Has the user a certain right for all of the projects. |
boolean |
hasGlobalPermission(com.atlassian.crowd.embedded.api.User user,
int permission)
Has the user a global permission |
boolean |
hasPermission(com.atlassian.crowd.embedded.api.User user,
com.atlassian.jira.issue.Issue issue,
int permission)
Has the user a certain right for a given issue |
boolean |
hasPermission(com.atlassian.crowd.embedded.api.User user,
com.atlassian.jira.project.Project project,
int permission)
Has the user a certain right for a given project. |
boolean |
hasSomePermission(com.atlassian.crowd.embedded.api.User user,
java.util.Collection<com.atlassian.jira.project.Project> projects,
int permission)
Has the user a certain right for at least one of the projects. |
boolean |
isAllProjectsAdministrator(com.atlassian.crowd.embedded.api.User user)
Is the user a project admin for all projects |
boolean |
isJiraAdministrator(com.atlassian.crowd.embedded.api.User user)
Check if the user is having Admin permission on the JIRA instance |
boolean |
isJiraSystemAdministrator(com.atlassian.crowd.embedded.api.User user)
Check if the user is having System Administrator permission on the JIRA instance |
boolean |
isProjectAdministrator(com.atlassian.crowd.embedded.api.User user,
java.util.Collection<com.atlassian.jira.project.Project> projects)
Check if the user is having the project administrator role for all given projects |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PermissionServiceImpl()
Method Detail |
---|
public boolean hasPermission(com.atlassian.crowd.embedded.api.User user, com.atlassian.jira.issue.Issue issue, int permission)
PermissionService
hasPermission
in interface PermissionService
public boolean hasPermission(com.atlassian.crowd.embedded.api.User user, com.atlassian.jira.project.Project project, int permission)
PermissionService
hasPermission
in interface PermissionService
public boolean hasSomePermission(com.atlassian.crowd.embedded.api.User user, java.util.Collection<com.atlassian.jira.project.Project> projects, int permission)
PermissionService
hasSomePermission
in interface PermissionService
public boolean hasAllPermission(com.atlassian.crowd.embedded.api.User user, java.util.Collection<com.atlassian.jira.project.Project> projects, int permission)
PermissionService
hasAllPermission
in interface PermissionService
public boolean hasGlobalPermission(com.atlassian.crowd.embedded.api.User user, int permission)
PermissionService
hasGlobalPermission
in interface PermissionService
public boolean isProjectAdministrator(com.atlassian.crowd.embedded.api.User user, java.util.Collection<com.atlassian.jira.project.Project> projects)
PermissionService
isProjectAdministrator
in interface PermissionService
public boolean isAllProjectsAdministrator(com.atlassian.crowd.embedded.api.User user)
PermissionService
isAllProjectsAdministrator
in interface PermissionService
public boolean isJiraAdministrator(com.atlassian.crowd.embedded.api.User user)
PermissionService
isJiraAdministrator
in interface PermissionService
public boolean isJiraSystemAdministrator(com.atlassian.crowd.embedded.api.User user)
PermissionService
isJiraSystemAdministrator
in interface PermissionService
public boolean canUpdateIssue(com.atlassian.crowd.embedded.api.User user, com.atlassian.jira.issue.Issue issue)
PermissionService
canUpdateIssue
in interface PermissionService
public boolean canCreateIssue(com.atlassian.crowd.embedded.api.User user)
PermissionService
canCreateIssue
in interface PermissionService
public boolean canCreateProject(com.atlassian.crowd.embedded.api.User user)
PermissionService
canCreateProject
in interface PermissionService
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |