|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.tenduke.services.objectmodel.formhandler.AbstractFormHandler
com.tenduke.services.objectmodel.formhandler.DeleteObjectsFormHandler
public class DeleteObjectsFormHandler
Form handler for generic object deletion.
| Nested Class Summary | |
|---|---|
class |
DeleteObjectsFormHandler.DeleteObjectDefinition
Class that holds type and id of an object to delete. |
| Field Summary | |
|---|---|
static java.lang.String |
FORM_FIELD_NAME_PREFIX_FOR_OBJECT_ID
Prefix for names of form fields carrying ids objects that should be deleted. |
static java.lang.String |
FORM_FIELD_NAME_PREFIX_FOR_OBJECT_TYPE
Prefix for names of form fields carrying types objects that should be deleted. |
static java.lang.String |
FORM_FIELD_NAME_PREFIX_FOR_PARENT_OBJECT_TYPE
Prefix for names of form fields carrying types objects that function as parent for objects to be deleted. |
| Constructor Summary | |
|---|---|
protected |
DeleteObjectsFormHandler(Profile modifiedBy,
javax.servlet.http.HttpServletRequest request)
Creates a new instance of the DeleteObjectsFormHandler class. |
| Method Summary | |
|---|---|
void |
beginHandling()
Begin form data handling. |
static boolean |
deleteObjects(Profile modifiedBy,
javax.servlet.http.HttpServletRequest request)
Handle form submit request and delete objects defined by the request. |
static OperationResult |
deleteObjects2(Profile modifiedBy,
javax.servlet.http.HttpServletRequest request)
Handle form submit request and delete objects defined by the request. |
void |
endHandling()
End handling. |
java.io.File |
getPathForFileWrite(java.lang.String originalFilePath,
java.lang.String originalFileName)
Gets path where parsed files is written. |
void |
handleFilePart(java.lang.String originalFilePath,
java.lang.String originalFileName,
java.io.File fileInForm)
Handle a File part. |
void |
handleHeader(java.lang.String headerName,
java.lang.String headerValue)
Empty method. |
void |
handleParameterPart(java.lang.String parameterName,
java.lang.String parameterValue)
Handle a request parameter. |
| Methods inherited from class com.tenduke.services.objectmodel.formhandler.AbstractFormHandler |
|---|
getModifyingProfile, getRequest, getRequestParameters, setModifyingProfile, setRequest |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String FORM_FIELD_NAME_PREFIX_FOR_OBJECT_ID
public static final java.lang.String FORM_FIELD_NAME_PREFIX_FOR_OBJECT_TYPE
public static final java.lang.String FORM_FIELD_NAME_PREFIX_FOR_PARENT_OBJECT_TYPE
| Constructor Detail |
|---|
protected DeleteObjectsFormHandler(Profile modifiedBy,
javax.servlet.http.HttpServletRequest request)
modifiedBy - Profile used as modifying Profile for updates made by the handler.request - Request that is parsed by the handler.| Method Detail |
|---|
public void beginHandling()
public static boolean deleteObjects(Profile modifiedBy,
javax.servlet.http.HttpServletRequest request)
throws java.io.IOException
Handle form submit request and delete objects defined by the request.
Internally calls deleteObjects2(com.tenduke.objectmodel.Profile, javax.servlet.http.HttpServletRequest)
and returns the value of isSuccessful() method of the OperationResult object.
modifiedBy - Profile used as modifying Profile for updates made by the handler.request - Request that is parsed by the handler
java.io.IOException - Thrown if an error occurs when handling
public static OperationResult deleteObjects2(Profile modifiedBy,
javax.servlet.http.HttpServletRequest request)
throws java.io.IOException
modifiedBy - Profile used as modifying Profile for updates made by the handler.request - Request that is parsed by the handler
java.io.IOException - Thrown if an error occurs when handlingpublic void endHandling()
public java.io.File getPathForFileWrite(java.lang.String originalFilePath,
java.lang.String originalFileName)
originalFilePath - Original file path.originalFileName - Original file name.
public void handleFilePart(java.lang.String originalFilePath,
java.lang.String originalFileName,
java.io.File fileInForm)
originalFilePath - Original file path.originalFileName - Original file name.fileInForm - The file.
public void handleHeader(java.lang.String headerName,
java.lang.String headerValue)
headerName - Name of header.headerValue - Value of header.
public void handleParameterPart(java.lang.String parameterName,
java.lang.String parameterValue)
Handle a request parameter. This implementation identifies request parameters by name starting with:
FORM_FIELD_NAME_PREFIX_FOR_OBJECT_ID
FORM_FIELD_NAME_PREFIX_FOR_OBJECT_TYPE
FORM_FIELD_NAME_PREFIX_FOR_PARENT_OBJECT_TYPE
handleParameterPart in interface FormDataHandlerhandleParameterPart in class AbstractFormHandlerparameterName - Name of parameter.parameterValue - Parameter value.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||