Class ResourceDescriptor
- java.lang.Object
-
- com.extjs.gxt.ui.client.data.BaseModelData
-
- org.gcube.resourcemanagement.support.shared.types.datamodel.ResourceDescriptor
-
- All Implemented Interfaces:
com.extjs.gxt.ui.client.data.ModelData,Serializable
public class ResourceDescriptor extends com.extjs.gxt.ui.client.data.BaseModelData implements Serializable
All the resources that want to access resource management operations must be described through this data type.- Author:
- Massimiliano Assante (ISTI-CNR), Daniele Strollo
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ResourceDescriptor()ResourceDescriptor(String type, String subtype, String id, String name)Creates a ResourceDescriptor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddProperty(String property, Object value)StringgetID()StringgetName()ObjectgetProperty(String property)StringgetSubtype()StringgetType()voidsetID(String id)voidsetName(String name)voidsetSubtype(String subtype)voidsetType(String type)StringtoString()
-
-
-
Constructor Detail
-
ResourceDescriptor
public ResourceDescriptor()
-
ResourceDescriptor
public ResourceDescriptor(String type, String subtype, String id, String name) throws InvalidParameterException
Creates a ResourceDescriptor- Parameters:
type- mandatorysubtype- can be nullID- the identifier of the resource (mandatory).name- the short name assigned to the resource (mandatory).- Throws:
InvalidParameterException
-
-
Method Detail
-
getType
public final String getType()
-
getSubtype
public final String getSubtype()
-
getID
public final String getID()
-
getName
public final String getName()
-
setType
public final void setType(String type)
-
setSubtype
public final void setSubtype(String subtype)
-
setID
public final void setID(String id)
-
setName
public final void setName(String name)
-
-