|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.portlets.admin.irbootstrapperportlet.gwt.server.resourceManagement.ResourceManager
public class ResourceManager
| Constructor Summary | |
|---|---|
ResourceManager()
|
|
| Method Summary | ||
|---|---|---|
static String |
constructQueryExpressionForResource(Resource template)
Constructs the IS query to be sent to the ISClient, describing the given resource. |
|
static
|
generateExpressionForResourceTempate(T template,
boolean ignoreTemplateAttributes)
Creates a ResourceExpression object, which represents a query for resources matching
the given template resource. |
|
static org.gcube.common.core.resources.GCUBEGenericResource |
retrieveGenericResource(String resourceID,
org.gcube.common.core.scope.GCUBEScope scope)
Retrieves a specific generic resource from the IS and returns its payload as as string. |
|
static
|
retrieveResourcesFromIS(ResourceExpression<T> resExpression)
Retrieves all the resources in the given scope that match the given ResourceExpression. |
|
static
|
retrieveResourcesFromIS(T template,
boolean ignoreTemplateAttributes)
Retrieves all the resources in the given scope that match the defined attributes of the resource given as a template. |
|
static void |
updateGenericResource(org.gcube.common.core.resources.GCUBEGenericResource resource,
org.gcube.common.core.scope.GCUBEScope scope)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ResourceManager()
| Method Detail |
|---|
public static <T extends Resource> List<T> retrieveResourcesFromIS(T template,
boolean ignoreTemplateAttributes)
throws Exception
T - template - ignoreTemplateAttributes -
Exception
public static <T extends Resource> List<T> retrieveResourcesFromIS(ResourceExpression<T> resExpression)
throws Exception
ResourceExpression.
T - resExpression -
Exception
public static <T extends Resource> ResourceExpression<T> generateExpressionForResourceTempate(T template,
boolean ignoreTemplateAttributes)
throws Exception
ResourceExpression object, which represents a query for resources matching
the given template resource. Once you create such an object, you can use it to retrieve resources
through subsequent calls to retrieveResourcesFromIS(). It is highly recommended to use this
technique when the same template will be used more than once for resource retrieval, because
once the expression is generated, the retrieval will be a lot faster than using the form of
retrieveResourcesFromIS() that does not accept a ResourceExpression many times.
T - template - ignoreTemplateAttributes -
Exceptionpublic static String constructQueryExpressionForResource(Resource template)
template - the resource which to construct a query for
public static org.gcube.common.core.resources.GCUBEGenericResource retrieveGenericResource(String resourceID,
org.gcube.common.core.scope.GCUBEScope scope)
throws Exception
resourceID - the ID of the generic resource. If resourceID starts with '$',
then the name of the generic resource follows instead of its ID.
Exception
public static void updateGenericResource(org.gcube.common.core.resources.GCUBEGenericResource resource,
org.gcube.common.core.scope.GCUBEScope scope)
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||