@ExperimentalApi
public interface RequestTypeService
RequestType
.Modifier and Type | Method and Description |
---|---|
com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,RequestType> |
createRequestType(com.atlassian.jira.user.ApplicationUser user,
RequestTypeCreateParameters requestTypeCreateParameters)
Create a new
RequestType with using the provided RequestTypeCreateParameters . |
com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,RequestType> |
createRequestType(long projectId,
int issueTypeId,
String name,
String description,
long iconId,
List<Integer> groupIds) |
com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,RequestType> |
deleteRequestTypeByIdAndProjectId(Integer requestTypeId,
Long projectId)
Delete a request type by ID.
|
com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,List<RequestType>> |
getAllRequestTypes(com.atlassian.jira.user.ApplicationUser user)
Deprecated.
use
getRequestTypes(ApplicationUser, RequestTypeQuery) instead
Retrieves a list of |
com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,RequestType> |
getRequestTypeByIdAndProjectId(Integer requestTypeId,
Long projectId)
Get a request type by ID.
|
com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,RequestType> |
getRequestTypeForIssue(com.atlassian.jira.user.ApplicationUser user,
com.atlassian.jira.issue.Issue issue)
Deprecated.
use
getRequestTypes(ApplicationUser, RequestTypeQuery) instead
Retrieves a |
com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,RequestType> |
getRequestTypeForIssueOverrideSecurity(com.atlassian.jira.issue.Issue issue)
Deprecated.
use
getRequestTypes(ApplicationUser, RequestTypeQuery) instead
Retrieves a
You should not use this method normally, use |
com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,RequestType> |
getRequestTypeForRequest(com.atlassian.jira.user.ApplicationUser user,
CustomerRequest customerRequest)
Deprecated.
use
getRequestTypes(ApplicationUser, RequestTypeQuery) instead
Retrieves a |
com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,RequestType> |
getRequestTypeForRequestOverrideSecurity(CustomerRequest customerRequest)
Deprecated.
use
getRequestTypes(ApplicationUser, RequestTypeQuery) instead
Retrieves a
You should not use this method normally, use |
com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,PagedResponse<RequestType>> |
getRequestTypes(com.atlassian.jira.user.ApplicationUser user,
RequestTypeQuery requestTypeQuery)
Retrieve a list of
RequestType that satifies the query parameters |
com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,List<RequestType>> |
getRequestTypes(com.atlassian.jira.user.ApplicationUser user,
RequestTypeQueryParameters requestTypeQueryParameters)
Deprecated.
use
getRequestTypes(ApplicationUser, RequestTypeQuery) instead
Retrieve a list of |
com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,List<RequestType>> |
getRequestTypesByGroup(Integer groupId,
Integer serviceDeskId) |
com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,List<RequestType>> |
getRequestTypesForGroup(Integer groupId,
Long projectId) |
RequestTypeCreateParameters.Builder |
newCreateBuilder() |
RequestTypeQuery.Builder |
newQueryBuilder()
Create a builder to build
RequestTypeQuery |
RequestTypeQueryParameters.Builder |
queryBuilder()
Deprecated.
use
newQueryBuilder() instead
Create a |
com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,RequestType> |
updateRequestTypeByIdAndProjectId(Integer requestTypeId,
Long projectId,
RequestType requestType) |
RequestTypeQuery.Builder newQueryBuilder()
RequestTypeQuery
@Nonnull com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,PagedResponse<RequestType>> getRequestTypes(@Nullable com.atlassian.jira.user.ApplicationUser user, @Nonnull RequestTypeQuery requestTypeQuery)
RequestType
that satifies the query parametersuser
- the user executing the requestsrequestTypeQuery
- the query parametersRequestType
on successful retrieval, or AnError
if failure@Deprecated @Nonnull com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,List<RequestType>> getRequestTypes(@Nonnull com.atlassian.jira.user.ApplicationUser user, @Nonnull RequestTypeQueryParameters requestTypeQueryParameters)
getRequestTypes(ApplicationUser, RequestTypeQuery)
instead
Retrieve a list of RequestType
in the given Portal
, or a specific RequestType
if its requestTypeId
is given
user
- the user in the running contextrequestTypeQueryParameters
- the query, in which portal
is required, and requestTypeId
can be optionalRequestType
in the Portal
, or the specific request type with the given requestTypeId
@Deprecated RequestTypeQueryParameters.Builder queryBuilder()
newQueryBuilder()
instead
Create a RequestTypeQueryParameters.Builder
@Nonnull @Deprecated com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,RequestType> getRequestTypeForRequest(@Nonnull com.atlassian.jira.user.ApplicationUser user, @Nonnull CustomerRequest customerRequest)
getRequestTypes(ApplicationUser, RequestTypeQuery)
instead
Retrieves a RequestType
for a CustomerRequest
user
- the user retrieving the request typecustomerRequest
- the CustomerRequest
that you want to retrieve the request type for.RequestType
that is associated with the given CustomerRequest
@Nonnull @Deprecated com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,RequestType> getRequestTypeForIssue(@Nonnull com.atlassian.jira.user.ApplicationUser user, @Nonnull com.atlassian.jira.issue.Issue issue)
getRequestTypes(ApplicationUser, RequestTypeQuery)
instead
Retrieves a RequestType
for a Issue
user
- the user retrieving the request typeissue
- the Issue
that you want to retrieve the request type for.RequestType
that is associated with the given Issue
@Nonnull @Deprecated com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,List<RequestType>> getAllRequestTypes(com.atlassian.jira.user.ApplicationUser user)
getRequestTypes(ApplicationUser, RequestTypeQuery)
instead
Retrieves a list of RequestType
that a user has permission to see
user
- the user retrieving the request typeRequestType
@Nonnull @Deprecated com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,RequestType> getRequestTypeForRequestOverrideSecurity(@Nonnull CustomerRequest customerRequest)
getRequestTypes(ApplicationUser, RequestTypeQuery)
instead
Retrieves a RequestType
for a CustomerRequest
ignoring all security constraint
You should not use this method normally, use getRequestTypeForIssue(com.atlassian.jira.user.ApplicationUser, com.atlassian.jira.issue.Issue)
instead, this should only be used when performing administrative tasks where you need access to a request type regardless of permissions or without a user.
customerRequest
- the CustomerRequest
that you want to retrieve the request type for.RequestType
that is associated with the given CustomerRequest
@Nonnull @Deprecated com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,RequestType> getRequestTypeForIssueOverrideSecurity(@Nonnull com.atlassian.jira.issue.Issue issue)
getRequestTypes(ApplicationUser, RequestTypeQuery)
instead
Retrieves a RequestType
for a Issue
ignoring all security constraint
You should not use this method normally, use getRequestTypeForIssue(com.atlassian.jira.user.ApplicationUser, com.atlassian.jira.issue.Issue)
instead, this should only be used when performing administrative tasks where you need access to a request type regardless of permissions or without a user.
issue
- the Issue
that you want to retrieve the request type for.RequestType
that is associated with the given Issue
RequestTypeCreateParameters.Builder newCreateBuilder()
RequestTypeCreateParameters.Builder
to build RequestTypeCreateParameters
.com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,RequestType> createRequestType(com.atlassian.jira.user.ApplicationUser user, RequestTypeCreateParameters requestTypeCreateParameters)
RequestType
with using the provided RequestTypeCreateParameters
.
user
- the user executing the request.requestTypeCreateParameters
- params used to create a new RequestType
.RequestType
if success, or an AnError
if failure.com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,RequestType> createRequestType(long projectId, int issueTypeId, String name, String description, long iconId, List<Integer> groupIds)
com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,List<RequestType>> getRequestTypesForGroup(Integer groupId, Long projectId)
groupId
- The ID of the group to filter request types byprojectId
- The ID of the project which contains the groupRequestType
that are in the specified group
Retrieves a list of RequestType
that a user has permission to see
that belong to the group specified.
com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,List<RequestType>> getRequestTypesByGroup(Integer groupId, Integer serviceDeskId)
groupId
- The ID of the group to filter request types byserviceDeskId
- The ID of the serviceDesk which contains the groupRequestType
that are in the specified group
Retrieves a list of RequestType
that a user has permission to see
that belong to the group specified.
com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,RequestType> getRequestTypeByIdAndProjectId(Integer requestTypeId, Long projectId)
requestTypeId
- The ID of the request type.projectId
- The ID of the project owning the request type.com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,RequestType> deleteRequestTypeByIdAndProjectId(Integer requestTypeId, Long projectId)
requestTypeId
- The ID of the request type.projectId
- The ID of the project containing the request type.com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,RequestType> updateRequestTypeByIdAndProjectId(Integer requestTypeId, Long projectId, RequestType requestType)
Copyright © 2017 Atlassian. All rights reserved.