|
Predictions 4.10.0.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object ActionImpl ActionTemplateListAndEdit hirondelle.predict.main.prediction.PredictionAction
public final class PredictionAction
List and edit Prediction
objects.
This feature is a prime example of implementing data ownership constraints. Here, each Prediction is linked to a PredictionList. Each PredictionList is in turned linked to a specific user - the owner of the PredictionList, and all of the Predictions it contains.
Field Summary | |
---|---|
static SqlId |
ADD_PREDICTION
|
static SqlId |
CHANGE_PREDICTION
|
static RequestParameter |
CREATIONDATE
|
static SqlId |
DELETE_PREDICTION
|
static SqlId |
FETCH_OWNER
|
static SqlId |
FETCH_PREDICTION
|
static RequestParameter |
ID
|
static SqlId |
LIST_PREDICTIONS
|
static RequestParameter |
OUTCOME
|
static RequestParameter |
OUTCOME_DATE
|
static RequestParameter |
PREDICTION_LIST_ID
|
static RequestParameter |
REMARK
|
static RequestParameter |
TEXT
|
Fields inherited from class ActionTemplateListAndEdit |
---|
SupportedOperation |
Fields inherited from class ActionImpl |
---|
DATA, ERRORS, ITEM_FOR_EDIT, ITEMS_FOR_LISTING, MESSAGES, USER_ID |
Constructor Summary | |
---|---|
PredictionAction(RequestParser aRequestParser)
Constructor. |
Method Summary | |
---|---|
protected void |
attemptAdd()
Attempt to add a new Prediction . |
protected void |
attemptChange()
Attempt to change an existing Prediction . |
protected void |
attemptDelete()
Attempt to delete an existing Prediction . |
protected void |
attemptFetchForChange()
Fetch an existing Prediction in preparation for editing it. |
protected void |
doList()
Show the list of Prediction s in a given prediction list. |
Id |
fetchOwner()
Helps enforce an ownership constraint. |
protected void |
validateUserInput()
Attempt to build a Prediction out of user input. |
Methods inherited from class ActionTemplateListAndEdit |
---|
addDynamicParameterToRedirectPage, execute |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final SqlId LIST_PREDICTIONS
public static final SqlId FETCH_PREDICTION
public static final SqlId ADD_PREDICTION
public static final SqlId CHANGE_PREDICTION
public static final SqlId DELETE_PREDICTION
public static final SqlId FETCH_OWNER
public static final RequestParameter PREDICTION_LIST_ID
public static final RequestParameter ID
public static final RequestParameter TEXT
public static final RequestParameter CREATIONDATE
public static final RequestParameter REMARK
public static final RequestParameter OUTCOME
public static final RequestParameter OUTCOME_DATE
Constructor Detail |
---|
public PredictionAction(RequestParser aRequestParser)
Method Detail |
---|
public Id fetchOwner() throws DAOException
fetchOwner
in interface FetchIdentifierOwner
DAOException
protected void doList() throws DAOException
Prediction
s in a given prediction list.
doList
in class ActionTemplateListAndEdit
DAOException
protected void validateUserInput()
Prediction
out of user input.
validateUserInput
in class ActionTemplateListAndEdit
protected void attemptAdd() throws DAOException
Prediction
.
attemptAdd
in class ActionTemplateListAndEdit
DAOException
protected void attemptFetchForChange() throws DAOException
Prediction
in preparation for editing it.
attemptFetchForChange
in class ActionTemplateListAndEdit
DAOException
protected void attemptChange() throws DAOException
Prediction
.
attemptChange
in class ActionTemplateListAndEdit
DAOException
protected void attemptDelete() throws DAOException
Prediction
.
attemptDelete
in class ActionTemplateListAndEdit
DAOException
|
Predictions 4.10.0.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |