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

All Superinterfaces:
FolderItem, InfoObject, WorkspaceItem
All Known Subinterfaces:
ImageDocument, PDFDocument, UrlDocument

public interface Document
extends InfoObject, FolderItem

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

Method Summary
 List<DocumentAlternativeLink> getAlternatives()
          Return this document alternatives.
 Map<String,String> getAnnotation()
          The document associated annotations.
 String getCollectionName()
          The document collection name.
 InputStream getData()
          The document data.
 Map<String,DocumentMetadata> getMetadata()
          The document associated metatada.
 String getMimeType()
          The document mime type.
 List<DocumentPartLink> getParts()
          Return this document parts.
 
Methods inherited from interface org.gcube.portlets.user.homelibrary.home.workspace.folder.items.gcube.InfoObject
getURI
 
Methods inherited from interface org.gcube.portlets.user.homelibrary.home.workspace.folder.FolderItem
getFolderItemType, getLength, getWorkflowData, getWorkflowId, getWorkflowStatus, setWorkflowData, setWorkflowId, setWorkflowStatus
 
Methods inherited from interface org.gcube.portlets.user.homelibrary.home.workspace.WorkspaceItem
cloneItem, getAccounting, getCapabilities, getChildren, getCreationTime, getDescription, getId, getLastAction, getLastModificationTime, getName, getOwner, getParent, getPath, getProperties, getType, isMarkedAsRead, isRoot, isShared, markAsRead, move, remove, removeChild, rename, setDescription
 

Method Detail

getMimeType

String getMimeType()
The document mime type.

Returns:
the mime type.

getMetadata

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

Returns:
the metadata.

getAnnotation

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

Returns:
the annotations.

getAlternatives

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

Returns:
the alternatives.

getParts

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

Returns:
the document parts.

getCollectionName

String getCollectionName()
The document collection name.

Returns:
the collection name.

getData

InputStream getData()
                    throws InternalErrorException
The document data.

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


Copyright © 2013. All Rights Reserved.