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)
|
|
Method Summary |
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)
|
| 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 objectID,
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)
getCollectionName
public static String getCollectionName(String collectionID)
getCollectionNameByID
public static String getCollectionNameByID(String id)
throws gr.uoa.di.madgik.rr.ResourceRegistryException
- Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException
getCollectionName
public static String getCollectionName(String collectionID,
String session)
Copyright © 2013. All Rights Reserved.