org.gcube.application.framework.contentmanagement.content.impl
Class DigitalObject
java.lang.Object
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)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 neededobjectURI - the object URIcolID - 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 neededobjectURI - the object URIcolID - the collection identifier
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.