org.edg.security.authorization.admin
Class AttribFileHandler
java.lang.Object
|
+--org.edg.security.authorization.admin.AttribFileHandler
- public class AttribFileHandler
- extends java.lang.Object
Class implementing methods to load the set of attributes
from a file and to save the set of attributes to the same
file. Access to the file is synchronized.
- Author:
- Gian Luca Volpato
Constructor Summary |
AttribFileHandler(java.lang.String fileName)
Constructor that receives the location of the file
where the set of attributes is stored. |
Method Summary |
java.util.TreeSet |
load()
Load the set of attributes. |
void |
save(java.util.Set attributeSet)
Save the set of attributes. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
myAttribFile
protected java.io.File myAttribFile
AttribFileHandler
public AttribFileHandler(java.lang.String fileName)
throws java.io.IOException
- Constructor that receives the location of the file
where the set of attributes is stored.
load
public java.util.TreeSet load()
- Load the set of attributes.
- Returns:
- TreeSet Set containing all the attributes stored
in the file
save
public void save(java.util.Set attributeSet)
- Save the set of attributes.
- Parameters:
attributeSet
- The set of attribute to save in the file