public class ResourceType extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
RESOURCE_TYPES
xmldb collection where resource types are stored.
|
| Constructor and Description |
|---|
ResourceType(String resourceType,
eu.dnetlib.enabling.is.store.rmi.ISStoreService store,
String basedir)
instanciate an already registered resource type, fetching it from the store.
|
ResourceType(String resourceType,
String resourceSchema,
String basedir)
construct a resource type.
|
| Modifier and Type | Method and Description |
|---|---|
void |
deleteAndNotify(eu.dnetlib.enabling.is.store.rmi.ISStoreService store,
eu.dnetlib.enabling.is.sn.rmi.ISSNService issn)
it says "delete and notify" but it only deletes the schema from the filesystem and from the store.
|
File |
getFileSchema() |
String |
getResourceSchema() |
String |
getResourceType() |
void |
setFileSchema(File fileSchema) |
void |
setResourceSchema(String resourceSchema) |
void |
setResourceType(String resourceType) |
void |
store(eu.dnetlib.enabling.is.store.rmi.ISStoreService store)
stores the schema on the xmldb.
|
void |
update(eu.dnetlib.enabling.is.store.rmi.ISStoreService store)
updates the in memory resource instance from the store.
|
public static final String RESOURCE_TYPES
public ResourceType(String resourceType, eu.dnetlib.enabling.is.store.rmi.ISStoreService store, String basedir) throws eu.dnetlib.enabling.is.store.rmi.ISStoreException
resourceType - resourceType namestore - store service where the type is storedbasedir - base dir where a local copy is held (why?)eu.dnetlib.enabling.is.store.rmi.ISStoreException - happenspublic ResourceType(String resourceType, String resourceSchema, String basedir) throws eu.dnetlib.enabling.is.store.rmi.ISStoreException
resourceType - resourceType nameresourceSchema - resourceSchema xsd bodybasedir - base directory of some local copy (?)eu.dnetlib.enabling.is.store.rmi.ISStoreException - happenspublic void store(eu.dnetlib.enabling.is.store.rmi.ISStoreService store)
throws eu.dnetlib.enabling.is.store.rmi.ISStoreException
store - store serviceeu.dnetlib.enabling.is.store.rmi.ISStoreException - happenspublic void update(eu.dnetlib.enabling.is.store.rmi.ISStoreService store)
throws eu.dnetlib.enabling.is.store.rmi.ISStoreException
store - store serviceeu.dnetlib.enabling.is.store.rmi.ISStoreException - happenspublic void deleteAndNotify(eu.dnetlib.enabling.is.store.rmi.ISStoreService store,
eu.dnetlib.enabling.is.sn.rmi.ISSNService issn)
throws eu.dnetlib.enabling.is.store.rmi.ISStoreException
store - store serviceissn - ISSN serviceeu.dnetlib.enabling.is.store.rmi.ISStoreException - happenspublic String getResourceType()
public void setResourceType(String resourceType)
public String getResourceSchema()
public void setResourceSchema(String resourceSchema)
public File getFileSchema()
public void setFileSchema(File fileSchema)
Copyright © 2017. All rights reserved.