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, validateScopes
public GenericResourceManager() throws ResourceParameterException, ResourceAccessException
public GenericResourceManager(String id) throws 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
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 changedAbstractResourceException
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
Copyright © 2016. All Rights Reserved.