org.gcube.application.framework.contentmanagement.content.impl
Class Collection

java.lang.Object
  extended by org.gcube.application.framework.contentmanagement.content.impl.Collection

public class Collection
extends Object


Field Summary
protected static AtomicInteger cmsId
           
protected  String colID
           
protected static AtomicInteger colMSId
           
protected  org.gcube.application.framework.core.session.ASLSession session
          the D4Science session
 
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, String scope)
          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(String scope)
           
 String[] getMemberIDs(String collectionId, String scope)
           
 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
 

Field Detail

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
Constructor Detail

Collection

public Collection(org.gcube.application.framework.core.session.ASLSession ses,
                  String collectionId)
Method Detail

getCollectionByName

public static String getCollectionByName(String name,
                                         String scope)
This method retrieves the ID of a collection with a specific name

Parameters:
name: - the name of the collection
colms: - the port type of the collection management service
Throws:
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,
                             String scope)

getDocumentInfos

public ArrayList<DocumentInfos> getDocumentInfos(String scope)

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.