@Component public final class ShareServiceImpl extends Object implements ShareService
ShareService.ValidateShareIssueResult, ShareService.ValidateShareResult, ShareService.ValidateShareSearchRequestResult
Modifier and Type | Field and Description |
---|---|
static String |
NO_PERMISSION_TO_BROWSE_USERS |
static String |
NO_USERS_OR_EMAILS_PROVIDED |
Constructor and Description |
---|
ShareServiceImpl(I18nHelper i18nHelper,
PermissionManager permissionManager,
ShareIssueService shareIssueService,
ShareSearchRequestService shareSearchRequestService) |
Modifier and Type | Method and Description |
---|---|
void |
shareIssue(ShareService.ValidateShareIssueResult result)
Given a valid ValidateShareIssueResult this method will send an e-mail to the users and fire a
ShareIssueEvent |
void |
shareSearchRequest(ShareService.ValidateShareSearchRequestResult result)
Given a valid ValidateShareIssueResult this method will send an e-mail to the users and fire a
ShareJqlEvent or ShareSearchRequestEvent
depending on if a saved filter was passed to the validate method. |
ShareService.ValidateShareIssueResult |
validateShareIssue(ApplicationUser remoteUser,
ShareBean shareBean,
Issue issue)
Confirms that the shareBean param contains either usernames or e-mails and also validates that the user
performing this operation has the permission to view other users in this JIRA instance.
|
ShareService.ValidateShareSearchRequestResult |
validateShareSearchRequest(ApplicationUser remoteUser,
ShareBean shareBean,
SearchRequest searchRequest)
Confirms that the shareRequest param contains either usernames or e-mails and also validates that the user
performing this operation has the permission to view other users in this JIRA instance.
|
public static final String NO_USERS_OR_EMAILS_PROVIDED
public static final String NO_PERMISSION_TO_BROWSE_USERS
@Autowired public ShareServiceImpl(I18nHelper i18nHelper, PermissionManager permissionManager, ShareIssueService shareIssueService, ShareSearchRequestService shareSearchRequestService)
public ShareService.ValidateShareIssueResult validateShareIssue(ApplicationUser remoteUser, ShareBean shareBean, Issue issue)
ShareService
validateShareIssue
in interface ShareService
remoteUser
- The user performing the share operationshareBean
- Bean containing information about who to share withissue
- The issue being sharedpublic void shareIssue(ShareService.ValidateShareIssueResult result)
ShareService
ShareIssueEvent
shareIssue
in interface ShareService
result
- a valid validateShareIssueResult.public ShareService.ValidateShareSearchRequestResult validateShareSearchRequest(ApplicationUser remoteUser, ShareBean shareBean, SearchRequest searchRequest)
ShareService
validateShareSearchRequest
in interface ShareService
remoteUser
- The user performing the share operationshareBean
- Bean containing information about who to share withsearchRequest
- A saved filter being shared or null if a unsaved JQL search is being sharedpublic void shareSearchRequest(ShareService.ValidateShareSearchRequestResult result)
ShareService
ShareJqlEvent
or ShareSearchRequestEvent
depending on if a saved filter was passed to the validate method.shareSearchRequest
in interface ShareService
result
- a valid validateShareIssueResult.Copyright © 2002-2021 Atlassian. All Rights Reserved.