com.livis.livingtalks.model
Class AuthorshipModel
java.lang.Object
|
+--com.livis.livingtalks.model.AbstractModel
|
+--com.livis.livingtalks.model.AuthorshipModel
- public class AuthorshipModel
- extends AbstractModel
- See Also:
- Serialized Form
Methods inherited from class com.livis.livingtalks.model.AbstractModel |
assignAbstractModel,
check,
checkForNonEmptyKey,
getAutoKey,
getEditor,
getKey,
getTimestamp,
makeShort,
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 |
talkKey
public java.lang.String talkKey
authorKey
public java.lang.String authorKey
AuthorshipModel
public AuthorshipModel()
AuthorshipModel
public AuthorshipModel(java.lang.String talkKey,
java.lang.String authorKey)
assignAuthorshipModel
protected AuthorshipModel assignAuthorshipModel(java.lang.String key,
java.lang.String editor,
java.lang.String timestamp,
java.lang.String talkKey,
java.lang.String authorKey)
getModel
public AuthorshipModel getModel()
setModel
public void setModel(AuthorshipModel 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
getTalkKey
public java.lang.String getTalkKey()
setTalkKey
public void setTalkKey(java.lang.String talkKey)
getAuthorKey
public java.lang.String getAuthorKey()
setAuthorKey
public void setAuthorKey(java.lang.String authorKey)
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