|
|||||||||
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.SecurityGroup
This class represents a security group.
Fields inherited from class com.ibm.dse.applsrv.aa.SecurityObject |
fs |
Constructor Summary | |
protected |
SecurityGroup(java.lang.String nameOfGroup)
Create a new instance of a Group with the specified name. |
Method Summary | |
protected void |
_save()
A hack to force inheritence of a static method. |
void |
addSubgroup(java.lang.String subgroup)
Add a subgroup to the current group. |
void |
addSubgroupNCNS(java.lang.String subgroup)
Add a subgroup to the current group. |
void |
addUser(java.lang.String userID)
Add a user to the current group. |
static void |
controller(SecurityController ctrl)
Set the security controller. |
boolean |
delete()
Delete this group. |
protected static boolean |
delete(java.lang.String group)
Delete the named group. |
protected static boolean |
disablePersist()
Disable persistence for groups. |
protected static java.util.Enumeration |
enumerationOverGroups()
Return an enumeration over the groups. |
void |
fix()
Set the parent pointers of all subgroups of this group to point to self. |
protected static void |
forceSave()
Force a save of the current state of the groups to the database. |
protected static SecurityGroup |
get(java.lang.String nameOfGroup,
boolean create)
Return the group with the specified name. |
Dictionary |
getAllInheritedData()
Return a dictionary of all inherited data. |
Array |
getAllSubgroups(boolean include)
Return a list of the names of all the subgroups (direct or indirect) of the current group. |
Array |
getAllUsers()
Return a list of all direct or indirect members (users) of the current group. |
Dictionary |
getAttributes()
Return a dictionary containing all of the attributes of this group. |
protected static SecurityPersistence |
getDB()
Return the persistence controller for this class. |
protected static java.lang.String[] |
getGroupIds()
Return the list of names of the groups. |
java.lang.String |
getInheritedData(java.lang.String key)
Return the value associated with specified name in this group or the closest supergroup. |
java.lang.String |
getParent()
Return the name of the parent group. |
protected static java.lang.String |
getPathName()
Return the pathname of this database of groups. |
protected static boolean |
getPersist()
Return the persistence state for groups. |
Array |
getSubGroups()
Return a copy of the list of direct subgroups associated with this group. |
java.lang.String[] |
getSubGroupsAsArray()
Return a copy of the list of direct subgroups associated with this group. |
java.lang.String[] |
getSubGroupsAsArrayOrNull()
Return a copy of the list of direct subgroups associated with this group. |
Array |
getUsers()
Return a copy of the list of users associated with this group. |
java.lang.String[] |
getUsersAsArray()
Return a copy of the list of users associated with this group. |
java.lang.String[] |
getUsersAsArrayOrNull()
Return a copy of the list of users associated with this group. |
protected static Dictionary |
groups()
Return a copy of the dictionary of groups. |
boolean |
hasMember(java.lang.String user,
boolean direct)
Check if the specified user is a direct or indirect member of this group. |
boolean |
hasSubgroup(java.lang.String subgroup)
Check if the specified group is a direct subgroup of this group. |
boolean |
hasUser(java.lang.String user)
Check if the current group has user as a direct member. |
protected static void |
load()
Load the current state of the groups from the database. |
protected static Dictionary |
loadr()
Load and return the current state of the groups from the database. |
protected static Array |
membership(java.lang.String user)
Return the list of groups of which user is a direct member. |
protected static int |
numberOfGroups()
Return the number of groups that are currently defined. |
void |
removeSubgroup(java.lang.String subgroup)
Remove a subgroup from the current group. |
void |
removeUser(java.lang.String user)
Remove a user from the current group. |
protected static void |
reset()
Reset the groups. |
void |
resetAttributes()
Reset all attributes of this group with the exception of the group's name. |
protected static void |
save()
Save the current state of the groups 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 groups. |
protected static void |
shutdown()
Shutdown the security component. |
java.lang.String |
toString()
Returns a string representation of this object. |
void |
unlink()
Remove this group from its parent. |
void |
verify()
Verify this group. |
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 SecurityGroup(java.lang.String nameOfGroup) throws DSESecurityException
nameOfGroup
- String - the name of this group.Method Detail |
protected void _save() throws DSESecurityException
public void addSubgroup(java.lang.String subgroup) throws DSESecurityException
subgroup
- String - the name of the subgroup.public void addSubgroupNCNS(java.lang.String subgroup)
subgroup
- String - the name of the subgroup.public void addUser(java.lang.String userID) throws DSESecurityException
userID
- 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 group) throws DSESecurityException
group
- String - the name of the group to delete.protected static boolean disablePersist()
protected static java.util.Enumeration enumerationOverGroups()
public void fix() throws DSESecurityException
protected static void forceSave() throws DSESecurityException
protected static SecurityGroup get(java.lang.String nameOfGroup, boolean create) throws DSESecurityException
nameOfGroup
- String - the name of the group.create
- boolean - if the group does not exist then if true then create it else just return null.public Dictionary getAllInheritedData()
public Array getAllSubgroups(boolean include)
include
- boolean - true or false to include or exclude the current group respectively.public Array getAllUsers()
public Dictionary getAttributes() throws DSESecurityException
protected static SecurityPersistence getDB()
protected static java.lang.String[] getGroupIds()
public java.lang.String getInheritedData(java.lang.String key)
key
- String - the name of the data item.public java.lang.String getParent()
protected static java.lang.String getPathName()
protected static boolean getPersist()
public Array getSubGroups()
public java.lang.String[] getSubGroupsAsArray()
public java.lang.String[] getSubGroupsAsArrayOrNull()
public Array getUsers()
public java.lang.String[] getUsersAsArray()
public java.lang.String[] getUsersAsArrayOrNull()
protected static Dictionary groups()
public boolean hasMember(java.lang.String user, boolean direct)
user
- String - the name of the user.direct
- boolean - if true then check only direct membership, if false then check direct/indirect membership.public boolean hasSubgroup(java.lang.String subgroup)
subgroup
- String - the name of the group to check.public boolean hasUser(java.lang.String user)
user
- String - the ser id.protected static void load() throws DSESecurityException
protected static Dictionary loadr() throws DSESecurityException
protected static Array membership(java.lang.String user)
user
- String - the user id.protected static int numberOfGroups()
public void removeSubgroup(java.lang.String subgroup) throws DSESecurityException
subgroup
- String - the name of the subgroup.public void removeUser(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
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 unlink() throws DSESecurityException
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 |