|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.torweg.pulse.util.entity.AbstractBasicEntity
org.torweg.pulse.util.entity.Node
org.torweg.pulse.accesscontrol.attributes.AbstractAttribute<java.lang.String>
org.torweg.pulse.accesscontrol.attributes.StringAttribute
@Entity public class StringAttribute
a very simple Attribute storing a String.
| Field Summary |
|---|
| Fields inherited from class org.torweg.pulse.accesscontrol.attributes.AbstractAttribute |
|---|
LOGGER |
| Constructor Summary | |
|---|---|
StringAttribute()
creates a new StringAttribute, which is not a system
attribute. |
|
StringAttribute(boolean isSystem)
creates a new StringAttribute. |
|
StringAttribute(java.lang.String n)
creates a new StringAttribute with the given name. |
|
StringAttribute(java.lang.String n,
boolean isSystem)
creates a new StringAttribute with the given name. |
|
| Method Summary | |
|---|---|
org.jdom.Element |
deserializeToJDOM()
returns a JDOM representation of the attribute. |
org.jdom.Element |
deserializeToJDOM(java.util.Map<java.lang.Long,AbstractValue<?>> valueMap)
returns a JDOM representation of the attribute. |
AbstractAttribute<java.lang.String> |
getAttributeInstance(java.lang.String n,
boolean isSystem)
returns a new instance of this attribute-class. |
AbstractTypedCheck<java.lang.String> |
getCheck()
returns the check. |
java.lang.String |
getName()
returns the attributes name. |
protected java.lang.String |
getParameterName()
returns the parameter name. |
void |
setCheck(AbstractTypedCheck<java.lang.String> c)
sets the check. |
void |
setName(java.lang.String n)
sets the name of the attribute. |
net.sf.json.JSONObject |
toJSON()
returns a JSONObject representation of the Node
. |
AbstractAttribute<java.lang.String> |
updateSettingsFromCommand(Command command,
org.hibernate.Session session)
does nothing since BooleanAttributes do not have any
settings. |
AbstractValue<java.lang.String> |
valueFromCommand(Command c)
initializes a value of this attribute from the given command. |
| Methods inherited from class org.torweg.pulse.accesscontrol.attributes.AbstractAttribute |
|---|
addAdminEditRole, addAdminViewRole, addSelfEditRole, addSelfViewRole, addTriggeredRole, getAdminEditRoles, getAdminViewRoles, getSelfEditRoles, getSelfViewRoles, getTriggeredRoles, getTypedChecks, getValue, isRequired, isSystemAttribute, isValid, removeAdminEditRole, removeAdminViewRole, removeSelfEditRole, removeSelfViewRole, removeTriggeredRole, setAdminEditRoles, setAdminViewRoles, setRequired, setSelfEditRoles, setSelfViewRoles, setTriggeredRoles, setValue |
| Methods inherited from class org.torweg.pulse.util.entity.Node |
|---|
addChild, addChild, getChild, getChildIndex, getChildren, getParent, hasChildren, removeChild, setChildren |
| Methods inherited from class org.torweg.pulse.util.entity.AbstractBasicEntity |
|---|
compareTo, equals, getFullQualifiedClassNameJAXB, getId, hashCode |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StringAttribute()
StringAttribute, which is not a system
attribute.
public StringAttribute(boolean isSystem)
StringAttribute.
isSystem - flag, indicating whether the attribute is a system attributepublic StringAttribute(java.lang.String n)
StringAttribute with the given name.
n - the name
public StringAttribute(java.lang.String n,
boolean isSystem)
StringAttribute with the given name.
n - the nameisSystem - flag, indicating whether the attribute is a system attribute| Method Detail |
|---|
public final void setName(java.lang.String n)
setName in interface INameablen - the name to setINameable.setName(String)public final java.lang.String getName()
getName in interface INamedgetName in class AbstractAttribute<java.lang.String>public final AbstractTypedCheck<java.lang.String> getCheck()
getCheck in class AbstractAttribute<java.lang.String>AbstractAttribute.getCheck()public final void setCheck(AbstractTypedCheck<java.lang.String> c)
setCheck in class AbstractAttribute<java.lang.String>c - the check to setAbstractAttribute.setCheck(org.torweg.pulse.accesscontrol.attributes.AbstractTypedCheck)public final org.jdom.Element deserializeToJDOM()
deserializeToJDOM in interface JDOMabledeserializeToJDOM in class AbstractAttribute<java.lang.String>AbstractAttribute.deserializeToJDOM()public final org.jdom.Element deserializeToJDOM(java.util.Map<java.lang.Long,AbstractValue<?>> valueMap)
used during deserialization of a User
deserializeToJDOM in class AbstractAttribute<java.lang.String>valueMap - maps attribute-ids a Users attribute-values
AbstractAttribute.deserializeToJDOM()public final net.sf.json.JSONObject toJSON()
JSONObject representation of the Node
.
toJSON in class AbstractAttribute<java.lang.String>JSONObject representation of the Node
public final AbstractAttribute<java.lang.String> getAttributeInstance(java.lang.String n,
boolean isSystem)
getAttributeInstance in class AbstractAttribute<java.lang.String>n - the name of the new attributeisSystem - indicates if new attribute is system-attribute
public final AbstractValue<java.lang.String> valueFromCommand(Command c)
valueFromCommand in class AbstractAttribute<java.lang.String>c - the command
public final AbstractAttribute<java.lang.String> updateSettingsFromCommand(Command command,
org.hibernate.Session session)
BooleanAttributes do not have any
settings.
updateSettingsFromCommand in class AbstractAttribute<java.lang.String>command - is ignoredsession - is not used
AbstractAttribute.updateSettingsFromCommand(Command,
Session)protected final java.lang.String getParameterName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||