|
|
|
|
|
||||||||||
| 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<NilType>
org.torweg.pulse.accesscontrol.attributes.SectionAttribute
@Entity public class SectionAttribute
a very simple Attribute for structuring the
AttributeRegistry.
| Field Summary |
|---|
| Fields inherited from class org.torweg.pulse.accesscontrol.attributes.AbstractAttribute |
|---|
LOGGER |
| Constructor Summary | |
|---|---|
SectionAttribute()
creates a new SectionAttribute, which is not a system
attribute. |
|
SectionAttribute(boolean isSystem)
creates a new SectionAttribute. |
|
SectionAttribute(java.lang.String n)
creates a new SectionAttribute with the given name. |
|
SectionAttribute(java.lang.String n,
boolean isSystem)
creates a new SectionAttribute 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<NilType> |
getAttributeInstance(java.lang.String n,
boolean isSystem)
returns a new instance of this attribute-class. |
AbstractTypedCheck<NilType> |
getCheck()
returns the check. |
java.lang.String |
getName()
returns the attributes name. |
void |
setCheck(AbstractTypedCheck<NilType> 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<NilType> |
updateSettingsFromCommand(Command command,
org.hibernate.Session session)
does nothing since SectionAttributes do not have any
settings. |
AbstractValue<NilType> |
valueFromCommand(Command c)
returns null as SectionAttributes do not have
values. |
| 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 SectionAttribute()
SectionAttribute, which is not a system
attribute.
public SectionAttribute(boolean isSystem)
SectionAttribute.
isSystem - flag, indicating whether the attribute is a system attributepublic SectionAttribute(java.lang.String n)
SectionAttribute with the given name.
n - the name
public SectionAttribute(java.lang.String n,
boolean isSystem)
SectionAttribute 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<NilType>public final AbstractTypedCheck<NilType> getCheck()
getCheck in class AbstractAttribute<NilType>AbstractAttribute.getCheck()public final void setCheck(AbstractTypedCheck<NilType> c)
setCheck in class AbstractAttribute<NilType>c - the check to setAbstractAttribute.setCheck(org.torweg.pulse.accesscontrol.attributes.AbstractTypedCheck)
public final AbstractAttribute<NilType> getAttributeInstance(java.lang.String n,
boolean isSystem)
getAttributeInstance in class AbstractAttribute<NilType>n - the name of the new attributeisSystem - indicates if new attribute is system-attribute
public final AbstractValue<NilType> valueFromCommand(Command c)
null as SectionAttributes do not have
values.
valueFromCommand in class AbstractAttribute<NilType>c - the command
null
public final AbstractAttribute<NilType> updateSettingsFromCommand(Command command,
org.hibernate.Session session)
SectionAttributes do not have any
settings.
updateSettingsFromCommand in class AbstractAttribute<NilType>command - is ignoredsession - is not used
AbstractAttribute.updateSettingsFromCommand(Command,
Session)public final net.sf.json.JSONObject toJSON()
JSONObject representation of the Node
.
toJSON in class AbstractAttribute<NilType>JSONObject representation of the Nodepublic final org.jdom.Element deserializeToJDOM()
deserializeToJDOM in interface JDOMabledeserializeToJDOM in class AbstractAttribute<NilType>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<NilType>valueMap - maps attribute-ids a Users attribute-values
AbstractAttribute.deserializeToJDOM()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||