org.exoplatform.wiki.mow.api
Interface Attachment

All Known Implementing Classes:
AttachmentImpl

public interface Attachment

Version:
$Revision$
Author:
Patrice Lamarque

Method Summary
 Calendar getCreatedDate()
          Date of the creation
 String getCreator()
          Creator of the last version of the attachment
 String getDownloadURL()
          URL to download the attachment
 HashMap<String,String[]> getPermission()
           
 String getText()
          Get the text representation of the content item
 String getTitle()
           
 Calendar getUpdatedDate()
          Date of last update of this attachment
 long getWeightInBytes()
          Get the weight of the attachment in bytes
 boolean hasPermission(PermissionType permissionType)
           
 void setPermission(HashMap<String,String[]> permissions)
           
 void setText(String text)
           
 void setTitle(String title)
           
 

Method Detail

getWeightInBytes

long getWeightInBytes()
Get the weight of the attachment in bytes

Returns:

getCreator

String getCreator()
Creator of the last version of the attachment

Returns:

getCreatedDate

Calendar getCreatedDate()
Date of the creation

Returns:

getUpdatedDate

Calendar getUpdatedDate()
Date of last update of this attachment

Returns:

getDownloadURL

String getDownloadURL()
URL to download the attachment

Returns:

getTitle

String getTitle()

setTitle

void setTitle(String title)

getText

String getText()
Get the text representation of the content item

Returns:

setText

void setText(String text)

setPermission

void setPermission(HashMap<String,String[]> permissions)
                   throws Exception
Throws:
Exception

getPermission

HashMap<String,String[]> getPermission()
                                       throws Exception
Throws:
Exception

hasPermission

boolean hasPermission(PermissionType permissionType)
                      throws Exception
Throws:
Exception


Copyright © 2013 eXo Platform SAS. All Rights Reserved.