com.ibm.dse.applsrv.aa
Class SecurityLimit

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

public class SecurityLimit
extends SecurityObject
implements SecurityConstants, java.io.Serializable

This class represents a limit to the security system.

See Also:
Serialized Form

Field Summary
protected  Dictionary containerlmt
           
protected  SecurityController controller
           
protected static java.lang.String db
           
protected static Array limits
           
protected static java.lang.String pathName
           
protected static boolean persist
           
protected  Dictionary transactionlmt
           
protected  java.lang.String userid
           
protected static SecurityPersistence xdb
           
 
Fields inherited from class com.ibm.dse.applsrv.aa.SecurityObject
fs
 
Fields inherited from interface com.ibm.dse.applsrv.aa.SecurityConstants
ACTIVE_CONTEXTS, ALL_CONTEXTS, AUDIT_FILE, CBTF_TRACING, CONFIGURATION, CONFIGURATIONS_DATABASE, CONTEXT_ACTIVE, CONTEXT_DATABASE, CONTEXT_INACTIVE, CONTEXT_INVALID, CONTEXTS, CONTROLLER, DEFAULT_CONFIGURATIONS_DATABASE, DEFAULT_CONTEXT_DATABASE, DEFAULT_GROUPS_DATABASE, DEFAULT_RIGHTS_DATABASE, DEFAULT_ROLES_DATABASE, DEFAULT_SERVICES_DATABASE, DEFAULT_USER_DATABASE, ENCRYPTION, GLOBAL_CONTEXTS, GROUPS, GROUPS_DATABASE, INACTIVE_CONTEXTS, JDBC_DATABASE, JDBC_DRIVER, JDBC_MAX_DATA, JDBC_MAX_GROUPS, JDBC_MAX_HANDLER, JDBC_MAX_ID, JDBC_MAX_PASSWORD, JDBC_MAX_RIGHT_TIMES, JDBC_MAX_RIGHTS, JDBC_MAX_ROLE_TIMES, JDBC_MAX_ROLES, JDBC_MAX_USER_ID, JDBC_MAX_USERS, JDBC_PASSWORD, JDBC_URL, JDBC_USER_ID, LIMIT_DATABASE, LIMITS, LOGGING_HANDLER, LOGGING_OPTIONS, PERSIST_CONTEXTS, PERSISTENCE, QUERY_PASSWORDS, RIGHTS, RIGHTS_DATABASE, ROLES, ROLES_DATABASE, SECURITY_DIRECTORY, SECURITY_MANAGER, SERVICES, SERVICES_DATABASE, SPECIFIC_CONTEXTS, TEST_ADD_RIGHT_TO_USER, TEST_ADD_RIGHTS_TO_USER, TEST_AUDIT, TEST_CONTEXT_IDS, TEST_DISABLE_PERSISTENCE, TEST_EXPORT, TEST_GET_CONFIGURATION, TEST_GET_CONTEXTS, TEST_GET_GROUPS, TEST_GET_PASSWORD_ACCESS, TEST_GET_PERSISTENCE, TEST_GET_RIGHTS, TEST_GET_ROLES, TEST_GET_SERVICES, TEST_GET_UNIQUE_LOGON, TEST_GET_USERS, TEST_GROUP_IDS, TEST_IMPORT, TEST_IMPORT2, TEST_LOAD_CONFIGURATIONS, TEST_LOAD_CONTEXTS, TEST_LOAD_GROUPS, TEST_LOAD_RIGHTS, TEST_LOAD_ROLES, TEST_LOAD_SERVICES, TEST_LOAD_USERS, TEST_PERSISTENCE, TEST_QUERY_SM, TEST_REMOVE_ALL_RIGHTS_FROM_USER, TEST_RESET, TEST_RIGHT_IDS, TEST_ROLE_IDS, TEST_SAVE, TEST_SERVICE_IDS, TEST_SET_CONFIGURATION, TEST_SET_PASSWORD_ACCESS, TEST_SET_PERSISTENCE, TEST_SET_UNIQUE_LOGON, TEST_TEST1, TEST_TEST2, TEST_TEST3, TEST_TRACE, TEST_USER_IDS, TRACE_EXCEPTIONS, TRACE_FILE, TRACE_LOGGER, UNIQUE_LOGONS, USE_LIMITS, USER_DATABASE, USERS
 
Constructor Summary
protected SecurityLimit()
          Default SecurityLimit constructor
protected SecurityLimit(java.lang.String userid, java.lang.String curcode)
          SecurityLimit constructor
 
Method Summary
protected  void _save()
          Sets the dictionary of data associations.
protected static boolean disablePersist()
          Disables persistence for limits.
protected  Dictionary getContainerLmt()
          Returns a copy of the limit information relating to container limits
protected static java.lang.String getPathName()
          Returns the pathname of limits database.
