@PublicApi @ParametersAreNonnullByDefault @ReturnValuesAreNonnullByDefault public interface ServiceDeskPermissionService
WARNING: this interface is experimental and is subject to change between minor versions of Jira Service Management up to and including removal of this interface or parts thereof. It is not for consumption by non-Atlassian plugins and no consideration will be given to nor guarantees made for its compatibility between releases. Basically, don't use it unless you're a Jira Service Management developer.
Modifier and Type | Method and Description |
---|---|
boolean |
isAdminAgent(com.atlassian.jira.user.ApplicationUser user,
ServiceDesk serviceDesk)
Checks whether the user is an agent with project admin permission.
|
boolean |
isAgent(com.atlassian.jira.user.ApplicationUser user,
ServiceDesk serviceDesk)
Checks whether the user is an agent for the given service project.
|
boolean |
isCustomer(com.atlassian.jira.user.ApplicationUser user,
CustomerRequest request)
Checks whether the
ApplicationUser is a customer for the
given com.atlassian.servicedesk.api.request . |
boolean |
isCustomer(com.atlassian.jira.user.ApplicationUser user,
com.atlassian.jira.issue.Issue issue)
Checks whether the
ApplicationUser is a customer for the
given com.atlassian.servicedesk.api.request . |
boolean isAdminAgent(com.atlassian.jira.user.ApplicationUser user, ServiceDesk serviceDesk)
user
- the user who you want to checkserviceDesk
- the service project you want to check the agent status against.ServiceDeskServiceException
- on errorboolean isAgent(com.atlassian.jira.user.ApplicationUser user, ServiceDesk serviceDesk)
user
- the user who you want to checkserviceDesk
- the service project you want to check the agent status against.ServiceDeskServiceException
- on errorboolean isCustomer(com.atlassian.jira.user.ApplicationUser user, CustomerRequest request)
ApplicationUser
is a customer for the
given com.atlassian.servicedesk.api.request
.user
- the user who you want to checkrequest
- the request you want to check customer status against.ServiceDeskServiceException
- on errorboolean isCustomer(com.atlassian.jira.user.ApplicationUser user, com.atlassian.jira.issue.Issue issue)
ApplicationUser
is a customer for the
given com.atlassian.servicedesk.api.request
.user
- the user who you want to checkissue
- the jira issue you want to check customer status against.ServiceDeskServiceException
- on errorCopyright © 2023 Atlassian. All rights reserved.