org.gcube.portlets.user.homelibrary.home.workspace.basket.items.gcube
Interface Document

All Superinterfaces:
BasketItem, InfoObject, WorkspaceAreaItem
All Known Subinterfaces:
ImageDocument, PDFDocument, UrlDocument

public interface Document
extends InfoObject

Author:
Federico De Faveri defaveri@isti.cnr.it

Method Summary
 java.util.List<DocumentAlternativeLink> getAlternatives()
          Return this document alternatives.
 java.util.Map<java.lang.String,java.lang.String> getAnnotation()
          The document associated annotations.
 java.lang.String getCollectionName()
          The document collection name.
 java.io.InputStream getData()
          The document data.
 java.util.Map<java.lang.String,DocumentMetadata> getMetadata()
          The document associated metatada.
 java.lang.String getMimeType()
          The document mime type.
 java.util.List<DocumentPartLink> getParts()
          Return this document parts.
 
Methods inherited from interface org.gcube.portlets.user.homelibrary.home.workspace.basket.items.gcube.InfoObject
getInfoObjectType, getOID
 
Methods inherited from interface org.gcube.portlets.user.homelibrary.home.workspace.basket.BasketItem
getBasketItemType, getLength, getParent
 
Methods inherited from interface org.gcube.portlets.user.homelibrary.home.workspace.WorkspaceAreaItem
cloneItem, getCapabilities, getChildren, getCreationTime, getDescription, getId, getLastAction, getLastModificationTime, getName, getOwner, getPath, getProperties, getType, isRoot, move, remove, removeChild, rename, setDescription
 

Method Detail

getMimeType

java.lang.String getMimeType()
The document mime type.

Returns:
the mime type.

getMetadata

java.util.Map<java.lang.String,DocumentMetadata> getMetadata()
The document associated metatada.

Returns:
the metadata.

getAnnotation

java.util.Map<java.lang.String,java.lang.String> getAnnotation()
The document associated annotations.

Returns:
the annotations.

getAlternatives

java.util.List<DocumentAlternativeLink> getAlternatives()
Return this document alternatives.

Returns:
the alternatives.

getParts

java.util.List<DocumentPartLink> getParts()
Return this document parts.

Returns:
the document parts.

getCollectionName

java.lang.String getCollectionName()
The document collection name.

Returns:
the collection name.

getData

java.io.InputStream getData()
                            throws InternalErrorException
The document data.

Returns:
the data.
Throws:
InternalErrorException - if an internal error occurs.