@PublicApi @Deprecated public interface OrganizationService
Modifier and Type | Method and Description |
---|---|
com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,com.atlassian.fugue.Unit> |
addOrganizationToServiceDesk(com.atlassian.jira.user.ApplicationUser user,
OrganizationServiceDeskUpdateParameters organizationServiceDeskUpdateParameters)
Deprecated.
Adds an organization to a servicedesk if the user is an agent of that servicedesk
|
com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,com.atlassian.fugue.Unit> |
addUsersToOrganization(com.atlassian.jira.user.ApplicationUser executingUser,
UsersOrganizationUpdateParameters parameters)
Deprecated.
Add users to a specified organization
|
com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,CustomerOrganization> |
createOrganization(com.atlassian.jira.user.ApplicationUser user,
CreateOrganizationParameters parameters)
Deprecated.
Creates a new customer organization.
|
com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,com.atlassian.fugue.Unit> |
delete(com.atlassian.jira.user.ApplicationUser user,
Integer organizationId)
Deprecated.
Checks whether the user is JIRA admin and an agent.
|
com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,CustomerOrganization> |
getById(com.atlassian.jira.user.ApplicationUser user,
Integer organizationId)
Deprecated.
Checks whether the user is an agent or a member of the organization.
|
com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,PagedResponse<CustomerOrganization>> |
getOrganizations(com.atlassian.jira.user.ApplicationUser user,
OrganizationsQuery requestQuery)
Deprecated.
Returns a list of organizations in the JIRA instance based on query parameters.
|
com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,PagedResponse<com.atlassian.jira.user.ApplicationUser>> |
getUsersInOrganization(com.atlassian.jira.user.ApplicationUser user,
UsersInOrganizationQuery query)
Deprecated.
get all the applicationUsers in a given organization
|
CreateOrganizationParameters.Builder |
newCreateBuilder()
Deprecated.
Returns a new
CreateOrganizationParameters.Builder to build CreateOrganizationParameters |
OrganizationServiceDeskUpdateParameters.Builder |
newOrganizationServiceDeskUpdateParametersBuilder()
Deprecated.
|
OrganizationsQuery.Builder |
newOrganizationsQueryBuilder()
Deprecated.
|
UsersInOrganizationQuery.Builder |
newUsersInOrganizationQuery()
Deprecated.
|
UsersOrganizationUpdateParameters.Builder |
newUsersOrganizationUpdateParametersBuilder()
Deprecated.
|
com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,com.atlassian.fugue.Unit> |
removeOrganizationFromServiceDesk(com.atlassian.jira.user.ApplicationUser user,
OrganizationServiceDeskUpdateParameters organizationServiceDeskUpdateParameters)
Deprecated.
Removes an organization from a servicedesk if the user is an agent of that servicedesk
|
com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,com.atlassian.fugue.Unit> |
removeUsersFromOrganization(com.atlassian.jira.user.ApplicationUser user,
UsersOrganizationUpdateParameters parameters)
Deprecated.
Removes users from a specified organization
|
com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,CustomerOrganization> getById(@Nonnull com.atlassian.jira.user.ApplicationUser user, @Nonnull Integer organizationId)
user
- the user who you want to checkorganizationId
- the ID of the organization you want retrieve.com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,CustomerOrganization> createOrganization(@Nonnull com.atlassian.jira.user.ApplicationUser user, @Nonnull CreateOrganizationParameters parameters)
user
- the user who you want to checkparameters
- parameters to create a new organizationCreateOrganizationParameters.Builder newCreateBuilder()
CreateOrganizationParameters.Builder
to build CreateOrganizationParameters
com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,com.atlassian.fugue.Unit> delete(@Nonnull com.atlassian.jira.user.ApplicationUser user, @Nonnull Integer organizationId)
user
- the user who you want to checkorganizationId
- the ID of the organization you want delete.com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,PagedResponse<com.atlassian.jira.user.ApplicationUser>> getUsersInOrganization(@Nonnull com.atlassian.jira.user.ApplicationUser user, UsersInOrganizationQuery query)
user
- the user who you want to checkquery
- the query containing the organization and the pageRequestUsersInOrganizationQuery.Builder newUsersInOrganizationQuery()
UsersInOrganizationQuery.Builder
to Build UsersInOrganizationQuery
com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,PagedResponse<CustomerOrganization>> getOrganizations(@Nonnull com.atlassian.jira.user.ApplicationUser user, @Nonnull OrganizationsQuery requestQuery)
user
- the user who performs a queryrequestQuery
- the query containing the pageRequestOrganizationsQuery.Builder newOrganizationsQueryBuilder()
OrganizationsQuery.Builder
to build OrganizationsQuery
com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,com.atlassian.fugue.Unit> addOrganizationToServiceDesk(@Nonnull com.atlassian.jira.user.ApplicationUser user, @Nonnull OrganizationServiceDeskUpdateParameters organizationServiceDeskUpdateParameters)
user
- the user adding the organizationorganizationServiceDeskUpdateParameters
- contains the servicedesk id and the organizationcom.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,com.atlassian.fugue.Unit> removeOrganizationFromServiceDesk(@Nonnull com.atlassian.jira.user.ApplicationUser user, @Nonnull OrganizationServiceDeskUpdateParameters organizationServiceDeskUpdateParameters)
user
- the user removing the organizationorganizationServiceDeskUpdateParameters
- contains the servicedesk id and the organizationOrganizationServiceDeskUpdateParameters.Builder newOrganizationServiceDeskUpdateParametersBuilder()
OrganizationServiceDeskUpdateParameters.Builder
to build OrganizationServiceDeskUpdateParameters parameterscom.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,com.atlassian.fugue.Unit> addUsersToOrganization(@Nonnull com.atlassian.jira.user.ApplicationUser executingUser, @Nonnull UsersOrganizationUpdateParameters parameters)
executingUser
- the user who you want to checkparameters
- the parameters containing the organization and users to addcom.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,com.atlassian.fugue.Unit> removeUsersFromOrganization(@Nonnull com.atlassian.jira.user.ApplicationUser user, @Nonnull UsersOrganizationUpdateParameters parameters)
user
- the user who you want to checkparameters
- parameters containing the users to remove from the given organizationUsersOrganizationUpdateParameters.Builder newUsersOrganizationUpdateParametersBuilder()
UsersOrganizationUpdateParameters.Builder
to Build UsersOrganizationUpdateParameters
Copyright © 2020 Atlassian. All rights reserved.