|
|||||||||
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.SecurityRight
This class represents a security right.
Fields inherited from class com.ibm.dse.applsrv.aa.SecurityObject |
fs |
Constructor Summary | |
protected |
SecurityRight(java.lang.String nameOfRight)
Create a new instance of a Right with the specified name. |
Method Summary | |
protected void |
_save()
A hack to force inheritence of a static method. |
protected static void |
checkRights(java.lang.String[] rightsToCheck)
Verify that all of the named rights actually exist. |
static void |
controller(SecurityController ctrl)
Set the security controller. |
boolean |
delete()
Delete this right. |
protected static boolean |
delete(java.lang.String right)
Delete the named right. |
protected static boolean |
deleteRights(java.lang.String[] rightsToDelete,
java.lang.String[] options)
Delete the named rights subject to the specified options. |
protected static boolean |
disablePersist()
Disable persistence for rights. |
protected static java.util.Enumeration |
enumerationOverRights()
Return an enumeration over the rights. |
protected static void |
forceSave()
Force a save of the current state of the rights to the database. |
protected static SecurityRight |
get(java.lang.String nameOfRight,
boolean create)
Return the right with the specified name. |
Dictionary |
getAttributes()
Return a dictionary containing all of the attributes of this right. |
protected static java.lang.String[] |
getCreatedRights()
Return the list of the names of the user created rights. |
protected static SecurityPersistence |
getDB()
Return the persistence controller for this class. |
protected static java.lang.String |
getPathName()
Return the pathname of this database of rights. |
protected static boolean |
getPersist()
Return the persistence state for rights. |
protected static java.lang.String[] |
getRightIds()
Return the list of names of the rights. |
protected static java.lang.String[] |
initializeRights()
Insure that all of the intrinsic rights exists and return this list. |
protected static java.lang.String[] |
initRights()
Return the list of initial rights for the default user. |
protected static void |
load()
Load the current state of the rights from the database. |
protected static Dictionary |
loadr()
Load and return the current state of the rights from the database. |
protected static int |
numberOfRights()
Return the number of rights that are currently defined. |
protected static void |
reset()
Reset the rights. |
void |
resetAttributes()
Reset all attributes of this right with the exception of the right's name. |
protected static Dictionary |
rights()
Return a copy of the dictionary of rights. |
protected static void |
save()
Save the current state of the rights to the database. |
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. |
protected static void |
setPersist(boolean persistence)
Enable or disable persistence for rights. |
protected static void |
shutdown()
Shutdown the security component. |
java.lang.String |
toString()
Returns a string representation of this object. |
void |
verify()
Verify this right. |
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 SecurityRight(java.lang.String nameOfRight) throws DSESecurityException
nameOfRight
- String - the name of this right.Method Detail |
protected void _save() throws DSESecurityException
protected static void checkRights(java.lang.String[] rightsToCheck) throws DSESecurityException
rightsToCheck
- String[] - the names of the rights to delete.public static void controller(SecurityController ctrl)
ctrl
- SecurityController - the security controller.public boolean delete() throws DSESecurityException
protected static boolean delete(java.lang.String right) throws DSESecurityException
right
- String - the name of the right to delete.protected static boolean deleteRights(java.lang.String[] rightsToDelete, java.lang.String[] options) throws DSESecurityException
rightsToDelete
- String[] - the names of the rights to delete.options
- String[] - the options for this command.protected static boolean disablePersist()
protected static java.util.Enumeration enumerationOverRights()
protected static void forceSave() throws DSESecurityException
protected static SecurityRight get(java.lang.String nameOfRight, boolean create) throws DSESecurityException
nameOfRight
- String - the name of the right.create
- boolean - if the right does not exist then if true then create it else just return null.public Dictionary getAttributes() throws DSESecurityException
protected static java.lang.String[] getCreatedRights() throws DSESecurityException
protected static SecurityPersistence getDB()
protected static java.lang.String getPathName()
protected static boolean getPersist()
protected static java.lang.String[] getRightIds()
protected static java.lang.String[] initializeRights()
protected static java.lang.String[] initRights()
protected static void load() throws DSESecurityException
protected static Dictionary loadr() throws DSESecurityException
protected static int numberOfRights()
protected static void reset() throws DSESecurityException
public void resetAttributes() throws DSESecurityException
protected static Dictionary rights()
protected static void save() throws DSESecurityException
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.protected static void setPersist(boolean persistence)
persistence
- boolean - true to enable persistence, false to disable it.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 |