org.gcube.execution.textExtraction.job.utils
Class JobCollection

java.lang.Object
  extended by org.gcube.execution.textExtraction.job.utils.JobCollection

public class JobCollection
extends java.lang.Object


Constructor Summary
JobCollection(java.lang.String scope, java.lang.String collectionId)
           
 
Method Summary
 JobDigitalObject addMember(java.io.InputStream content, java.lang.String fileName, java.lang.String mimeType)
           
static java.lang.String createCollection(java.lang.String collectionName, java.lang.String scope, java.lang.Boolean userCollection)
           
static boolean deleteCollection(java.lang.String collectionID, java.lang.String scope)
           
static java.lang.String getCollectionByName(java.lang.String name, java.lang.String scope)
          This method retrieves the ID of a collection with a specific name
 java.util.ArrayList<DocumentInfos> getDocumentInfos(java.lang.String scope)
           
 java.lang.String[] getMemberIDs(java.lang.String collectionId, java.lang.String scope)
           
 void removeMember(java.lang.String oid, java.lang.String collectionId, java.lang.String scope)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JobCollection

public JobCollection(java.lang.String scope,
                     java.lang.String collectionId)
Method Detail

getCollectionByName

public static java.lang.String getCollectionByName(java.lang.String name,
                                                   java.lang.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 java.lang.String createCollection(java.lang.String collectionName,
                                                java.lang.String scope,
                                                java.lang.Boolean userCollection)

deleteCollection

public static boolean deleteCollection(java.lang.String collectionID,
                                       java.lang.String scope)

addMember

public JobDigitalObject addMember(java.io.InputStream content,
                                  java.lang.String fileName,
                                  java.lang.String mimeType)

removeMember

public void removeMember(java.lang.String oid,
                         java.lang.String collectionId,
                         java.lang.String scope)

getMemberIDs

public java.lang.String[] getMemberIDs(java.lang.String collectionId,
                                       java.lang.String scope)

getDocumentInfos

public java.util.ArrayList<DocumentInfos> getDocumentInfos(java.lang.String scope)
                                                    throws ContentReaderCreationException,
                                                           DocumentRetrievalException
Throws:
ContentReaderCreationException
DocumentRetrievalException