|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--kiurubeans.KiuruHandler
|
+--kiurubeans.EntityHandler
|
+--kiurubeans.ContactPerson
Representation of a contact person.
| Field Summary |
| Fields inherited from class kiurubeans.EntityHandler |
DELETE_RECORD, GET_RECORD, POST_RECORD, RESET_RECORD |
| Fields inherited from class kiurubeans.KiuruHandler |
NO_ACTION |
| Constructor Summary | |
ContactPerson()
Default constructor |
|
| Method Summary | |
void |
deleteRecord()
Deletes current record from database. |
protected boolean |
doCheckModifyRight()
Implementation of modify rights checking. |
protected void |
doClearActionState(javax.servlet.http.HttpServletRequest request)
Implementation of clearing action state. |
protected void |
doClearEmptyParameters(javax.servlet.http.HttpServletRequest request)
Implementation of parameter clearing. |
boolean |
getAddingNew()
Returns if entity is in a state of adding a new record. |
int |
getIntOrganisationId()
Getter for property organisationId. |
java.lang.String |
getLastName()
Getter for property lastName. |
java.lang.String |
getOrganisationId()
Returns ID of organisation that contact person is related to. |
int |
getPersonId()
Getter for property personId. |
void |
getRecord()
Retrieves record from database according to current Id field(s) value(s). |
void |
postRecord()
Saves record to database. |
void |
resetRecord()
Clears field values. |
void |
setLastName(java.lang.String lastName)
Setter for property lastName. |
void |
setOrganisationId(int organisationId)
Setter for property organisationId. |
void |
setOrganisationId(java.lang.String organisationId)
Setter for property organisationId. |
void |
setPersonId(int personId)
Setter for property personId. |
void |
setSubmitPost(java.lang.String s)
This method sets the internal state of the object into "Post". |
| Methods inherited from class kiurubeans.EntityHandler |
clearEmptyParameters, defaultAction, getMaxState, hasModifyRight |
| Methods inherited from class kiurubeans.KiuruHandler |
addError, addNotice, getEnumState, getError, getLangId, getOk, getUser, performAction, resetActionState, resetErrorState, setEnumState, setError, setOk, setUser |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ContactPerson()
| Method Detail |
public int getPersonId()
public void setPersonId(int personId)
personId - New value of property personId.public java.lang.String getLastName()
public void setLastName(java.lang.String lastName)
lastName - New value of property lastName.public int getIntOrganisationId()
public java.lang.String getOrganisationId()
public void setOrganisationId(java.lang.String organisationId)
organisationId - New value of property organisationId.public void setOrganisationId(int organisationId)
organisationId - New value of property organisationId.public void setSubmitPost(java.lang.String s)
s - Actually not needed. The important thing is that it exists.protected boolean doCheckModifyRight()
doCheckModifyRight in class EntityHandlerEntityHandler.hasModifyRight()public void deleteRecord()
Actually applies deleted=true. Object is cleared after deletion.
deleteRecord in class EntityHandlerpublic void getRecord()
Id field(s) are defined in descendant classes. Method implements also user rights check, eg. if user has no right to retrieve the record, empty object is returned instead.
getRecord in class EntityHandler
public void postRecord()
throws java.lang.Exception
If field values are not valid, sets Ok property to false.
postRecord in class EntityHandlerjava.lang.Exception - if there is a problem with DB connection.public void resetRecord()
Result should be equivalent to constructing a new object. Nothing is saved to database.
resetRecord in class EntityHandlerprotected void doClearEmptyParameters(javax.servlet.http.HttpServletRequest request)
doClearEmptyParameters in class KiuruHandlerrequest - Request-object from the JSP page.EntityHandler.clearEmptyParameters(HttpServletRequest)public boolean getAddingNew()
getAddingNew in class EntityHandlerprotected void doClearActionState(javax.servlet.http.HttpServletRequest request)
doClearActionState in class EntityHandlerrequest - The request-object from the JSP-page.EntityHandler.clearEmptyParameters(HttpServletRequest)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||