|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.liquidsite.core.web.FormHandler
org.liquidsite.app.admin.AdminFormHandler
org.liquidsite.app.admin.ContentAddFormHandler
The content add request handler. This class handles the add workflow for the content view.
| Constructor Summary | |
ContentAddFormHandler()
Creates a new content add request handler. |
|
| Method Summary | |
protected java.lang.String |
convertFileName(java.lang.String name)
Converts a file name to a valid file name. |
protected void |
display(Request request,
int step)
Displays a form for the specified workflow step. |
protected void |
displayDone(Request request)
Displays the workflow finished page. |
protected void |
displayError(Request request,
java.lang.String message)
Displays the workflow error page. |
protected void |
displayStep(Request request,
int step)
Displays a form for the specified workflow step. |
java.lang.String |
getFormPage()
Returns the form page for the workflow. |
java.lang.String |
getStartPage()
Returns the default start page for the workflow. |
protected int |
handle(Request request,
int step)
Handles a validated form for the specified workflow step. |
protected int |
handleStep(Request request,
int step)
Handles a validated form for the specified workflow step. |
protected void |
lock(Content content,
User user,
boolean acquire)
Checks or acquires a content lock. |
protected void |
unlock(Content content,
User user,
boolean force)
Removes a content lock. |
protected void |
validate(Request request,
int step)
Validates a form for the specified workflow step. |
protected void |
validateParent(Request request,
java.lang.String field,
java.lang.String error)
Validates a content name with regard to its parent. |
protected void |
validateStep(Request request,
int step)
Validates a form for the specified workflow step. |
protected void |
workflowEntered(Request request)
This method locks content objects when entering the workflow. |
protected void |
workflowError(Request request,
FormHandlingException e)
This method is called when an error was encountered during the processing. |
protected void |
workflowExited(Request request)
This method removes any files attached to the user session. |
| Methods inherited from class org.liquidsite.core.web.FormHandler |
process, processWithoutErrorHandling |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ContentAddFormHandler()
| Method Detail |
protected void displayStep(Request request,
int step)
throws ContentException,
ContentSecurityException
request - the request objectstep - the workflow step
ContentException - if the database couldn't be accessed
properly
ContentSecurityException - if the user didn't have the
required permissions
protected void validateStep(Request request,
int step)
throws ContentException,
ContentSecurityException,
FormValidationException
request - the request objectstep - the workflow step
ContentException - if the database couldn't be accessed
properly
ContentSecurityException - if the user didn't have the
required permissions
FormValidationException - if the form request data
validation failed
protected int handleStep(Request request,
int step)
throws ContentException,
ContentSecurityException
request - the request objectstep - the workflow step
ContentException - if the database couldn't be accessed
properly
ContentSecurityException - if the user didn't have the
required permissions
protected void workflowExited(Request request)
throws FormHandlingException
request - the request object
FormHandlingException - if an error was encountered
while processing the formpublic java.lang.String getStartPage()
public java.lang.String getFormPage()
protected final void display(Request request,
int step)
throws FormHandlingException
display in class FormHandlerrequest - the request objectstep - the workflow step, or zero (0)
FormHandlingException - if an error was encountered
while processing the formprotected void displayDone(Request request)
request - the request object
protected void displayError(Request request,
java.lang.String message)
request - the request objectmessage - the error message
protected final void validate(Request request,
int step)
throws FormHandlingException,
FormValidationException
validate in class FormHandlerrequest - the request objectstep - the workflow step
FormHandlingException - if an error was encountered
while processing the form
FormValidationException - if the form request data
validation failed
protected void validateParent(Request request,
java.lang.String field,
java.lang.String error)
throws ContentException,
ContentSecurityException,
FormValidationException
request - the request objectfield - the parent id fielderror - the message to use on validation error
ContentException - if the database couldn't be accessed
properly
ContentSecurityException - if the user didn't have the
required permissions
FormValidationException - if the form request data
validation failed
protected final int handle(Request request,
int step)
throws FormHandlingException
handle in class FormHandlerrequest - the request objectstep - the workflow step
FormHandlingException - if an error was encountered
while processing the form
protected void workflowEntered(Request request)
throws FormHandlingException
workflowEntered in class FormHandlerrequest - the request object
FormHandlingException - if an error was encountered
while processing the form
protected void workflowError(Request request,
FormHandlingException e)
workflowError in class FormHandlerrequest - the request objecte - the form handling exception
protected void lock(Content content,
User user,
boolean acquire)
throws ContentException,
ContentSecurityException
content - the content objectuser - the user acquiring the lockacquire - the acquire lock flag
ContentException - if the database couldn't be accessed
properly
ContentSecurityException - if the user didn't own and
couldn't acquire the lock
protected void unlock(Content content,
User user,
boolean force)
throws ContentException,
ContentSecurityException
content - the content objectuser - the user removing the lockforce - the force removal flag
ContentException - if the database couldn't be accessed
properly
ContentSecurityException - if the user didn't have
permission to remove the lockprotected java.lang.String convertFileName(java.lang.String name)
name - the file name to convert
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||