|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gcube.resourcemanagement.support.server.managers.resources.AbstractResourceManager
org.gcube.resourcemanagement.support.server.managers.resources.GenericResourceManager
public class GenericResourceManager
Constructor Summary | |
---|---|
GenericResourceManager()
Deprecated. discouraged use. With no ID some operations cannot be accessed. |
|
GenericResourceManager(String id)
|
|
GenericResourceManager(String id,
String name)
|
|
GenericResourceManager(String id,
String name,
String subtype)
|
Method Summary | |
---|---|
static void |
appendXmlFragment(org.gcube.common.resources.gcore.GenericResource.Profile profile,
String fragment)
append a well formed xml string to the body |
protected org.gcube.common.resources.gcore.Resource |
buildResource(String xmlRepresentation)
Given the XML profile representation of a gcube resource, its GCUBEResource is built. |
static String |
create(String ID,
org.gcube.common.scope.impl.ScopeBean scope,
String name,
String description,
String body,
String subType)
Creates a Generic Resource and returns the ID given by the resource manager at creation phase. |
void |
update(String name,
String description,
String body,
String subType,
org.gcube.common.scope.impl.ScopeBean scope)
Updates the resource. |
Methods inherited from class org.gcube.resourcemanagement.support.server.managers.resources.AbstractResourceManager |
---|
addToExistingScope, copyFromToVO, delete, forceDelete, getID, getName, getRegistryPublisher, getReportResourceManager, getResource, getResourceManager, getSubType, getType, getXMLDescription, removeFromScope, setID, validateScopes |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GenericResourceManager() throws ResourceParameterException, ResourceAccessException
ResourceParameterException
ResourceAccessException
public GenericResourceManager(String id) throws ResourceParameterException, ResourceAccessException
ResourceParameterException
ResourceAccessException
public GenericResourceManager(String id, String name) throws ResourceParameterException, ResourceAccessException
id
- name
- type
-
ResourceParameterException
ResourceAccessException
public GenericResourceManager(String id, String name, String subtype) throws ResourceParameterException, ResourceAccessException
id
- name
- type
- subtype
-
ResourceParameterException
ResourceAccessException
Method Detail |
---|
public final void update(String name, String description, String body, String subType, org.gcube.common.scope.impl.ScopeBean scope) throws Exception
name
- (Mandatory) the name to assign to the resourcedescription
- (optional) if null it will not be changedbody
- (optional) if null it will not be changedsubType
- (optional) if null it will not be changedscope
- (optional) if null it will not be changed
AbstractResourceException
ParserConfigurationException
SAXException
IOException
Exception
public static final String create(String ID, org.gcube.common.scope.impl.ScopeBean scope, String name, String description, String body, String subType) throws Exception
Exception
protected final org.gcube.common.resources.gcore.Resource buildResource(String xmlRepresentation) throws AbstractResourceException
AbstractResourceManager
buildResource
in class AbstractResourceManager
AbstractResourceException
public static void appendXmlFragment(org.gcube.common.resources.gcore.GenericResource.Profile profile, String fragment) throws IOException, ParserConfigurationException
parent
- fragment
-
IOException
SAXException
ParserConfigurationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |