|
|||||||||
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.SecurityService
This class represents a security service.
Fields inherited from class com.ibm.dse.applsrv.aa.SecurityObject |
fs |
Constructor Summary | |
protected |
SecurityService(java.lang.String nameOfService)
Create a new instance of a Service with the specified name. |
Method Summary | |
protected void |
_save()
A hack to force inheritence of a static method. |
void |
addRight(java.lang.String right)
Add a right to this service. |
void |
addRights(java.lang.String[] namesOfRights)
Add rights to this service. |
boolean |
allow(SecurityUser user)
Check user accessibility of this service. |
boolean |
allow(java.lang.String userName)
Check user accessibility of this service. |
static void |
controller(SecurityController ctrl)
Set the security controller. |
boolean |
delete()
Delete this service. |
protected static boolean |
delete(java.lang.String service)
Delete the named service. |
boolean |
deleteRight(java.lang.String right)
Delete a right from this service. |
void |
deleteRights(java.lang.String[] namesOfRights)
Delete the rights from this service. |
protected static boolean |
disablePersist()
Disable persistence for services. |
protected static java.util.Enumeration |
enumerationOverServices()
Return an enumeration over the services. |
protected static void |
forceSave()
Force a save of the current state of the services to the database. |
protected static SecurityService |
get(java.lang.String nameOfService,
boolean create)
Return the service with the specified name. |
Dictionary |
getAttributes()
Return a dictionary containing all of the attributes of this service. |
protected static SecurityPersistence |
getDB()
Return the persistence controller for this class. |
protected static java.lang.String |
getPathName()
Return the pathname of this database of services. |
protected static boolean |
getPersist()
Return the persistence state for services. |
Array |
getRights()
Return a copy of the rights associated with this service. |
java.lang.String[] |
getRightsAsArray()
Return a copy of the rights associated with this service. |
java.lang.String[] |
getRightsAsArrayOrNull()
Return a copy of the rights associated with this service. |
protected static java.lang.String[] |
getServiceIds()
Return the list of names of the services. |
boolean |
hasRight(java.lang.String right)
Return true if this service has the specified right. |
boolean |
isReferencingRight(java.lang.String right)
Return true if the specified right is being referenced. |
protected static void |
load()
Load the current state of the services from the database. |
protected static Dictionary |
loadr()
Load and return the current state of the services from the database. |
protected static int |
numberOfServices()
Return the number of services that are currently defined. |
protected static void |
reset()
Reset the services. |
void |
resetAttributes()
Reset all attributes of this service with the exception of the service's name. |
void |
resetRights()
Reset the rights for this service. |
protected static void |
save()
Save the current state of the services to the database. |
protected static Dictionary |
services()
Return a copy of the dictionary of services. |
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 services. |
void |
setRights(Array rights)
Set the rights for this service. |
void |
setRights(Array rights,
boolean save)
Set the rights for this service. |
void |
setRights(java.lang.String[] rights)
Set the rights for this service. |
protected static void |
shutdown()
Shutdown the security component. |
java.lang.String |
toString()
Returns a string representation of this object. |
void |
verify()
Verify this service. |
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 SecurityService(java.lang.String nameOfService) throws DSESecurityException
nameOfService
- String - the name of this service.Method Detail |
protected void _save() throws DSESecurityException
public void addRight(java.lang.String right) throws DSESecurityException
right
- String - the name of the right.public void addRights(java.lang.String[] namesOfRights) throws DSESecurityException
namesOfRights
- String[] - the names of the rights.public boolean allow(SecurityUser user)
user
- SecurityUser - the user.public boolean allow(java.lang.String userName)
userName
- String - the name of the user.public static void controller(SecurityController ctrl)
ctrl
- SecurityController - the security controller.public boolean delete() throws DSESecurityException
protected static boolean delete(java.lang.String service) throws DSESecurityException
service
- String - the name of the service to delete.public boolean deleteRight(java.lang.String right) throws DSESecurityException
right
- String - the name of the right.public void deleteRights(java.lang.String[] namesOfRights) throws DSESecurityException
namesOfRights
- String[] - the names of the rights.protected static boolean disablePersist()
protected static java.util.Enumeration enumerationOverServices()
protected static void forceSave() throws DSESecurityException
protected static SecurityService get(java.lang.String nameOfService, boolean create) throws DSESecurityException
nameOfService
- String - the name of the service.create
- boolean - if the service does not exist then if true then create it else just return null.public Dictionary getAttributes() throws DSESecurityException
protected static SecurityPersistence getDB()
protected static java.lang.String getPathName()
protected static boolean getPersist()
public Array getRights()
public java.lang.String[] getRightsAsArray()
public java.lang.String[] getRightsAsArrayOrNull()
protected static java.lang.String[] getServiceIds()
public boolean hasRight(java.lang.String right)
right
- String - the name of the right.public boolean isReferencingRight(java.lang.String right)
right
- String - the name of the right.protected static void load() throws DSESecurityException
protected static Dictionary loadr() throws DSESecurityException
protected static int numberOfServices()
protected static void reset() throws DSESecurityException
public void resetAttributes() throws DSESecurityException
public void resetRights() throws DSESecurityException
protected static void save() throws DSESecurityException
protected static Dictionary services()
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.public void setRights(java.lang.String[] rights) throws DSESecurityException
rights
- String[] - the rights.public void setRights(Array rights) throws DSESecurityException
rights
- Array - the rights.public void setRights(Array rights, boolean save) throws DSESecurityException
rights
- Array - the rights.save
- boolean - true if the change is to be saved else false.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 |