protected static boolean getPersist()
          Returns the persistence state for limits.
protected  Dictionary getTransactionLmt()
          Returns a copy of the limit information relating to transaction limits
protected static void load()
          Loads the current state of the limits from the database.
protected static void mapLimitstoUsers()
          Adds limits to users (Each limits belongs to a user.)
protected static void reset()
          Resets the limits
protected static void save()
          Saves the current state of the limits to the database.
protected  void setContainerLmt(Dictionary aContainerLmt)
          Sets the limit information relating to container limits (for a concrete limit)
protected static void setDB(SecurityPersistence securityPersistence)
          Sets the persistence controller for this class.
protected static void setPersist(boolean persistence)
          Enables or disables persistence for limits.
protected  void setTransactionLmt(Dictionary aContainerLmt)
          Sets the limit information relating to transactoin limits (for a concrete limit)
 
Methods inherited from class com.ibm.dse.applsrv.aa.SecurityObject
getData, getData, getDataOrNull, getName, home, prefix, putData, putData, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

xdb

protected static SecurityPersistence xdb

persist

protected static boolean persist

limits

protected static Array limits

pathName

protected static java.lang.String pathName

db

protected static java.lang.String db

controller

protected final SecurityController controller

containerlmt

protected Dictionary containerlmt

transactionlmt

protected Dictionary transactionlmt

userid

protected java.lang.String userid
Constructor Detail

SecurityLimit

protected SecurityLimit()
Default SecurityLimit constructor

SecurityLimit

protected SecurityLimit(java.lang.String userid,
                        java.lang.String curcode)
                 throws DSESecurityException
SecurityLimit constructor
Parameters:
userid - java.lang.String . The owner user of the limit
curcode - java.lang.String .The currency code of the limit
Throws:
DSESecurityException - - error in the request.
Method Detail

_save

protected void _save()
              throws DSESecurityException
Sets the dictionary of data associations.
Overrides:
_save in class SecurityObject
Throws:
DSESecurityException - - database error.

disablePersist

protected static boolean disablePersist()
Disables persistence for limits.
Returns:
boolean - true if contexts were persisting else false.

getContainerLmt

protected Dictionary getContainerLmt()
                              throws DSESecurityException
Returns a copy of the limit information relating to container limits
Returns:
com.ibm.dse.applsrv.aa.Dictionary - a copy of the container limit information
Throws:
DSESecurityException - - thrown when a problem occurs while retrieving limit information

getPathName

protected static java.lang.String getPathName()
Returns the pathname of limits database.
Returns:
java.lang.String - the pathname of this database or null if its not configured.

getPersist

protected static boolean getPersist()
Returns the persistence state for limits.
Returns:
boolean - true if roles are persisting else false.

getTransactionLmt

protected Dictionary getTransactionLmt()
                                throws DSESecurityException
Returns a copy of the limit information relating to transaction limits
Returns:
com.ibm.dse.applsrv.aa.Dictionary - a copy of the transaction limit information
Throws:
DSESecurityException - - thrown when a problem occurs while retrieving limit information

load

protected static void load()
                    throws DSESecurityException
Loads the current state of the limits from the database.
Throws:
DSESecurityException - - thrown when a problem occurs while retrieving limits information from database.

mapLimitstoUsers

protected static void mapLimitstoUsers()
                                throws DSESecurityException
Adds limits to users (Each limits belongs to a user.)
Throws:
DSESecurityException - - thrown when a problem occurs while adding limits to users

reset

protected static void reset()
                     throws DSESecurityException
Resets the limits
Throws:
DSESecurityException - - throws when a problem occurs while resetting limits in database.

save

protected static void save()
                    throws DSESecurityException
Saves the current state of the limits to the database.
Throws:
DSESecurityException - - thrown when a problem occurs while saving limits to database

setContainerLmt

protected void setContainerLmt(Dictionary aContainerLmt)
                        throws DSESecurityException
Sets the limit information relating to container limits (for a concrete limit)
Parameters:
aContainerLmt - com.ibm.dse.applsrv.aa.Dictionary - container limit information
Throws:
DSESecurityException - - thrown when a problem occurs while setting limit information

setDB

protected static void setDB(SecurityPersistence securityPersistence)
Sets the persistence controller for this class.
Parameters:
securityPersistence - SecurityPersistence - the persistence controller.

setPersist

protected static void setPersist(boolean persistence)
Enables or disables persistence for limits.
Parameters:
persistence - boolean - true to enable persistence, false to disable it.

setTransactionLmt

protected void setTransactionLmt(Dictionary aContainerLmt)
                          throws DSESecurityException
Sets the limit information relating to transactoin limits (for a concrete limit)
Parameters:
aTransactionLmt - com.ibm.dse.applsrv.aa.Dictionary - transaction limit information
Throws:
DSESecurityException - - thrown when a problem occurs while setting limit information