|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.engine.Helper
fr.cnes.sitools.common.model.ExtensionModel<ResourceParameter>
fr.cnes.sitools.plugins.resources.model.ResourceModel
public class ResourceModel
Base class for Parameterized resources model
Constructor Summary | |
---|---|
ResourceModel()
Constructor Store the class name |
Method Summary | |
---|---|
void |
addParam(ResourceParameter param)
Method to add a parameter to the ResourceModel. |
void |
completeAttachUrlWith(java.lang.String path)
Method to complete the initial default url attachment |
java.lang.String |
getApplicationClassName()
Gets the applicationClassName value |
ResourceBehaviorType |
getBehavior()
Gets the behavior value.It is use to tell the client interface behavior after calling the resource. |
DataSetSelectionType |
getDataSetSelection()
Gets the dataSetSelection value |
java.lang.String |
getImage()
Gets the image value |
ResourceParameter |
getParameterByName(java.lang.String name)
Return a parameter by its name or null if the parameter cannot be found |
java.lang.String |
getParent()
Gets the parent value |
java.lang.String |
getResourceClassName()
Gets the name of the class implementing the Resource |
Validator<ResourceModel> |
getValidator()
Get the Validator on a |
void |
initParametersForAdmin(org.restlet.Context context)
Override this method to add parameters when the Context is needed Those parameters will be seen by the administrator when configuring a ResourceModel. |
void |
setApplicationClassName(java.lang.String applicationClassName)
Sets the class name of the application to which the Resource can be attached The class name must be complete (with full package declaration) |
void |
setBehavior(ResourceBehaviorType behavior)
Sets the value of behavior |
void |
setDataSetSelection(DataSetSelectionType dataSetSelection)
Sets the value of dataSetSelection. |
void |
setImage(java.lang.String image)
Sets the value of image |
void |
setParent(java.lang.String parent)
Sets the value of parent |
void |
setResourceClassName(java.lang.String resourceClassName)
Sets the name of the class implementing the Resource |
Methods inherited from class fr.cnes.sitools.common.model.ExtensionModel |
---|
getClassAuthor, getClassName, getClassOwner, getClassVersion, getDescription, getDescriptionAction, getId, getName, getParametersMap, setClassAuthor, setClassName, setClassOwner, setClassVersion, setDescription, setDescriptionAction, setId, setName, setParametersMap |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResourceModel()
Method Detail |
---|
public void initParametersForAdmin(org.restlet.Context context)
context
- The Context contains some attributes : ContextAttributes.SETTINGS : The SitoolsSettings parent : the
parent application id appClassName : the parent application class namepublic final void addParam(ResourceParameter param)
param
- the parameter to addpublic final ResourceParameter getParameterByName(java.lang.String name)
name
- the parameter name
public final void setParent(java.lang.String parent)
parent
- the parent to setpublic final java.lang.String getParent()
public final void setResourceClassName(java.lang.String resourceClassName)
resourceClassName
- the resourceClassName to setpublic final java.lang.String getResourceClassName()
public Validator<ResourceModel> getValidator()
Validable
getValidator
in interface Validable
public final void completeAttachUrlWith(java.lang.String path)
path
- the path for completionpublic void setApplicationClassName(java.lang.String applicationClassName)
applicationClassName
- the applicationClassName to setpublic java.lang.String getApplicationClassName()
public void setDataSetSelection(DataSetSelectionType dataSetSelection)
It is only used for datasets resources and in the client interface. Only SINGLE, MULTIPLE, ALL resources are displayed in the client interface
dataSetSelection
- the dataSetSelection to setpublic DataSetSelectionType getDataSetSelection()
public ResourceBehaviorType getBehavior()
public void setBehavior(ResourceBehaviorType behavior)
behavior
- the behavior to setpublic java.lang.String getImage()
public void setImage(java.lang.String image)
image
- the image to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |