org.gcube.contentmanagement.contentmanager.smsplugin.util
Class SMSUtil
java.lang.Object
org.gcube.contentmanagement.contentmanager.smsplugin.util.SMSUtil
public class SMSUtil
- extends java.lang.Object
- Author:
- Federico De Faveri defaveri@isti.cnr.it
Field Summary |
static int |
DEFAULT_SMS_DEEP
Default SMS navigation deep (get all documents and his sub-elements of level 1) |
static java.lang.String |
PLUGIN_NAME
The plugin name. |
Method Summary |
static java.util.List<CollectionReference> |
wrapCollection(GCUBEScope scope,
boolean broadcast,
java.lang.String collectionId,
java.lang.String collectionDescription,
boolean userCollection,
boolean read,
boolean write)
Wraps an existing collection from Storage Management Service. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PLUGIN_NAME
public static final java.lang.String PLUGIN_NAME
- The plugin name.
- See Also:
- Constant Field Values
DEFAULT_SMS_DEEP
public static final int DEFAULT_SMS_DEEP
- Default SMS navigation deep (get all documents and his sub-elements of level 1)
- See Also:
- Constant Field Values
SMSUtil
public SMSUtil()
wrapCollection
public static java.util.List<CollectionReference> wrapCollection(GCUBEScope scope,
boolean broadcast,
java.lang.String collectionId,
java.lang.String collectionDescription,
boolean userCollection,
boolean read,
boolean write)
throws java.lang.Exception
- Wraps an existing collection from Storage Management Service.
- Parameters:
scope
- the working scope.broadcast
- true
to propagate the request to others CM, false
to only wrap the collection on targeted CM.collectionId
- the collection id on SMS.collectionDescription
- the collection description.userCollection
- userCollection flag.read
- true
to make the collection readable, false
otherwise.write
- true
to make the collection writable, false
otherwise.
- Returns:
- the delegates EPR.
- Throws:
java.lang.Exception
- if an error occurs during the collection wrapping.