Package com.codebarrel.jira.servicedesk
Class NativeServiceDeskClient
java.lang.Object
com.codebarrel.jira.servicedesk.NativeServiceDeskClient
- All Implemented Interfaces:
ServiceDeskClient
-
Constructor Summary
ConstructorsConstructorDescriptionNativeServiceDeskClient
(ApplicationUser actor, IssueService issueService, ProjectService projectService, UserManager jiraUserManager, UserService userService, RequestTypeFieldTransformer requestTypeFieldTransformer, UserBeanTransformer userBeanTransformer, OrganizationServiceCompatibility organizationService, ServiceDeskServiceCompatibility serviceDeskService, CustomerRequestServiceCompatibility customerRequestService, RequestTypeServiceCompatibility requestTypeService, RequestTypeFieldServiceCompatibility requestTypeFieldService, CustomerServiceCompatibility customerService) -
Method Summary
Modifier and TypeMethodDescriptionaddCustomersToOrganization
(String organizationId, UserBean... users) addCustomersToServiceDesk
(String serviceDeskId, UserBean... users) void
addOrganizationToServiceDesk
(String serviceDeskId, String organizationId) io.atlassian.fugue.Either
<ErrorCollection, UserBean> createCustomer
(String email, String displayName) io.atlassian.fugue.Either
<ErrorCollection, ServiceDeskOrganizationBean> createOrganization
(String name) io.atlassian.fugue.Either
<ErrorCollection, ServiceDeskRequest> createServiceDeskRequest
(CreateServiceDeskRequest createServiceDeskRequest) getOrganization
(String organizationId) io.atlassian.fugue.Either
<ErrorCollection, List<ServiceDeskOrganizationBean>> getProjectPractices
(String projectId) getRequestFields
(RequestContext requestContext) getServiceDesk
(String serviceDeskId) getServiceDeskForProject
(String projectId) getUsersForOrganization
(String orgId, int start, int limit) boolean
isUserInOrganization
(String userKey, String organizationId) setRequestType
(long issueId, Integer requestTypeId) boolean
validateUserAccessToRequestType
(String accountId, String requestTypeId)
-
Constructor Details
-
NativeServiceDeskClient
public NativeServiceDeskClient(ApplicationUser actor, IssueService issueService, ProjectService projectService, UserManager jiraUserManager, UserService userService, RequestTypeFieldTransformer requestTypeFieldTransformer, UserBeanTransformer userBeanTransformer, OrganizationServiceCompatibility organizationService, ServiceDeskServiceCompatibility serviceDeskService, CustomerRequestServiceCompatibility customerRequestService, RequestTypeServiceCompatibility requestTypeService, RequestTypeFieldServiceCompatibility requestTypeFieldService, CustomerServiceCompatibility customerService)
-
-
Method Details
-
getOrganization
- Specified by:
getOrganization
in interfaceServiceDeskClient
-
getUsersForOrganization
- Specified by:
getUsersForOrganization
in interfaceServiceDeskClient
-
isUserInOrganization
- Specified by:
isUserInOrganization
in interfaceServiceDeskClient
-
getServiceDesk
- Specified by:
getServiceDesk
in interfaceServiceDeskClient
-
getOrganizations
public io.atlassian.fugue.Either<ErrorCollection,List<ServiceDeskOrganizationBean>> getOrganizations()- Specified by:
getOrganizations
in interfaceServiceDeskClient
-
createOrganization
public io.atlassian.fugue.Either<ErrorCollection,ServiceDeskOrganizationBean> createOrganization(String name) - Specified by:
createOrganization
in interfaceServiceDeskClient
-
getServiceDeskForProject
- Specified by:
getServiceDeskForProject
in interfaceServiceDeskClient
-
createServiceDeskRequest
public io.atlassian.fugue.Either<ErrorCollection,ServiceDeskRequest> createServiceDeskRequest(CreateServiceDeskRequest createServiceDeskRequest) - Specified by:
createServiceDeskRequest
in interfaceServiceDeskClient
-
addOrganizationToServiceDesk
- Specified by:
addOrganizationToServiceDesk
in interfaceServiceDeskClient
-
getRequestFields
- Specified by:
getRequestFields
in interfaceServiceDeskClient
-
setRequestType
- Specified by:
setRequestType
in interfaceServiceDeskClient
-
createCustomer
public io.atlassian.fugue.Either<ErrorCollection,UserBean> createCustomer(String email, String displayName) - Specified by:
createCustomer
in interfaceServiceDeskClient
-
addCustomersToOrganization
- Specified by:
addCustomersToOrganization
in interfaceServiceDeskClient
-
addCustomersToServiceDesk
- Specified by:
addCustomersToServiceDesk
in interfaceServiceDeskClient
-
validateUserAccessToRequestType
- Specified by:
validateUserAccessToRequestType
in interfaceServiceDeskClient
-
getProjectPractices
- Specified by:
getProjectPractices
in interfaceServiceDeskClient
-