com.atlassian.confluence.api.service.content
Interface AttachmentService.Validator

Enclosing interface:
AttachmentService

public static interface AttachmentService.Validator

Provides methods for validating the actions on the AttachmentService


Method Summary
 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.
 

Method Detail

validateDelete

ValidationResult validateDelete(Content attachment)
Validate that an Attachment can be deleted, including permission checks.

Parameters:
attachment - the attachment to be deleted
Returns:
an immutable Validation result.

canCreateAttachments

boolean canCreateAttachments(ContentId containerId)
                             throws NotFoundException
Checks if the user is permitted to add attachments to the given content

Parameters:
containerId - the id of the content to attach to
Returns:
true if the user can add attachments to the given content
Throws:
NotFoundException


Copyright © 2003-2014 Atlassian. All Rights Reserved.