|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gcube.contentmanagement.gcubedocumentlibrary.util.Collections
public class Collections
Field Summary | |
---|---|
static java.lang.String |
COMMON_NS
|
static java.lang.String |
PROVIDER_NS
|
Constructor Summary | |
---|---|
Collections()
|
Method Summary | |
---|---|
static java.util.List<Collection> |
find(Collection... collection)
Finds the CM collection in the current scope. |
static java.util.List<Collection> |
find(GCUBEScope scope,
Collection... collection)
Finds the CM collection in the specified scope. |
static java.util.List<Collection> |
findById(GCUBEScope scope,
java.lang.String id)
Finds the collection by id in a given scope. |
static java.util.List<Collection> |
findById(java.lang.String id)
Finds the collection by id in the current scope. |
static java.util.List<Collection> |
findByName(GCUBEScope scope,
java.lang.String name)
Finds the collection by name in a given scope. |
static java.util.List<Collection> |
findByName(java.lang.String name)
Finds the collection by name in the current scope. |
static int |
getCardinality(GCUBEScope scope,
java.lang.String collectionId)
Returns the collection cardinality. |
static int |
getCardinality(java.lang.String collectionId)
Returns the collection cardinality in the current scope. |
static java.util.List<Collection> |
list()
List all available collections in the current scope. |
static java.util.List<Collection> |
list(GCUBEScope scope)
List all available collections on the specified scope. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PROVIDER_NS
public static final java.lang.String COMMON_NS
Constructor Detail |
---|
public Collections()
Method Detail |
---|
public static java.util.List<Collection> findById(java.lang.String id) throws java.lang.Exception
id
- the collection id.
java.lang.Exception
- if an error occurs during the search.public static java.util.List<Collection> findById(GCUBEScope scope, java.lang.String id) throws java.lang.Exception
id
- the collection id.
java.lang.Exception
- if an error occurs during the search.public static java.util.List<Collection> findByName(java.lang.String name) throws java.lang.Exception
name
- the collection name.
java.lang.Exception
- if an error occurs during the search.public static java.util.List<Collection> findByName(GCUBEScope scope, java.lang.String name) throws java.lang.Exception
scope
- the scope.name
- the collection name.
java.lang.Exception
- if an error occurs during the search.public static java.util.List<Collection> list() throws java.lang.Exception
java.lang.Exception
- if an error occurs during the search.public static java.util.List<Collection> list(GCUBEScope scope) throws java.lang.Exception
scope
- the working scope.
java.lang.Exception
- if an error occurs during the search.public static java.util.List<Collection> find(Collection... collection) throws java.lang.Exception
scope
- the working scope.collection
- the optional collection stubs.
java.lang.Exception
- if an error occurs during the collection finding.public static java.util.List<Collection> find(GCUBEScope scope, Collection... collection) throws java.lang.Exception
scope
- the working scope.collection
- the optional collection stubs.
java.lang.Exception
- if an error occurs during the collection finding.public static int getCardinality(java.lang.String collectionId) throws java.lang.Exception
collectionId
- the collection id.
java.lang.Exception
- if an error occurs retrieving the collection profile.public static int getCardinality(GCUBEScope scope, java.lang.String collectionId) throws java.lang.Exception
scope
- the collection scope.collectionId
- the collection id.
java.lang.Exception
- if an error occurs retrieving the collection profile.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |