org.gcube.application.framework.contentmanagement.content.impl
Class Collection
java.lang.Object
org.gcube.application.framework.contentmanagement.content.impl.Collection
public class Collection
- extends Object
|
Constructor Summary |
Collection(org.gcube.application.framework.core.session.ASLSession ses,
String collectionId)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
session
protected org.gcube.application.framework.core.session.ASLSession session
- the D4Science session
colID
protected String colID
cmsId
protected static AtomicInteger cmsId
colMSId
protected static AtomicInteger colMSId
Collection
public Collection(org.gcube.application.framework.core.session.ASLSession ses,
String collectionId)
getCollectionByName
public static String getCollectionByName(String name,
org.gcube.application.framework.core.session.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:
org.gcube.common.core.faults.GCUBEFault - an error occurred
createCollection
public static String createCollection(String collectionName,
org.gcube.application.framework.core.session.ASLSession ses,
Boolean userCollection)
deleteCollection
public static boolean deleteCollection(String collectionID,
org.gcube.application.framework.core.session.ASLSession ses)
addMember
public DigitalObject addMember(InputStream content,
String fileName,
String mimeType)
removeMember
public void removeMember(String oid,
String collectionId,
org.gcube.application.framework.core.session.ASLSession ses)
getMemberIDs
public String[] getMemberIDs(String collectionId,
org.gcube.application.framework.core.session.ASLSession ses)
getDocumentInfos
public ArrayList<DocumentInfos> getDocumentInfos(org.gcube.application.framework.core.session.ASLSession session)
throws ContentReaderCreationException,
DocumentRetrievalException
- Throws:
ContentReaderCreationException
DocumentRetrievalException
Copyright © 2013. All Rights Reserved.