org.gcube.application.framework.contentmanagement.content
Interface DigitalObjectInfoI

All Known Implementing Classes:
DigitalObject

public interface DigitalObjectInfoI

Author:
Valia Tsagkalidou

Method Summary
 List<String> getAvailableSchemata()
           
 String getCollectionName()
           
 String getDocumentURI()
           
 String getHTMLrepresentation()
           
 long getLength()
           
 String getMetadata(String schema)
           
 String getMetaRecord()
           
 String getMimeType()
           
 String getName()
           
 InputStream getObject(String elementType)
           
 InputStream getObjectByName(String name, String collectionName)
           
 byte[] getThumbnail(int width, int height, String options)
           
 void setCollectionName(String collectionName)
           
 void setDocumentURI(String dURI)
           
 void setHTMLrepresentation(String html)
           
 void setMetaRecord(String mr)
           
 void updateContent(org.gcube.application.framework.core.session.ASLSession session, byte[] rawContent)
           
 

Method Detail

getObject

InputStream getObject(String elementType)
Returns:
a Stream containing the object

getObjectByName

InputStream getObjectByName(String name,
                            String collectionName)
Parameters:
name - the name of the Object
collectionName - the name of the collection
Returns:
a Stream containing the object

getAvailableSchemata

List<String> getAvailableSchemata()
Returns:
the available metadata schemata of the corresponding object

getMetadata

String getMetadata(String schema)
Returns:
the metadata

getMimeType

String getMimeType()
Returns:
the object's Mime type

getLength

long getLength()
Returns:
the object's length

getName

String getName()
Returns:
the object's name

getHTMLrepresentation

String getHTMLrepresentation()
Returns:

setHTMLrepresentation

void setHTMLrepresentation(String html)
Parameters:
html -

updateContent

void updateContent(org.gcube.application.framework.core.session.ASLSession session,
                   byte[] rawContent)
Parameters:
session -
rawContent -

getThumbnail

byte[] getThumbnail(int width,
                    int height,
                    String options)
Parameters:
width -
height -
options -
Returns:

setCollectionName

void setCollectionName(String collectionName)
Parameters:
collectionName -

getCollectionName

String getCollectionName()
Returns:

getMetaRecord

String getMetaRecord()
Returns:

setMetaRecord

void setMetaRecord(String mr)
Parameters:
mr - the metadata content of the metadata record

getDocumentURI

String getDocumentURI()

setDocumentURI

void setDocumentURI(String dURI)


Copyright © 2013. All Rights Reserved.