|
SilverStream Application Server 3.5 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Implemented by objects that represent containers such as servers, databases, directories, and groups -- that is, entities that contain other entities.
Field Summary | |
static int |
GET_CHILDREN_EX
A flag value to be used in the getChildren method. |
static int |
GET_CHILDREN_NTDOMAINS_PRIMARY_ONLY
A flag value to be used in the getChildren method. |
static int |
GET_CHILDREN_NTDOMAINS_TRUSTED_ONLY
A flag value to be used in the getChildren method. |
static int |
GET_CHILDREN_SORTED
A flag value to be used in the getChildren method. |
static int |
GET_CHILDREN_WITH_INFO
A flag value to be used in the getChildren method. |
Fields inherited from interface com.sssw.rts.adminapi.AgiAdmElement |
ACL_KEY,
APPLY_TO_DESC,
APPLY_TO_DESC_SUPPORTED,
DIRECTORY_LIST_SECURITY,
GET_PERMS_AS_ACL,
GET_PERMS_DEFAULT,
PROP_CERTIFICATE,
PROP_DESCRIPTION,
PROP_DOMAIN,
PROP_FULL_NAME,
PROP_IS_LOCKSMITH,
PROP_LDAP_SERVER,
PROP_NAME,
PROP_NISPLUS_SERVER,
PROP_PARENT_URL,
PROP_PASSWORD,
PROP_QUAL_NAME,
PROP_TYPE,
PROP_URL,
REQUIRE_LOGIN,
REQUIRE_LOGIN_SUPPORTED |
Fields inherited from interface com.sssw.rts.adminapi.AgiAdmContainerBase |
GET_CHILDREN_DFLT |
Methods implemented from interface com.sssw.rts.adminapi.AgiAdmElement |
getPermissions,
getServerURL,
getURL,
getVariables,
isAuthorized,
setPermissions |
Methods implemented from interface com.sssw.rts.adminapi.AgiAdmContainerBase |
addChild,
getChild,
getChildren |
Methods implemented from interface com.sssw.rts.adminapi.AgiAdmElementBase |
delete,
getName,
getType |
Methods implemented from interface com.sssw.rts.adminapi.AgiAdmPropertyBag |
getProperties,
getProperty,
setProperties,
setProperty |
Methods implemented from interface com.sssw.rts.adminapi.AgiAdmChanges |
cancelChanges,
saveChanges |
Field Detail |
public static final int GET_CHILDREN_SORTED
AgiAdmContainerBase.getChildren(int options)
AgiAdmGroup group = ... // get to a group Enumeration groupMembers = group.getChildren(AgiAdmContainer.GET_CHILDREN_SORTED); while(users.hasMoreElements()) { AgiAdmUserReference userref = (AgiAdmUserReference)groupMembers.nextElement(); // do something with the user reference }
public static final int GET_CHILDREN_NTDOMAINS_PRIMARY_ONLY
AgiAdmContainerBase.getChildren(int options)
Should only be used when calling getChildren off AgiAdmDirectory whose type is AgiAdmDirectory.NT_SECURITY.
AgiAdmDirectory ntSecurityDir = ... // get to NT Security Enumeration primaryDomains = ntSecurityDir.getChildren( AgiAdmContainer.GET_CHILDREN_NTDOMAINS_PRIMARY_ONLY); while(primaryDomains.hasMoreElements()) { AgiAdmDirectory dom = (AgiAdmDirectory)primaryDomains.nextElement(); ........ }
public static final int GET_CHILDREN_NTDOMAINS_TRUSTED_ONLY
AgiAdmContainerBase.getChildren(int options)
Should only be used when calling getChildren off AgiAdmDirectory whose type is AgiAdmDirectory.NT_SECURITY.
AgiAdmDirectory ntSecurityDir = ... // get to NT Security Enumeration primaryDomains = ntSecurityDir.getChildren( AgiAdmContainer.GET_CHILDREN_NTDOMAINS_TRUSTED_ONLY); while(primaryDomains.hasMoreElements()) { AgiAdmDirectory dom = (AgiAdmDirectory)primaryDomains.nextElement(); ........ }
public static final int GET_CHILDREN_WITH_INFO
AgiAdmContainerBase.getChildren(int options)
Should only be used when calling getChildren off AgiAdmDirectory whose type is AgiAdmDirectory.SILVERUSERS, SILVERGROUPS, NTUSERS, or NTGROUPS.
Using this option may be slow, especially when enumerating large numbers of users or groups, especially within NT domains.
AgiAdmDirectory silverUsersDir = ... // get to Silver Users Enumeration silverUsers = silverUsersDir.getChildren(AgiAdmContainer.GET_CHILDREN_WITH_INFO); while(silverUsers.hasMoreElements()) { AgiAdmUser silverUser = (AgiAdmUser)silverUsers.nextElement(); // Get the user's description String description = silverUser.getProperty(AgiAdmElement.PROP_DESCRIPTION); // Get the user's full name String fullName = silverUser.getProperty(AgiAdmElement.PROP_FULL_NAME); // Determine whether the user is a locksmith Boolean isLocksmith = silverUser.getProperty(AgiAdmElement.PROP_IS_LOCKSMITH); // Get the user's fully qualified name String qualName = silverUser.getProperty(AgiAdmElement.PROP_QUAL_NAME); // do something with the retrieved information } AgiAdmDirectory ntGroupsDir = ... // get to NT groups in a domain Enumeration ntGroups = ntGroupsDir.getChildren(AgiAdmContainer.GET_CHILDREN_WITH_INFO); while(ntGroups.hasMoreElements()) { AgiAdmGroup ntGroup = (AgiAdmGroup)ntGroups.nextElement(); // Get the group's description String description = ntGroup.getProperty(AgiAdmElement.PROP_DESCRIPTION); // Determine whether the group has the locksmith privilege Boolean isLocksmith = ntGroup.getProperty(AgiAdmElement.PROP_IS_LOCKSMITH); // Get the group's fully qualified name String qualName = ntGroup.getProperty(AgiAdmElement.PROP_QUAL_NAME); // do something with the retrieved information }
public static final int GET_CHILDREN_EX
AgiAdmContainerBase.getChildren(int options)
This can only be used when calling getChildren off AgiAdmDatabase. When this flag is supplied, the getChildren method will add the list of servlet directories to the list of other children of AgiAdmDatabase.
Calling getChildren without this flag will return the list of the "well-known" directories only.
|
SilverStream Application Server 3.5 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |