|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DataController
A DataController is notified whenever data integrity must be checked, write (create, update, delete, ...) must be accepted, before and after the write is performed.
Field Summary | |
---|---|
static String |
CTXT_DBMEMBER_CONVERT_TO_MEMBER
DataController's context map key used to indicate that the operation is convertion from DBMember to Member. |
static 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 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 String |
CTXT_DOC_UNZIP
DataController's context map key used to indicate that the operation is an being performed by unzipping a document. |
static String |
CTXT_DOC_UPLOAD
DataController's context map key used to indicate that the operation is an upload operation (from the web interface). |
static 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 String |
CTXT_FORCE_DELETE
DataController's context map key to use in order to force delete operations (used by member, publication or workspace). |
static 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 String |
CTXT_IGNORE_INTEGRITY_CHECK
DataController's context map key to use in order to disable integrity check during operations. |
static 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 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 String |
CTXT_ORIGINAL_DATA
DataController's context map key used to indicate that the operation is a duplication of an existing data. |
static 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 String |
CTXT_REST
DataController's context map key used to indicate that the operation is a rest operation. |
static 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 String |
CTXT_WEBDAV
DataController's context map key used to indicate that the operation is a webdav operation. |
static String |
CTXT_WIZARD
DataController's context map key used to link the WizardContext in the DataControler Map. |
static String |
DO_NOT_STORE
DataController's context map key to use in order to cancel write operation. Must be used in beforeWrite(Data, int, Member, Map) . |
static String |
REVISION
|
Method Summary | |
---|---|
void |
afterWrite(Data data,
int op,
Member mbr,
Map context)
This method is called once the write operation has been performed. |
void |
beforeWrite(Data data,
int op,
Member mbr,
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,
Map context)
Checks if the given write operation can be performed |
void |
processFieldStatusMap(Data data,
Member mbr,
Map<String,FieldStatus> map)
This method is called to fill the map of FieldStatus for the given data. |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Field Detail |
---|
static final String REVISION
static final String DO_NOT_STORE
beforeWrite(Data, int, Member, Map)
.
static final String CTXT_IGNORE_INTEGRITY_CHECK
static final String CTXT_SKIP_CSRF_CHECK
static final String CTXT_FORCE_DELETE
static final String CTXT_WEBDAV
static final String CTXT_REST
static final String CTXT_DOC_UPLOAD
static final String CTXT_DOC_UPLOAD_NEW_FILE
static final 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 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 String CTXT_DOC_PSTATUS_CONTROL
static final String CTXT_PREVIOUS_DATA
static final String CTXT_ORIGINAL_DATA
static final String CTXT_IS_BATCH_OPERATION
static final String CTXT_WIZARD
static final String CTXT_MAIL_FETCHER
static final String CTXT_DBMEMBER_CONVERT_TO_MEMBER
static final String CTXT_IGNORE_DBDATA_MODIFICATION_CHECK
Method Detail |
---|
ControllerStatus checkIntegrity(Data data)
data
- the data to be checked
ControllerStatus checkWrite(Data data, int op, Member mbr, boolean checkIntegrity, 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, Map<String,FieldStatus> map)
data
- the datambr
- the member which requests the datamap
- the map of FieldStatusvoid beforeWrite(Data data, int op, Member mbr, 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, 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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |