org.gcube.application.framework.contentmanagement.content.impl
Class DigitalObject

java.lang.Object
  extended by org.gcube.application.framework.contentmanagement.content.impl.DigitalObject

public class DigitalObject
extends Object


Constructor Summary
DigitalObject(org.gcube.application.framework.core.session.ASLSession session, String objectURI)
           
DigitalObject(org.gcube.application.framework.core.session.ASLSession session, String objectURI, String colID)
           
 
Method Summary
static DigitalObject createNewDigitalObject(String colID, InputStream content, String objectID, org.gcube.application.framework.core.session.ASLSession session, String mimeType)
           
 String getCollectionID()
           
 String getCollectionName()
           
 String getContent()
           
static String getContent(String objectID, String scope)
           
 String getHTMLrepresentation()
           
 long getLength()
           
 String getMimeType()
           
 InputStream getObject()
           
 String getObjectId()
           
 String getRank()
           
 String getTitle()
           
 DigitalObjectType getType()
           
 String getURI()
           
 void setContent(String content)
           
 void setHTMLRepresentation(String representation)
           
 void setMimeType(String mimeType)
           
 void setRank(String rank)
           
 void setTitle(String title)
           
 void setType(String type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DigitalObject

public DigitalObject(org.gcube.application.framework.core.session.ASLSession session,
                     String objectURI,
                     String colID)
Parameters:
session - the ASL session to be used for retrieving information needed
objectURI - the object URI
colID - the collection identifier

DigitalObject

public DigitalObject(org.gcube.application.framework.core.session.ASLSession session,
                     String objectURI)
Parameters:
session - the ASL session to be used for retrieving information needed
objectURI - the object URI
colID - the collection identifier
Method Detail

getURI

public String getURI()

getObjectId

public String getObjectId()

getCollectionName

public String getCollectionName()

getCollectionID

public String getCollectionID()

setTitle

public void setTitle(String title)

getTitle

public String getTitle()

getMimeType

public String getMimeType()

setMimeType

public void setMimeType(String mimeType)

getHTMLrepresentation

public String getHTMLrepresentation()

setHTMLRepresentation

public void setHTMLRepresentation(String representation)

getLength

public long getLength()

setRank

public void setRank(String rank)

getRank

public String getRank()

getContent

public String getContent()
                  throws IllegalStateException,
                         IOException
Throws:
IllegalStateException
IOException

setContent

public void setContent(String content)

getType

public DigitalObjectType getType()

setType

public void setType(String type)

createNewDigitalObject

public static DigitalObject createNewDigitalObject(String colID,
                                                   InputStream content,
                                                   String objectID,
                                                   org.gcube.application.framework.core.session.ASLSession session,
                                                   String mimeType)
                                            throws IOException
Throws:
IOException

getObject

public InputStream getObject()
                      throws URISyntaxException,
                             IOException
Throws:
URISyntaxException
IOException

getContent

public static String getContent(String objectID,
                                String scope)
                         throws URISyntaxException,
                                IOException
Throws:
URISyntaxException
IOException


Copyright © 2013. All Rights Reserved.