|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IDominoAction
IDominoAction provides a common interface for classes that perfom a special Action with Domino.
Such classes will capsulate the necessary data to perform the operation and perform the operation itself. They will act as static mechanisms used by the DominoUsersConnector to perform special actions. Common pattern for all IDominoAction-s is that they will take the decision if the Action has to be performed and get the neccesary data to perform the Action based on a fixed schema of Entry Attributes.
Method Summary | |
---|---|
String |
canPerform()
Inspects the data stored in the local data holders and determines if it is consistent and the Domino Action can be performed. |
Entry |
extractAndStoreData(Entry aEntry)
This method extracts and stores data. |
boolean |
mustPerform(Entry aEntry)
Inspects the Attributes of the given Entry and determines if the Domino Action has to be performed. |
void |
perform()
Performs the Domino Action useing the data from the local data holders. |
void |
resetData()
Resets the local data holders to empty/default values according the business logic of the Domino Action. |
Method Detail |
---|
Entry extractAndStoreData(Entry aEntry) throws Exception
(1) Extract data from the given Entry according to the fixed schema of Attributes;
(2) Stores this data into local data holders;
aEntry
- The Entry object to extract data from.
Exception
- if an error that cannot be handled occurs while operating.boolean mustPerform(Entry aEntry) throws Exception
aEntry
- The Entry object which Attributes hold the necessary
information whether to perform the Domino Action.
Exception
- if an error that cannot be handled occurs while operating.String canPerform()
and a non-empty string message explaining the problem, if the data is not consistent and the Action cannot be performed.
void perform() throws Exception
Exception
- if an error that cannot be handled occurs while operating.void resetData() throws Exception
Exception
- if an error that cannot be handled occurs while operating.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |