com.sap.netweaver.coll.wiki.api

Interface IWikiAttachment

All Superinterfaces:
IWikiObject

public interface IWikiAttachment
extends IWikiObject

Attachment to wiki page.


Method Summary
 String getContentType()
          Returns the content type of the attachment
 Date getCreationDate()
          Returns the creation date of the attachment
 InputStream getData()
          Returns the data of the attachment
 Date getModificationDate()
          Returns the modification date of the attachment
 String getName()
          Returns the name of the attachment.
 Map<String,String> getProperties()
          Returns the extended properties of the attachment
 long getSize()
          Returns the size of the attachment
 void refresh()
          Retrieves latest properties / content of the attachment
 
Methods inherited from interface com.sap.netweaver.coll.wiki.api.IWikiObject
getID
 

Method Detail

getName

String getName()
Returns the name of the attachment.

Returns:
name of attachment

getContentType

String getContentType()
Returns the content type of the attachment

Returns:
content type of attachment

getSize

long getSize()
Returns the size of the attachment

Returns:
size of attachment

getData

InputStream getData()
Returns the data of the attachment

Returns:
data of attachment

getCreationDate

Date getCreationDate()
Returns the creation date of the attachment

Returns:
the creation date

getModificationDate

Date getModificationDate()
Returns the modification date of the attachment

Returns:
the modification date

getProperties

Map<String,String> getProperties()
Returns the extended properties of the attachment

Returns:
map with extended properties

refresh

void refresh()
             throws com.sap.netweaver.coll.wiki.exception.WikiAttachmentNotFoundException,
                    com.sap.netweaver.coll.wiki.exception.WikiPageNotFoundException
Retrieves latest properties / content of the attachment

Throws:
com.sap.netweaver.coll.wiki.exception.WikiAttachmentNotFoundException
com.sap.netweaver.coll.wiki.exception.WikiPageNotFoundException
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[com.sap] KMC-WIKI [com.sap] com.sap.netweaver.coll.wiki.api api BC-COM-WIK


Copyright 2014 SAP AG Complete Copyright Notice