2008-04-22 14:11:53 +02:00
|
|
|
package org.gcube.vremanagement.vremodeler.impl;
|
|
|
|
|
2008-04-22 15:04:13 +02:00
|
|
|
import org.gcube.common.core.state.GCUBEWSResource;
|
|
|
|
import org.globus.wsrf.ResourceException;
|
|
|
|
|
|
|
|
public class ModelerResource extends GCUBEWSResource {
|
2008-04-22 16:54:47 +02:00
|
|
|
|
|
|
|
protected static final String RP_ID = "Id";
|
|
|
|
protected static String[] RPNames = { RP_ID};
|
|
|
|
|
2008-04-22 15:04:13 +02:00
|
|
|
@Override
|
|
|
|
protected void initialise(Object... arg0) throws ResourceException {
|
|
|
|
|
|
|
|
}
|
2008-04-22 14:11:53 +02:00
|
|
|
|
2008-04-22 16:54:47 +02:00
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* {@inheritDoc}
|
|
|
|
*/
|
|
|
|
public String[] getPropertyNames() {
|
|
|
|
return RPNames;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns the id.
|
|
|
|
*
|
|
|
|
* @return the id.
|
|
|
|
*/
|
|
|
|
public String getId() throws ResourceException {
|
|
|
|
return (String) this.getResourcePropertySet().get(RP_ID).get(0);
|
|
|
|
}
|
|
|
|
|
|
|
|
protected synchronized void setId(String id) throws Exception {
|
|
|
|
this.getResourcePropertySet().get(RP_ID).clear();
|
|
|
|
this.getResourcePropertySet().get(RP_ID).add(id);
|
|
|
|
}
|
2008-04-22 14:11:53 +02:00
|
|
|
}
|