public class Collection extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static AtomicInteger |
cmsId |
protected String |
colID |
protected static AtomicInteger |
colMSId |
protected org.gcube.application.framework.core.session.ASLSession |
session
the D4Science session
|
| Constructor and Description |
|---|
Collection(org.gcube.application.framework.core.session.ASLSession ses,
String collectionId) |
| Modifier and Type | Method and Description |
|---|---|
DigitalObject |
addMember(InputStream content,
String objectID,
String mimeType) |
static String |
createCollection(String collectionName,
org.gcube.application.framework.core.session.ASLSession ses,
Boolean userCollection) |
static boolean |
deleteCollection(String collectionID,
org.gcube.application.framework.core.session.ASLSession ses) |
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
|
static String |
getCollectionName(String collectionID) |
static String |
getCollectionName(String collectionID,
String session) |
static String |
getCollectionNameByID(String id) |
ArrayList<DocumentInfos> |
getDocumentInfos(org.gcube.application.framework.core.session.ASLSession session) |
String[] |
getMemberIDs(String collectionId,
org.gcube.application.framework.core.session.ASLSession ses) |
void |
removeMember(String oid,
String collectionId,
org.gcube.application.framework.core.session.ASLSession ses) |
protected org.gcube.application.framework.core.session.ASLSession session
protected String colID
protected static AtomicInteger cmsId
protected static AtomicInteger colMSId
public Collection(org.gcube.application.framework.core.session.ASLSession ses,
String collectionId)
public static String getCollectionByName(String name, org.gcube.application.framework.core.session.ASLSession ses)
name: - the name of the collectioncolms: - the port type of the collection management serviceorg.gcube.common.core.faults.GCUBEFault - an error occurredpublic static String createCollection(String collectionName, org.gcube.application.framework.core.session.ASLSession ses, Boolean userCollection)
public static boolean deleteCollection(String collectionID, org.gcube.application.framework.core.session.ASLSession ses)
public DigitalObject addMember(InputStream content, String objectID, String mimeType)
public void removeMember(String oid, String collectionId, org.gcube.application.framework.core.session.ASLSession ses)
public String[] getMemberIDs(String collectionId, org.gcube.application.framework.core.session.ASLSession ses)
public ArrayList<DocumentInfos> getDocumentInfos(org.gcube.application.framework.core.session.ASLSession session)
public static String getCollectionNameByID(String id) throws gr.uoa.di.madgik.rr.ResourceRegistryException
gr.uoa.di.madgik.rr.ResourceRegistryExceptionCopyright © 2013. All Rights Reserved.