xml.xacml
Class Acl
java.lang.Object
   xml.xacml.Acl
xml.xacml.Acl
- public class Acl 
- extends java.lang.Object
Copyright 2005, DocJava, Inc.
 User: dlyon
 Date: Nov 15, 2005
 Time: 3:49:37 PM
 ACL - access control list. Role is to keep a list of people
 who are allowed to access the system.
 Features include:
 
 1. Check if a person is in the list.
 2. Add a person to the ACL.
 3. Remove a person from the ACL.
 4. Save the ACL to a file/string.
 5. Make sure uids are unique!
 6. Restore the ACL from a file/string
 
 
| Constructor Summary | 
| Acl()
 | 
 
 
| Methods inherited from class java.lang.Object | 
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
Acl
public Acl()
add
public void add(Person p)
         throws DuplicatePersonException
- 
- Throws:
- DuplicatePersonException
 
remove
public void remove(Person p)
            throws PersonNotInListException
- 
- Throws:
- PersonNotInListException
 
isUidUnique
public boolean isUidUnique(Person p)
- 
 
getList
public Person[] getList()
- 
 
isInList
public boolean isInList(Person p)
- 
 
save
public void save()
- 
 
save
public void save(java.io.File f)
- 
 
toXACML
public java.lang.String toXACML()
- 
 
print
public void print()
- 
 
main
public static void main(java.lang.String[] args)
                 throws DuplicatePersonException,
                        java.io.IOException,
                        javax.xml.parsers.ParserConfigurationException,
                        org.xml.sax.SAXException
- 
- Throws:
- DuplicatePersonException
- java.io.IOException
- javax.xml.parsers.ParserConfigurationException
- org.xml.sax.SAXException
 
restore
public static Acl restore()
                   throws java.io.IOException,
                          javax.xml.parsers.ParserConfigurationException,
                          org.xml.sax.SAXException
- 
- Throws:
- java.io.IOException
- javax.xml.parsers.ParserConfigurationException
- org.xml.sax.SAXException
 
restore
public static Acl restore(java.lang.String s)
                   throws javax.xml.parsers.ParserConfigurationException,
                          org.xml.sax.SAXException,
                          java.io.IOException
- 
- Throws:
- javax.xml.parsers.ParserConfigurationException
- org.xml.sax.SAXException
- java.io.IOException