public class Person extends uk.ac.ed.epcc.webapp.session.ExtAuthAppUser implements PropertyContainer, ExpressionTarget
AppUser.| Modifier | Constructor and Description |
|---|---|
protected |
Person(PersonFactory<? extends Person> fac,
uk.ac.ed.epcc.webapp.model.data.Repository.Record res) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
evaluateExpression(PropExpression<T> expr)
Evaluate an expression on the target object
|
<T> T |
evaluateExpression(PropExpression<T> expr,
T def)
Evaluate expression with default.
|
java.util.Set<PropertyTag> |
getDefinedProperties()
Generate a set of all the properties defined in this container
|
ExpressionTargetFactory |
getExpressionTargetFactory() |
protected PersonFactory |
getFactory() |
java.lang.String |
getIdentifier(int max_length) |
Parser |
getParser()
Get a
Parser used to parse expressions for
this target. |
<T> T |
getProperty(PropertyTag<T> tag)
Get the specified property from the container.
|
<T> T |
getProperty(PropertyTag<T> tag,
T def)
Get property with default.
|
void |
setAll(PropertyContainer source)
Copy all compatible properties from one container to another;
|
<T> void |
setOptionalProperty(PropertyTag<? super T> tag,
T value)
Set the specified property if it is supported
|
<T> void |
setProperty(PropertyTag<? super T> tag,
T value)
Set the specified property
|
<T> void |
setProperty(PropertyTag<T> tag,
PropertyContainer map) |
boolean |
supports(PropertyTag<?> tag)
Is the specified property supported by the container.
|
boolean |
writable(PropertyTag<?> tag)
Is the specified property supported for write.
|
canLogin, doWelcome, getEmail, getLastTimeDetailsUpdated, getSortName, getWebName, isPlaceholder, markDetailsUpdated, needDetailsUpdate, nonRandomString, postUpdate, randomString, randomString, setEmail, setWebNameaddToMap, addToMap, addToMap, commit, delete, empty, equals, formUpdate, getContext, getFactoryTag, getID, getIdentifier, getLogger, getMap, getRecord, getRecord, getRecord, getSQLContext, getUniqueIdName, hashCode, post_commit, postCreate, pre_commit, release, setContents, setDirty, setMap, toStringprotected Person(PersonFactory<? extends Person> fac, uk.ac.ed.epcc.webapp.model.data.Repository.Record res)
protected PersonFactory getFactory()
public java.lang.String getIdentifier(int max_length)
getIdentifier in interface uk.ac.ed.epcc.webapp.forms.IdentifiedgetIdentifier in class uk.ac.ed.epcc.webapp.session.AppUserpublic final <T> T getProperty(PropertyTag<T> tag) throws InvalidPropertyException
PropertyContainergetProperty in interface PropertyContainerInvalidPropertyExceptionT - type of propertytag - PropertyTag identifying propertypublic final <T> T getProperty(PropertyTag<T> tag, T def)
PropertyTargetgetProperty in interface PropertyTargetT - Type of propertytag - PropertTag identifying propertydef - default valuepublic final <T> void setProperty(PropertyTag<? super T> tag, T value) throws InvalidPropertyException
PropertyContainersetProperty in interface PropertyContainerInvalidPropertyExceptionT - type of propertytag - PropertyTag identifying propertypublic final <T> void setOptionalProperty(PropertyTag<? super T> tag, T value)
PropertyContainersetOptionalProperty in interface PropertyContainerT - type of propertytag - PropertyTag identifying propertypublic final <T> void setProperty(PropertyTag<T> tag, PropertyContainer map) throws InvalidPropertyException
InvalidPropertyExceptionpublic final boolean supports(PropertyTag<?> tag)
PropertyContainersupports in interface PropertyContainerpublic final boolean writable(PropertyTag<?> tag)
PropertyContainerwritable in interface PropertyContainerpublic <T> T evaluateExpression(PropExpression<T> expr) throws InvalidPropertyException
ExpressionTargetevaluateExpression in interface ExpressionTargetInvalidPropertyExceptionT - type of expressionexpr - expressionpublic <T> T evaluateExpression(PropExpression<T> expr, T def)
ExpressionTargetevaluateExpression in interface ExpressionTargetT - type of expressionexpr - expressiondef - default valuepublic ExpressionTargetFactory getExpressionTargetFactory()
public java.util.Set<PropertyTag> getDefinedProperties()
PropertyContainergetDefinedProperties in interface PropertyContainerpublic void setAll(PropertyContainer source)
PropertyContainersetAll in interface PropertyContainersource - PropertyContainerpublic Parser getParser()
ExpressionTargetParser used to parse expressions for
this target.getParser in interface ExpressionTarget