|
|
|
|
|
||||||||||
| 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.Boolean>
org.torweg.pulse.accesscontrol.attributes.BooleanAttribute
@Entity public class BooleanAttribute
a very simple Attribute storing a Boolean.
| Field Summary |
|---|
| Fields inherited from class org.torweg.pulse.accesscontrol.attributes.AbstractAttribute |
|---|
LOGGER |
| Constructor Summary | |
|---|---|
BooleanAttribute()
creates a new BooleanAttribute, which is not a system
attribute. |
|
BooleanAttribute(boolean isSystem)
creates a new BooleanAttribute. |
|
BooleanAttribute(java.lang.String n)
creates a new BooleanAttribute with the given name. |
|
BooleanAttribute(java.lang.String n,
boolean isSystem)
creates a new BooleanAttribute 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.Boolean> |
getAttributeInstance(java.lang.String n,
boolean isSystem)
returns a new instance of this attribute-class. |
AbstractTypedCheck<java.lang.Boolean> |
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.Boolean> 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.Boolean> |
updateSettingsFromCommand(Command command,
org.hibernate.Session session)
does nothing since BooleanAttributes do not have any
settings. |
AbstractValue<java.lang.Boolean> |
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 BooleanAttribute()
BooleanAttribute, which is not a system
attribute.
public BooleanAttribute(boolean isSystem)
BooleanAttribute.
isSystem - flag, indicating whether the attribute is a system attributepublic BooleanAttribute(java.lang.String n)
BooleanAttribute with the given name.
n - the name
public BooleanAttribute(java.lang.String n,
boolean isSystem)
BooleanAttribute 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.Boolean>public final AbstractTypedCheck<java.lang.Boolean> getCheck()
getCheck in class AbstractAttribute<java.lang.Boolean>AbstractAttribute.getCheck()public final void setCheck(AbstractTypedCheck<java.lang.Boolean> c)
setCheck in class AbstractAttribute<java.lang.Boolean>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.Boolean>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.Boolean>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.Boolean>JSONObject representation of the Node
public final AbstractAttribute<java.lang.Boolean> getAttributeInstance(java.lang.String n,
boolean isSystem)
getAttributeInstance in class AbstractAttribute<java.lang.Boolean>n - the name of the new attributeisSystem - indicates if new attribute is system-attribute
public final AbstractValue<java.lang.Boolean> valueFromCommand(Command c)
valueFromCommand in class AbstractAttribute<java.lang.Boolean>c - the command
protected final java.lang.String getParameterName()
public final AbstractAttribute<java.lang.Boolean> updateSettingsFromCommand(Command command,
org.hibernate.Session session)
BooleanAttributes do not have any
settings.
updateSettingsFromCommand in class AbstractAttribute<java.lang.Boolean>command - is ignoredsession - is not used
AbstractAttribute.updateSettingsFromCommand(Command,
Session)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||