public static interface AttachmentService.Validator
Modifier and Type | Method and Description |
---|---|
boolean |
canCreateAttachments(ContentId containerId)
Checks if the user is permitted to add attachments to the current version of the
given content
|
boolean |
canCreateAttachments(ContentId containerId,
ContentStatus status)
Checks if the user is permitted to add attachments to the given content
|
ValidationResult |
validateDelete(Content attachment)
Validate that an Attachment can be deleted, including permission checks.
|
ValidationResult validateDelete(Content attachment)
attachment
- the attachment to be deletedboolean canCreateAttachments(ContentId containerId) throws NotFoundException
containerId
- the id of the content to attach toNotFoundException
boolean canCreateAttachments(ContentId containerId, ContentStatus status) throws NotFoundException
containerId
- the id of the content to attach tostatus
- the status of the content, either current or draftNotFoundException
Copyright © 2003–2018 Atlassian. All rights reserved.