com.ibm.dse.applsrv.aa
Class SimpleSecurityPersistence

java.lang.Object
  |
  +--com.ibm.dse.applsrv.aa.SimpleSecurityPersistence

public class SimpleSecurityPersistence
extends java.lang.Object
implements SecurityPersistence

This class represents a simple but effective persistence controller for the security objects.


Constructor Summary
SimpleSecurityPersistence()
          Create a new instance of this persistence controller.
 
Method Summary
 java.lang.String database()
          Return the name of this database.
 void initialize(Dictionary config)
          Initialize the persistor with the specified set of options.
 java.io.Serializable load()
          Return a dictionary representing the current state of the persistent database.
 void save(java.io.Serializable db)
          Replace the persistent database with the in-memory copy.
 void shutdown()
          Shutdown this database.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleSecurityPersistence

public SimpleSecurityPersistence()
Create a new instance of this persistence controller.
Method Detail

database

public java.lang.String database()
Return the name of this database.
Specified by:
database in interface SecurityPersistence
Returns:
String - the name of this database.

initialize

public void initialize(Dictionary config)
                throws DSESecurityException
Initialize the persistor with the specified set of options.
Specified by:
initialize in interface SecurityPersistence
Parameters:
config - Dictionary - the configuration options.
Throws:
DSESecurityException - - database error.

load

public java.io.Serializable load()
                          throws DSESecurityException
Return a dictionary representing the current state of the persistent database.
Specified by:
load in interface SecurityPersistence
Returns:
Serializable - the copy of the persistent database.
Throws:
DSESecurityException - - database error.

save

public void save(java.io.Serializable db)
          throws DSESecurityException
Replace the persistent database with the in-memory copy.
Specified by:
save in interface SecurityPersistence
Parameters:
db - Serializable - the in-memory database.
Throws:
DSESecurityException - - database error.

shutdown

public void shutdown()
Shutdown this database.
Specified by:
shutdown in interface SecurityPersistence
Tags copied from interface: SecurityPersistence
Throws:
DSESecurityException - - database error.