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) voidaddOrganizationToServiceDesk(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) booleanisUserInOrganization(String userKey, String organizationId) setRequestType(long issueId, Integer requestTypeId) booleanvalidateUserAccessToRequestType(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:
getOrganizationin interfaceServiceDeskClient
-
getUsersForOrganization
- Specified by:
getUsersForOrganizationin interfaceServiceDeskClient
-
isUserInOrganization
- Specified by:
isUserInOrganizationin interfaceServiceDeskClient
-
getServiceDesk
- Specified by:
getServiceDeskin interfaceServiceDeskClient
-
getOrganizations
public io.atlassian.fugue.Either<ErrorCollection,List<ServiceDeskOrganizationBean>> getOrganizations()- Specified by:
getOrganizationsin interfaceServiceDeskClient
-
createOrganization
public io.atlassian.fugue.Either<ErrorCollection,ServiceDeskOrganizationBean> createOrganization(String name) - Specified by:
createOrganizationin interfaceServiceDeskClient
-
getServiceDeskForProject
- Specified by:
getServiceDeskForProjectin interfaceServiceDeskClient
-
createServiceDeskRequest
public io.atlassian.fugue.Either<ErrorCollection,ServiceDeskRequest> createServiceDeskRequest(CreateServiceDeskRequest createServiceDeskRequest) - Specified by:
createServiceDeskRequestin interfaceServiceDeskClient
-
addOrganizationToServiceDesk
- Specified by:
addOrganizationToServiceDeskin interfaceServiceDeskClient
-
getRequestFields
- Specified by:
getRequestFieldsin interfaceServiceDeskClient
-
setRequestType
- Specified by:
setRequestTypein interfaceServiceDeskClient
-
createCustomer
public io.atlassian.fugue.Either<ErrorCollection,UserBean> createCustomer(String email, String displayName) - Specified by:
createCustomerin interfaceServiceDeskClient
-
addCustomersToOrganization
- Specified by:
addCustomersToOrganizationin interfaceServiceDeskClient
-
addCustomersToServiceDesk
- Specified by:
addCustomersToServiceDeskin interfaceServiceDeskClient
-
validateUserAccessToRequestType
- Specified by:
validateUserAccessToRequestTypein interfaceServiceDeskClient
-
getProjectPractices
- Specified by:
getProjectPracticesin interfaceServiceDeskClient
-