|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectse.portfolio.scam.http.command.AbstractProcessModel
Adds properties to a resource with values deduced from the context. Theese properties is only added if the resource does not exist in the repository. The resource is identified by the request attribute "uri" and the model containing the model for the resource is contained in a ModelBean.
Constructor Summary | |
AbstractProcessModel()
|
Method Summary | |
abstract CommandResponse |
execute(HttpServletRequest request,
HttpServletResponse response)
Execute the command. |
void |
init(Map args)
Initialize the command with arguments. |
protected Model |
setCreatedDate(Resource resource,
Model model)
Set created date to today in a model for a resource. |
protected Model |
setModifiedDate(Resource resource,
Model model)
Set modified date for a resource, in a model, to today. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AbstractProcessModel()
Method Detail |
public abstract CommandResponse execute(HttpServletRequest request, HttpServletResponse response) throws HttpException
execute
in interface Command
request
- holds information from the client.response
- holds response information sent to the client.
HttpException
- thrown in case of an exception during execution
of the command.public void init(Map args)
init
in interface Command
args
- command arguments.protected Model setCreatedDate(Resource resource, Model model)
resource
- Associate the date to this reosurcemodel
- Set the date in this model
protected Model setModifiedDate(Resource resource, Model model)
resource
- associate the date to this resourcemodel
- set date in this model
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |