public class ServiceRecipient extends LDAPGroup
* This class represents a ServiceRecipient which contains the subscription information of a particular service. A ServiceRecipient object can be obtained directly through its constructor if the DN of the recipient entry is known. Otherwise, to obtain the ServiceRecipients belonging to a particular realm, Subscriber object should be used.
| Constructor and Description |
|---|
ServiceRecipient(javax.naming.directory.DirContext inctx, java.lang.String inputDN)
Constructs a
ServiceRecipient object using the given DN |
ServiceRecipient(javax.naming.directory.DirContext inctx, java.lang.String inputDN, PropertySet ps)
Constructs a
ServiceRecipient object |
| Modifier and Type | Method and Description |
|---|---|
void |
addUniquemember(javax.naming.directory.DirContext ctx, java.lang.String dn)
Adds the DN (currently user DN only) as a member of this service recipient list
|
void |
addUniquemember(javax.naming.directory.DirContext ctx, java.lang.String[] dnArr)
Adds an array of DN's as members of this service recipient list
|
void |
removeUniquemember(javax.naming.directory.DirContext ctx, java.lang.String dn)
Removes the DN as a subscriber from this service recipient list.
|
void |
resolve(javax.naming.directory.DirContext ctx)
Determines if the service defined is a valid service
|
getAllUniquemembers, isUniquemembergetDN, getProperties, setProperties
public ServiceRecipient(javax.naming.directory.DirContext inctx,
java.lang.String inputDN)
throws UtilException
ServiceRecipient object using the given DNctx - a valid DirContextinputDN - - the DN representing the serviceUtilException
public ServiceRecipient(javax.naming.directory.DirContext inctx,
java.lang.String inputDN,
PropertySet ps)
throws UtilException
ServiceRecipient objectUtilException
public void addUniquemember(javax.naming.directory.DirContext ctx,
java.lang.String dn)
throws UtilException
addUniquemember in class LDAPGroupctx - a valid DirContextuser - the User object representing the user to be addedUtilException
public void addUniquemember(javax.naming.directory.DirContext ctx,
java.lang.String[] dnArr)
throws UtilException
ctx - a valid DirContextdnArr - a String[] of DNs to be added as membersUtilException
public void removeUniquemember(javax.naming.directory.DirContext ctx,
java.lang.String dn)
throws UtilException
removeUniquemember in class LDAPGroupctx - a valid DirContextuser - the User object representing the user to be addedUtilException
public void resolve(javax.naming.directory.DirContext ctx)
throws UtilException
resolve in class LDAPEntryctx - a valid DirContextUtilException