@PublicApi @Deprecated @ParametersAreNonnullByDefault @ReturnValuesAreNonnullByDefault public interface ServiceDeskPermissionService
WARNING: this interface is experimental and is subject to change between minor versions of Service Desk 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 Service Desk developer.
Modifier and Type | Method and Description |
---|---|
com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,Boolean> |
isAdminAgent(com.atlassian.jira.user.ApplicationUser user,
ServiceDesk serviceDesk)
Deprecated.
Checks whether the user is an agent with project admin permission.
|
com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,Boolean> |
isAgent(com.atlassian.jira.user.ApplicationUser user,
ServiceDesk serviceDesk)
Deprecated.
Checks whether the user is an agent for the given service desk.
|
com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,Boolean> |
isCustomer(com.atlassian.jira.user.ApplicationUser user,
CustomerRequest request)
Deprecated.
Checks whether the
ApplicationUser is a customer for the
given com.atlassian.servicedesk.api.request . |
com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,Boolean> |
isCustomer(com.atlassian.jira.user.ApplicationUser user,
com.atlassian.jira.issue.Issue issue)
Deprecated.
Checks whether the
ApplicationUser is a customer for the
given com.atlassian.servicedesk.api.request . |
com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,Boolean> isAdminAgent(com.atlassian.jira.user.ApplicationUser user, ServiceDesk serviceDesk)
user
- the user who you want to checkserviceDesk
- the service desk you want to check the agent status against.com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,Boolean> isAgent(com.atlassian.jira.user.ApplicationUser user, ServiceDesk serviceDesk)
user
- the user who you want to checkserviceDesk
- the service desk you want to check the agent status against.com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,Boolean> 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.com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,Boolean> 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.Copyright © 2020 Atlassian. All rights reserved.