pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.accesscontrol.attributes
Class AttributeRegistry

java.lang.Object
  extended by org.torweg.pulse.accesscontrol.attributes.AttributeRegistry
All Implemented Interfaces:
JDOMable

@Entity
public class AttributeRegistry
extends java.lang.Object
implements JDOMable

The base of the AttributeRegistry.

TODO: explain

Version:
$Revision: 1378 $
Author:
Thomas Weber

Constructor Summary
AttributeRegistry()
          builds a new empty AttributeRegistry.
 
Method Summary
 void addBundleNode(BundleAttribute n)
          adds a new Bundle to the AttributeRegistry.
 org.jdom.Element deserializeToJDOM()
          this will deserialize the state of the JDOMable as a JDOM Element.
 BundleAttribute getBundleNode(java.lang.String bundleName)
          get the RegistryBundleNode for the named Bundle .
 long getId()
          returns the primary key.
 java.util.Set<BundleAttribute> getRootNodes()
           
 void setRootNodes(java.util.Set<BundleAttribute> n)
          set the set of RegistryBundleNodes of the AttributeRegistry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeRegistry

public AttributeRegistry()
builds a new empty AttributeRegistry.

Method Detail

setRootNodes

public final void setRootNodes(java.util.Set<BundleAttribute> n)
set the set of RegistryBundleNodes of the AttributeRegistry.

Parameters:
n - the set of RegistryBundleNodes

getRootNodes

public final java.util.Set<BundleAttribute> getRootNodes()
Returns:
returns the root RegistryBundleNodes of the AttributeRegistry

addBundleNode

public final void addBundleNode(BundleAttribute n)
adds a new Bundle to the AttributeRegistry.

Parameters:
n - the Node of the Bundle to be added

getBundleNode

public final BundleAttribute getBundleNode(java.lang.String bundleName)
get the RegistryBundleNode for the named Bundle .

Parameters:
bundleName - the name of the Bundle
Returns:
the RegistryBundleNode for the named Bundle, or null, if no matching RegistryBundleNode could be found in the AttributeRegistry

getId

public final long getId()
returns the primary key.

Returns:
returns the id of the AttributeRegistry

deserializeToJDOM

public final org.jdom.Element deserializeToJDOM()
Description copied from interface: JDOMable
this will deserialize the state of the JDOMable as a JDOM Element.

Specified by:
deserializeToJDOM in interface JDOMable
Returns:
the root node and the first child level of the AttributeRegistry as an Element