|
Oracle Internet Directory API Reference 10g(9.0.4) B10423-01 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.ldap.util.LDAPEntry | +--oracle.ldap.util.LDAPGroup | +--oracle.ldap.util.Group
This class represents a Group object in the directory.
Constructor Summary | |
Group(int inGroupIdType, java.lang.String inGroupIdName) Constructs a Group using a group ID along with its type |
Method Summary | |
java.lang.String |
getDn(javax.naming.directory.DirContext ctx) Returns the DN of this group. |
PropertySetCollection |
getProperties(javax.naming.directory.DirContext ctx, java.lang.String[] attrList) Returns the attributes specified from this group object. |
boolean |
isMember(javax.naming.directory.DirContext ctx, User user, boolean nested) Checks if a particular user is a member of this group. |
void |
resolve(javax.naming.directory.DirContext ctx) Validates the group by identifying its DN |
Methods inherited from class oracle.ldap.util.LDAPGroup |
addUniquemember, getAllUniquemembers, isUniquemember, removeUniquemember |
Methods inherited from class oracle.ldap.util.LDAPEntry |
getDN, getProperties, setProperties |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Group(int inGroupIdType, java.lang.String inGroupIdName) throws UtilException
inGroupIdType
- The type of group ID being used - either Util.IDTYPE_DN or Util.IDTYPE_GUIDinGroupIdName
- the Group IDUtilException
Method Detail |
public void resolve(javax.naming.directory.DirContext ctx) throws UtilException
resolve
in class LDAPEntry
ctx
- A valid DirContextUtilException
public boolean isMember(javax.naming.directory.DirContext ctx, User user, boolean nested) throws UtilException
Checks if a particular user is a member of this group. The method returns true if the user is a member of this group. Otherwise, it will return false.
ctx
- A valid DirContextuser
- A valid User objectnested
- Set to true if nested memberships are allowed. Otherwise, only direct memberships are considered group; false otherwise.UtilException
public java.lang.String getDn(javax.naming.directory.DirContext ctx) throws UtilException
UtilException
public PropertySetCollection getProperties(javax.naming.directory.DirContext ctx, java.lang.String[] attrList) throws UtilException
Returns the attributes specified from this group object. Any previously cached values in this user object from previous searches will be used
If a new search is desired, use the other getProperties(DirContext, String, boolean)
ctx
- a valid DirContextattrList
- an array of attributes to be returnedUtilException
|
Oracle Internet Directory API Reference 10g(9.0.4) B10423-01 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |