public class GenericResourceManager extends AbstractResourceManager
| Constructor and Description |
|---|
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) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
addToExistingScope, copyFromToVO, delete, forceDelete, getID, getName, getRegistryPublisher, getReportResourceManager, getResource, getResourceManager, getSubType, getType, getXMLDescription, removeFromScope, setID, validateScopespublic GenericResourceManager()
throws ResourceParameterException,
ResourceAccessException
public GenericResourceManager(String id) throws ResourceParameterException, ResourceAccessException
public GenericResourceManager(String id, String name) throws ResourceParameterException, ResourceAccessException
id - name - type - ResourceParameterExceptionResourceAccessExceptionpublic GenericResourceManager(String id, String name, String subtype) throws ResourceParameterException, ResourceAccessException
id - name - type - subtype - ResourceParameterExceptionResourceAccessExceptionpublic 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 changedAbstractResourceExceptionParserConfigurationExceptionSAXExceptionIOExceptionExceptionpublic static final String create(String ID, org.gcube.common.scope.impl.ScopeBean scope, String name, String description, String body, String subType) throws Exception
Exceptionprotected final org.gcube.common.resources.gcore.Resource buildResource(String xmlRepresentation) throws AbstractResourceException
AbstractResourceManagerbuildResource in class AbstractResourceManagerAbstractResourceExceptionpublic static void appendXmlFragment(org.gcube.common.resources.gcore.GenericResource.Profile profile,
String fragment)
throws IOException,
ParserConfigurationException
parent - fragment - IOExceptionSAXExceptionParserConfigurationExceptionCopyright © 2018. All Rights Reserved.