|
|||||||||||
| 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.UsersEditFormHandler
The users edit request handler. This class handles the various edit workflows for the users view.
| Constructor Summary | |
UsersEditFormHandler()
Creates a new users edit form 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. |
static UsersEditFormHandler |
getInstance()
Returns an instance of this class. |
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 |
setUserGroups(Request request,
User user)
Sets the user groups from the request. |
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 unlocks content objects when exiting the workflow. |
| 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 UsersEditFormHandler()
| Method Detail |
public static UsersEditFormHandler getInstance()
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 FormValidationException
request - the request objectstep - the workflow step
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 setUserGroups(Request request,
User user)
throws ContentException
request - the requestuser - the user to add or remove groups for
ContentException - if the database couldn't be accessed
properlypublic 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 workflowExited(Request request)
throws FormHandlingException
workflowExited 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 | ||||||||||