public interface DataController
extends java.lang.Comparable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CTXT_DBMEMBER_CONVERT_TO_MEMBER
DataController's context map key used to indicate that the operation
is convertion from DBMember to Member.
|
static java.lang.String |
CTXT_DOC_DIRECTORY
DataController's context map key used to indicate that the operation
is an being performed on all files of a directory.
|
static java.lang.String |
CTXT_DOC_PSTATUS_CONTROL
DataController's context map key used to indicate that the operation
is an being performed on control the pstatus of the FileDocument from
its referer.
|
static java.lang.String |
CTXT_DOC_UNZIP
DataController's context map key used to indicate that the operation
is an being performed by unzipping a document.
|
static java.lang.String |
CTXT_DOC_UPLOAD
DataController's context map key used to indicate that the operation
is an upload operation (from the web interface).
|
static java.lang.String |
CTXT_DOC_UPLOAD_NEW_FILE
DataController's context map key used to indicate that the operation
is an upload operation (from the web interface) and will generate a new file of file system (creation or orlder version are kept).
|
static java.lang.String |
CTXT_FORCE_DELETE
DataController's context map key to use in order to force delete
operations (used by member, publication or workspace).
|
static java.lang.String |
CTXT_IGNORE_DBDATA_MODIFICATION_CHECK
DataController's context map key to use in order to disable the DBData modification
check during update operations.
|
static java.lang.String |
CTXT_IGNORE_INTEGRITY_CHECK
DataController's context map key to use in order to disable integrity
check during operations.
|
static java.lang.String |
CTXT_IS_BATCH_OPERATION
DataController's context map key used to indicate that the operation
is batch operation requiring high performance processing (e.g caddy).
|
static java.lang.String |
CTXT_MAIL_FETCHER
DataController's context map key used to indicate that the operation
is performed in the scope of a Mail Fetching.
|
static java.lang.String |
CTXT_ORIGINAL_DATA
DataController's context map key used to indicate that the operation
is a duplication of an existing data.
|
static java.lang.String |
CTXT_PREVIOUS_DATA
DataController's context map key available in afterWrite() to provide a clone of the modified data (only if op == OP_UPDATE).
|
static java.lang.String |
CTXT_REST
DataController's context map key used to indicate that the operation
is a rest operation.
|
static java.lang.String |
CTXT_SKIP_CSRF_CHECK
DataController's context map key to use in order to skip CSRF check
during operations performed through HTTP request.
|
static java.lang.String |
CTXT_WEBDAV
DataController's context map key used to indicate that the operation
is a webdav operation.
|
static java.lang.String |
CTXT_WIZARD
DataController's context map key used to link the WizardContext
in the DataControler Map.
|
static java.lang.String |
DO_NOT_STORE
DataController's context map key to use in order to cancel write operation.
|
static java.lang.String |
REVISION |
Modifier and Type | Method and Description |
---|---|
void |
afterWrite(Data data,
int op,
Member mbr,
java.util.Map context)
This method is called once the write operation has been performed.
|
void |
beforeWrite(Data data,
int op,
Member mbr,
java.util.Map context)
This method is called before the write operation is performed.
|
ControllerStatus |
checkIntegrity(Data data)
Checks if the given data respects constraints integrity
|
ControllerStatus |
checkWrite(Data data,
int op,
Member mbr,
boolean checkIntegrity,
java.util.Map context)
Checks if the given write operation can be performed
|
void |
processFieldStatusMap(Data data,
Member mbr,
java.util.Map<java.lang.String,FieldStatus> map)
This method is called to fill the map of FieldStatus for the given data.
|
static final java.lang.String REVISION
static final java.lang.String DO_NOT_STORE
beforeWrite(Data, int, Member, Map)
.static final java.lang.String CTXT_IGNORE_INTEGRITY_CHECK
static final java.lang.String CTXT_SKIP_CSRF_CHECK
static final java.lang.String CTXT_FORCE_DELETE
static final java.lang.String CTXT_WEBDAV
static final java.lang.String CTXT_REST
static final java.lang.String CTXT_DOC_UPLOAD
static final java.lang.String CTXT_DOC_UPLOAD_NEW_FILE
static final java.lang.String CTXT_DOC_UNZIP
If this key is present in the context map, the value in the Map will contains the original FileDocument (which may not have been created in the store and may not be).
static final java.lang.String CTXT_DOC_DIRECTORY
If this key is present in the context map, the value in the Map will contains the File instance pointing to the directory being worked on.
static final java.lang.String CTXT_DOC_PSTATUS_CONTROL
static final java.lang.String CTXT_PREVIOUS_DATA
static final java.lang.String CTXT_ORIGINAL_DATA
static final java.lang.String CTXT_IS_BATCH_OPERATION
static final java.lang.String CTXT_WIZARD
static final java.lang.String CTXT_MAIL_FETCHER
static final java.lang.String CTXT_DBMEMBER_CONVERT_TO_MEMBER
static final java.lang.String CTXT_IGNORE_DBDATA_MODIFICATION_CHECK
ControllerStatus checkIntegrity(Data data)
data
- the data to be checkedControllerStatus checkWrite(Data data, int op, Member mbr, boolean checkIntegrity, java.util.Map context)
data
- the data involved by this operationop
- the operation (OP_CREATE, OP_UPDATE, ...)mbr
- the member which requests the write operationcheckIntegrity
- if true, requires the constraints integrity to be checkedcontext
- a map which contains context parameters (may be null)void processFieldStatusMap(Data data, Member mbr, java.util.Map<java.lang.String,FieldStatus> map)
data
- the datambr
- the member which requests the datamap
- the map of FieldStatusvoid beforeWrite(Data data, int op, Member mbr, java.util.Map context)
data
- the data which will be writtenop
- the operation (OP_CREATE, OP_UPDATE, ...)mbr
- the member which requests the write operationcontext
- a map which contains context parameters (may be null)void afterWrite(Data data, int op, Member mbr, java.util.Map context)
data
- the data which will be writtenop
- the operation (OP_CREATE, OP_UPDATE, ...)mbr
- the member which requests the write operationcontext
- a map which contains context parameters (may be null)Copyright © 2001-2010 Jalios SA. All Rights Reserved.