public class WatchServiceImpl.ValidatorImpl extends Object implements WatchService.Validator
| Constructor and Description |
|---|
ValidatorImpl() |
| Modifier and Type | Method and Description |
|---|---|
ValidationResult |
validateContentExists(ContentId contentId)
Validate that a Content exists.
|
ValidationResult |
validateLabelExists(String labelName)
Validate that a Label exists.
|
ValidationResult |
validateSpaceExists(String spaceKey)
Validate that a Space exists.
|
ValidationResult |
validateWatchContent(com.atlassian.sal.api.user.UserKey userKey,
ContentId contentId)
Validate that the user can watch a Content.
|
ValidationResult |
validateWatchLabel(com.atlassian.sal.api.user.UserKey userKey,
String labelName)
Validate that the user can watch a Label.
|
ValidationResult |
validateWatchSpace(com.atlassian.sal.api.user.UserKey userKey,
String spaceKey)
Validate that the user can see a Space.
|
public ValidationResult validateWatchSpace(com.atlassian.sal.api.user.UserKey userKey, String spaceKey)
WatchService.ValidatorvalidateWatchSpace in interface WatchService.ValidatoruserKey - the user to add or remove as a watcherspaceKey - the space to be watchedpublic ValidationResult validateWatchContent(com.atlassian.sal.api.user.UserKey userKey, ContentId contentId)
WatchService.ValidatorvalidateWatchContent in interface WatchService.ValidatoruserKey - the key of the user to add as a watchercontentId - the content to be watchedpublic ValidationResult validateWatchLabel(com.atlassian.sal.api.user.UserKey userKey, String labelName)
WatchService.ValidatorvalidateWatchLabel in interface WatchService.ValidatoruserKey - the key of the user to add as a watcherlabelName - the label to be watchedpublic ValidationResult validateSpaceExists(String spaceKey)
WatchService.ValidatorvalidateSpaceExists in interface WatchService.ValidatorspaceKey - the space to be checkedpublic ValidationResult validateContentExists(ContentId contentId)
WatchService.ValidatorvalidateContentExists in interface WatchService.ValidatorcontentId - the content to be checkedpublic ValidationResult validateLabelExists(String labelName)
WatchService.ValidatorvalidateLabelExists in interface WatchService.ValidatorlabelName - the label to be checkedCopyright © 2003–2017 Atlassian. All rights reserved.