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 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
Copyright © 2003–2016 Atlassian. All rights reserved.