arlut.csd.ganymede
Class xPerm

java.lang.Object
  |
  +--arlut.csd.ganymede.xPerm

class xPerm
extends java.lang.Object

This class is used by the Ganymede XML client to represent a permission field value.

xPerm are slightly recursive, in that a top-level xPerm is used to represent the permissions for a type of object at the object level, and contain in turn xPerm objects used for the individual fields defined within that object.


Field Summary
(package private)  boolean create
           
(package private)  boolean delete
           
(package private)  boolean edit
           
(package private)  java.util.Hashtable fields
          If this xPerm is representing an object type as a whole, fields will map field names to xPerm objects.
(package private)  java.lang.String label
          String describing this xPerm's contents.
(package private)  boolean view
           
 
Constructor Summary
xPerm(arlut.csd.Util.XMLItem item, boolean objectType)
          xPerm constructor.
 
Method Summary
 java.lang.String getName()
           
 arlut.csd.ganymede.PermEntry getPermEntry()
           
private  arlut.csd.ganymede.GanymedeXMLSession getXSession()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

label

java.lang.String label

String describing this xPerm's contents. This String is held in XMLEncoded form. That is, spaces in the Ganymede object type and/or field name have been replaced with underscores.


fields

java.util.Hashtable fields

If this xPerm is representing an object type as a whole, fields will map field names to xPerm objects. If this xPerm is representing permissions for a field, this variable will be null.


view

boolean view

edit

boolean edit

create

boolean create

delete

boolean delete
Constructor Detail

xPerm

public xPerm(arlut.csd.Util.XMLItem item,
             boolean objectType)
      throws org.xml.sax.SAXException

xPerm constructor. When the constructor is called, the xPerm reads the next item from the xmlclient's getNextItem() method and uses it to initialize the xPerm.

If objectType is true, the xPerm constructor assumes that it is reading an entire object type's permission data. In this case, it will load the permission data for the object, including all of the field permissions data contained within the top-level object.

Method Detail

getName

public java.lang.String getName()

getPermEntry

public arlut.csd.ganymede.PermEntry getPermEntry()

getXSession

private arlut.csd.ganymede.GanymedeXMLSession getXSession()