public interface FileAttachable extends Identifiable
FileAttachable
item is an item that can have
a File
attached to it.Modifier and Type | Method and Description |
---|---|
File |
getFile()
Get the file that is attached to the item.
|
void |
setFile(File file)
Attach a file to the item.
|
getId, getType, getVersion
checkPermission, getPermissions, hasPermission
File getFile() throws PermissionDeniedException, BaseException
File
item, or null if no file is attachedPermissionDeniedException
- If the logged in user doesn't have
read permission for the fileBaseException
- If there is another errorvoid setFile(File file) throws PermissionDeniedException, BaseException
file
- The file to attach to the itemPermissionDeniedException
- If the logged in user doesn't
have use permission for the file or write permission for the
itemBaseException
- If there is another error