|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.dse.applsrv.aa.SecurityObject | +--com.ibm.dse.applsrv.aa.SecurityContext
The class defines a user's context.
Fields inherited from class com.ibm.dse.applsrv.aa.SecurityObject |
fs |
Constructor Summary | |
protected |
SecurityContext(java.lang.String user)
Create a new instance of a context with the specified user. |
protected |
SecurityContext(java.lang.String user,
int contextId)
Create a new instance of a context with the specified data. |
Method Summary | |
protected void |
_save()
A hack to force inheritence of a static method. |
void |
activate()
Activate this context. |
protected static Dictionary |
contexts()
Return a copy of the dictionary of contexts. |
static void |
controller(SecurityController ctrl)
Set the security controller. |
void |
deactivate()
Deactivate this context. |
boolean |
delete()
Delete this context. |
protected static boolean |
delete(int context)
Delete the specified context. |
protected static boolean |
disablePersist()
Disable persistence for contexts. |
protected static java.util.Enumeration |
enumerationOverContexts()
Return an enumeration over the contexts. |
protected static void |
forceSave()
Force a save of the current state of the contexts to the database. |
protected static SecurityContext |
get(int contextID,
java.lang.String user)
Return the context with the specified id. |
boolean |
getActive()
Return the active status of this context. |
Dictionary |
getAttributes()
Return a dictionary containing all of the attributes of this context. |
int |
getContext()
Return the id of this context. |
protected static int[] |
getContextIds()
Return a array of the integer ids of all the contexts. |
protected static SecurityPersistence |
getDB()
Return the persistence controller for this class. |
boolean |
getForcedSignOff()
Return forced sign off status of this context. |
java.lang.String |
getOverride()
Return the override userid of this context. |
protected static java.lang.String |
getPathName()
Return the pathname of this database of contexts. |
protected static boolean |
getPersist()
Return the persistence state for contexts. |
java.lang.String |
getUser()
Return the userid of this context. |
protected static void |
load()
Load the current state of the contexts from the database. |
protected static IntegerKeyDictionary |
loadr()
Load and return the current state of the contexts from the database. |
protected static void |
removeAllContextsReferringTo(java.lang.String user)
Remove all contexts refering to the named user from the system. |
protected static void |
reset()
Reset the contexts. |
void |
resetAttributes()
Reset all attributes of this context with the exception of the context's id and user id. |
protected static void |
save()
Save the current state of the contexts to the database. |
void |
setActive(boolean makeActive)
Set the active status of this context. |
void |
setAttributes(boolean active,
boolean forcedSignOff,
java.lang.String override)
Set various attributes of this context. |
protected static void |
setDB(SecurityPersistence securityPersistence)
Set the persistence controller for this class. |
protected static void |
setFileName(java.lang.String fileName)
Set the filename of this database. |
void |
setForcedSignOff(boolean forcedSignOff)
Set the forced sign off status of this context. |
void |
setOverride(java.lang.String userid)
Set the override userid of this context. |
protected static void |
setPersist(boolean persistence)
Enable or disable persistence for contexts. |
void |
setUser(java.lang.String user)
Set the user of this context. |
protected static void |
shutdown()
Shutdown the security component. |
java.lang.String |
toString()
Returns a string representation of this object. |
void |
verify()
Verify this context. |
protected static void |
verifyAll()
Verify the consistancy of this database. |
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,
wait,
wait,
wait |
Constructor Detail |
protected SecurityContext(java.lang.String user) throws DSESecurityException
user
- String - the name of this user.protected SecurityContext(java.lang.String user, int contextId) throws DSESecurityException
user
- String - the name of this user.contextId
- int - the id of this new context.Method Detail |
protected void _save() throws DSESecurityException
public void activate() throws DSESecurityException
protected static Dictionary contexts()
public static void controller(SecurityController ctrl)
ctrl
- SecurityController - the security controller.public void deactivate() throws DSESecurityException
public boolean delete() throws DSESecurityException
protected static boolean delete(int context) throws DSESecurityException
context
- int - the id of the context to delete.protected static boolean disablePersist()
protected static java.util.Enumeration enumerationOverContexts()
protected static void forceSave() throws DSESecurityException
protected static SecurityContext get(int contextID, java.lang.String user) throws DSESecurityException
contextID
- int - the context id.user
- String - if the context does not exist then if user is specified then create it else just return null.public boolean getActive()
public Dictionary getAttributes() throws DSESecurityException
public int getContext()
protected static int[] getContextIds()
protected static SecurityPersistence getDB()
public boolean getForcedSignOff()
public java.lang.String getOverride()
protected static java.lang.String getPathName()
protected static boolean getPersist()
public java.lang.String getUser()
protected static void load() throws DSESecurityException
protected static IntegerKeyDictionary loadr() throws DSESecurityException
protected static void removeAllContextsReferringTo(java.lang.String user) throws DSESecurityException
user
- String - the name of the user.protected static void reset() throws DSESecurityException
public void resetAttributes() throws DSESecurityException
protected static void save() throws DSESecurityException
public void setActive(boolean makeActive) throws DSESecurityException
makeActive
- boolean - the active status.public void setAttributes(boolean active, boolean forcedSignOff, java.lang.String override) throws DSESecurityException
active
- boolean - the active status.forcedSignOff
- boolean - true if the last signoff of this context was a forced signoff else false.override
- String - the override id.protected static void setDB(SecurityPersistence securityPersistence)
securityPersistence
- SecurityPersistence - the persistence controller.protected static void setFileName(java.lang.String fileName)
fileName
- String - the name of this database.public void setForcedSignOff(boolean forcedSignOff) throws DSESecurityException
forcedSignOff
- boolean - true if the last signoff of this context was a forced signoff else false.public void setOverride(java.lang.String userid) throws DSESecurityException
userid
- String - the override userid.protected static void setPersist(boolean persistence)
persistence
- boolean - true to enable persistence, false to disable it.public void setUser(java.lang.String user) throws DSESecurityException
user
- String - the user.protected static void shutdown() throws DSESecurityException
public java.lang.String toString()
public void verify() throws DSESecurityException
protected static void verifyAll() throws DSESecurityException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |