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 fileName, 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
 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
 

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,
                                         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 collection
colms: - 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.