org.gcube.application.framework.contentmanagement.content.impl
Class Collection
java.lang.Object
org.gcube.application.framework.contentmanagement.content.impl.Collection
public class Collection
- extends java.lang.Object
Constructor Summary |
Collection(ASLSession ses,
java.lang.String collectionId)
|
Method Summary |
DigitalObject |
addMember(java.io.InputStream content,
java.lang.String fileName,
java.lang.String mimeType)
|
static java.lang.String |
createCollection(java.lang.String collectionName,
ASLSession ses,
java.lang.Boolean userCollection)
|
static boolean |
deleteCollection(java.lang.String collectionID,
ASLSession ses)
|
static java.lang.String |
getCollectionByName(java.lang.String name,
ASLSession ses)
This method retrieves the ID of a collection with a specific name |
java.util.ArrayList<DocumentInfos> |
getDocumentInfos(ASLSession session)
|
java.lang.String[] |
getMemberIDs(java.lang.String collectionId,
ASLSession ses)
|
void |
removeMember(java.lang.String oid,
java.lang.String collectionId,
ASLSession ses)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Collection
public Collection(ASLSession ses,
java.lang.String collectionId)
getCollectionByName
public static java.lang.String getCollectionByName(java.lang.String name,
ASLSession ses)
- This method retrieves the ID of a collection with a specific name
- Parameters:
name:
- the name of the collectioncolms:
- the port type of the collection management service
- Throws:
GCUBEFault
- an error occurred
createCollection
public static java.lang.String createCollection(java.lang.String collectionName,
ASLSession ses,
java.lang.Boolean userCollection)
deleteCollection
public static boolean deleteCollection(java.lang.String collectionID,
ASLSession ses)
addMember
public DigitalObject addMember(java.io.InputStream content,
java.lang.String fileName,
java.lang.String mimeType)
removeMember
public void removeMember(java.lang.String oid,
java.lang.String collectionId,
ASLSession ses)
getMemberIDs
public java.lang.String[] getMemberIDs(java.lang.String collectionId,
ASLSession ses)
getDocumentInfos
public java.util.ArrayList<DocumentInfos> getDocumentInfos(ASLSession session)
throws ContentReaderCreationException,
DocumentRetrievalException
- Throws:
ContentReaderCreationException
DocumentRetrievalException