com.ibm.dse.applsrv.aa
Class SecurityTextPersistence

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

public class SecurityTextPersistence
extends java.lang.Object
implements SecurityPersistence

This class represents a text file persistence controller for the security objects.


Field Summary
static int CONFIGURATION
           
static int CONTEXTS
           
static int GROUPS
           
static int RIGHTS
           
static int ROLES
           
static int SERVICES
           
static int USERS
          The following constants defined the types of persistence defined by this class.
 
Constructor Summary
SecurityTextPersistence()
          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 an object 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
 

Field Detail

USERS

public static final int USERS
The following constants defined the types of persistence defined by this class.

CONTEXTS

public static final int CONTEXTS

RIGHTS

public static final int RIGHTS

ROLES

public static final int ROLES

SERVICES

public static final int SERVICES

GROUPS

public static final int GROUPS

CONFIGURATION

public static final int CONFIGURATION
Constructor Detail

SecurityTextPersistence

public SecurityTextPersistence()
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 an object 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. [not used by this implementation]
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.