public class DigitalObject extends Object
| Constructor and Description |
|---|
DigitalObject(org.gcube.application.framework.core.session.ASLSession session,
String objectURI) |
DigitalObject(org.gcube.application.framework.core.session.ASLSession session,
String objectURI,
String colID) |
| Modifier and Type | Method and Description |
|---|---|
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) |
public DigitalObject(org.gcube.application.framework.core.session.ASLSession session,
String objectURI,
String colID)
session - the ASL session to be used for retrieving information neededobjectURI - the object URIcolID - the collection identifierpublic DigitalObject(org.gcube.application.framework.core.session.ASLSession session,
String objectURI)
session - the ASL session to be used for retrieving information neededobjectURI - the object URIcolID - the collection identifierpublic String getURI()
public String getObjectId()
public String getCollectionName()
public String getCollectionID()
public void setTitle(String title)
public String getTitle()
public String getMimeType()
public void setMimeType(String mimeType)
public String getHTMLrepresentation()
public void setHTMLRepresentation(String representation)
public long getLength()
public void setRank(String rank)
public String getRank()
public String getContent() throws IllegalStateException, IOException
IllegalStateExceptionIOExceptionpublic void setContent(String content)
public DigitalObjectType getType()
public void setType(String type)
public static DigitalObject createNewDigitalObject(String colID, InputStream content, String objectID, org.gcube.application.framework.core.session.ASLSession session, String mimeType) throws IOException
IOExceptionpublic InputStream getObject() throws URISyntaxException, IOException
URISyntaxExceptionIOExceptionpublic static String getContent(String objectID, String scope) throws URISyntaxException, IOException
URISyntaxExceptionIOExceptionCopyright © 2014. All Rights Reserved.