com.livis.livingtalks.model
Class AuthorModel
java.lang.Object
|
+--com.livis.livingtalks.model.AbstractModel
|
+--com.livis.livingtalks.model.AuthorModel
- Direct Known Subclasses:
- AuthorWebImpl
- public class AuthorModel
- extends AbstractModel
- See Also:
- Serialized Form
Method Summary |
protected AuthorModel |
assignAuthorModel(java.lang.String key,
java.lang.String editor,
java.lang.String timestamp,
java.lang.String lastName,
java.lang.String firstName,
java.lang.String title,
java.lang.String cvHtml,
java.lang.String affiliation,
java.lang.String address,
java.lang.String email,
java.lang.String homePageUrl,
java.lang.String photoUrl)
|
void |
checkForKeyCreation()
Checks whether a key can be created from other model data.
|
void |
clear()
Set this Model to a clear state suitable for data entry into a
clear form it is not recommended behaviour for a clear model to
pass a subsequent AbstractModel.check() test. |
protected java.lang.String |
createKey()
Creates a key from other model data which must pass the AbstractModel.check() test if isKeyCreatable() returns
true .
|
java.lang.String |
getAddress()
|
java.lang.String |
getAffiliation()
|
java.lang.String |
getCvHtml()
|
java.lang.String |
getEmail()
|
java.lang.String |
getFirstName()
|
java.lang.String |
getHomePageUrl()
|
java.lang.String |
getLastName()
|
AuthorModel |
getModel()
|
java.lang.String |
getPhotoUrl()
|
java.lang.String |
getTitle()
|
void |
init()
|
boolean |
isKeyCreatable()
Checks whether a key can, in theory, be created from other
model data.
|
void |
makeShort()
Modifies the model such that less relevant properties
are deleted from the model.
|
void |
setAddress(java.lang.String address)
|
void |
setAffiliation(java.lang.String affiliation)
|
void |
setCvHtml(java.lang.String cvHtml)
|
void |
setEmail(java.lang.String email)
|
void |
setFirstName(java.lang.String firstName)
|
void |
setHomePageUrl(java.lang.String homePageUrl)
|
void |
setLastName(java.lang.String lastName)
|
void |
setModel(AuthorModel model)
|
void |
setPhotoUrl(java.lang.String photoUrl)
|
void |
setTitle(java.lang.String title)
|
protected java.util.List |
xmlTagPropertiesStore()
|
Methods inherited from class com.livis.livingtalks.model.AbstractModel |
assignAbstractModel,
check,
checkForNonEmptyKey,
getAutoKey,
getEditor,
getKey,
getTimestamp,
setAutoKey,
setEditor,
setKey,
setTimestamp,
setTimestampFromDate,
shallCreateKey,
touch,
XMLTagProperties |
Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
lastName
public java.lang.String lastName
firstName
public java.lang.String firstName
title
public java.lang.String title
cvHtml
public java.lang.String cvHtml
affiliation
public java.lang.String affiliation
address
public java.lang.String address
email
public java.lang.String email
homePageUrl
public java.lang.String homePageUrl
photoUrl
public java.lang.String photoUrl
AuthorModel
public AuthorModel()
assignAuthorModel
protected AuthorModel assignAuthorModel(java.lang.String key,
java.lang.String editor,
java.lang.String timestamp,
java.lang.String lastName,
java.lang.String firstName,
java.lang.String title,
java.lang.String cvHtml,
java.lang.String affiliation,
java.lang.String address,
java.lang.String email,
java.lang.String homePageUrl,
java.lang.String photoUrl)
getModel
public AuthorModel getModel()
setModel
public void setModel(AuthorModel model)
init
public void init()
clear
public void clear()
- Description copied from class: AbstractModel
- Set this Model to a clear state suitable for data entry into a
clear form it is not recommended behaviour for a clear model to
pass a subsequent
AbstractModel.check()
test.
- Overrides:
- clear in class AbstractModel
getLastName
public java.lang.String getLastName()
setLastName
public void setLastName(java.lang.String lastName)
getFirstName
public java.lang.String getFirstName()
setFirstName
public void setFirstName(java.lang.String firstName)
getTitle
public java.lang.String getTitle()
setTitle
public void setTitle(java.lang.String title)
getCvHtml
public java.lang.String getCvHtml()
setCvHtml
public void setCvHtml(java.lang.String cvHtml)
getAffiliation
public java.lang.String getAffiliation()
setAffiliation
public void setAffiliation(java.lang.String affiliation)
getAddress
public java.lang.String getAddress()
setAddress
public void setAddress(java.lang.String address)
getEmail
public java.lang.String getEmail()
setEmail
public void setEmail(java.lang.String email)
getHomePageUrl
public java.lang.String getHomePageUrl()
setHomePageUrl
public void setHomePageUrl(java.lang.String homePageUrl)
getPhotoUrl
public java.lang.String getPhotoUrl()
setPhotoUrl
public void setPhotoUrl(java.lang.String photoUrl)
makeShort
public void makeShort()
- Description copied from class: AbstractModel
- Modifies the model such that less relevant properties
are deleted from the model.
The version of AbstractModel does nothing. A derived version
may set a memory-consuming property to null if it is not used in any
master or tabular view, i.e. a view of many models at once.
A derived version may set a flag if makeShort got called and throw a
LivingTalksException if a property is gotten which was nulled by makeShort.
- Overrides:
- makeShort in class AbstractModel
isKeyCreatable
public boolean isKeyCreatable()
- Description copied from class: AbstractModel
- Checks whether a key can, in theory, be created from other
model data.
This default implementation returns
false
. If
derived classes re-implement this to return true,
they should also overwrite AbstractModel.createKey()
to return a
suitable key and AbstractModel.checkForKeyCreation()
to test whether a
key is valid.
- Overrides:
- isKeyCreatable in class AbstractModel
- Tags copied from class: AbstractModel
- Returns:
true
if a key can be created- See Also:
AbstractModel.createKey()
,
AbstractModel.checkForKeyCreation()
createKey
protected java.lang.String createKey()
- Description copied from class: AbstractModel
- Creates a key from other model data which must pass the
AbstractModel.check()
test if AbstractModel.isKeyCreatable()
returns
true
.
The generated key is returned. This default implementation
always throws an exception.
- Overrides:
- createKey in class AbstractModel
- Tags copied from class: AbstractModel
- Throws:
- LivingTalksException - if cannot create a key.
- See Also:
AbstractModel.isKeyCreatable()
,
AbstractModel.check()
checkForKeyCreation
public void checkForKeyCreation()
- Description copied from class: AbstractModel
- Checks whether a key can be created from other model data.
This method is called by
AbstractModel.check()
if AbstractModel.isKeyCreatable()
returns true. This default implementation does
nothing and should be re-implemented by derived classes in
conjunction with AbstractModel.isKeyCreatable()
and AbstractModel.createKey()
.
- Overrides:
- checkForKeyCreation in class AbstractModel
- Tags copied from class: AbstractModel
- Throws:
- LivingTalksException - if a key cannot be created from
other model data.
- See Also:
AbstractModel.isKeyCreatable()
,
AbstractModel.createKey()
,
AbstractModel.check()
xmlTagPropertiesStore
protected java.util.List xmlTagPropertiesStore()
- Overrides:
- xmlTagPropertiesStore in class AbstractModel