|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ca.jcs.sdkws.forwardinc.GroupHelper
public class GroupHelper
Helper class for general group object related functions.
| Field Summary | |
|---|---|
static List<String> |
DB_ATTRS
Supported database attributes |
static String |
DESCRIPTION
|
static String |
ID
ConnectorMapTo names |
static String |
MEMBERS
|
static String |
NAME
|
| Constructor Summary | |
|---|---|
GroupHelper()
|
|
| Method Summary | |
|---|---|
boolean |
doAdd(SDKWSMetaConnector connector,
Attributes attrs)
Adds a group to the endpoint. |
void |
doConnectionCheck(SDKWSMetaConnector connector)
Method for doing a connection check. |
boolean |
doDelete(SDKWSMetaConnector connector,
String id)
Deletes group from the endpoint. |
Attributes |
doLookUp(SDKWSMetaConnector connector,
String id,
String[] attrIds)
Look up the group from the endpoint. |
boolean |
doModify(SDKWSMetaConnector connector,
String id,
ModificationItem[] modItems)
Modify a ws object from ws endpoint via ws operation. |
NamingEnumeration<SearchResult> |
doSearch(SDKWSMetaConnector connector,
String connectorClassName,
FilterInfo filterInfo)
Handles all searches, or only onelevel and subtree searches. |
Attributes |
makeAttributes(Object object,
String[] attrIds)
Creates an Attributes object for this group from the supplied object. |
String |
makeRDN(Object object)
Creates an RDN string for this type from the supplied object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String ID
public static final String NAME
public static final String DESCRIPTION
public static final String MEMBERS
public static final List<String> DB_ATTRS
| Constructor Detail |
|---|
public GroupHelper()
| Method Detail |
|---|
public void doConnectionCheck(SDKWSMetaConnector connector)
throws NamingException
doConnectionCheck in interface SDKWSHelperconnector - the connector.
NamingException - when error occurs.
public boolean doAdd(SDKWSMetaConnector connector,
Attributes attrs)
throws NamingException
doAdd in interface SDKWSHelperconnector - the connector.attrs - the attributes that make up the group object.
NamingException - if any errors occur.
public boolean doDelete(SDKWSMetaConnector connector,
String id)
throws NamingException
doDelete in interface SDKWSHelperconnector - the connector.id - the ID of the group to remove.
NamingException - if any errors occur.
public boolean doModify(SDKWSMetaConnector connector,
String id,
ModificationItem[] modItems)
throws NamingException
doModify in interface SDKWSHelperconnector - the connector.id - the naming value of the item being modified.modItems - contains the items to modify.
NamingException - when error occurs.
public NamingEnumeration<SearchResult> doSearch(SDKWSMetaConnector connector,
String connectorClassName,
FilterInfo filterInfo)
throws NamingException
OpProcessor Java Doc for detials.
doSearch in interface SDKWSHelperconnector - the connector.connectorClassName - the connector class name..filterInfo - the LDAP filter object.
NamingException - when error occurs.
public Attributes doLookUp(SDKWSMetaConnector connector,
String id,
String[] attrIds)
throws NamingException
doLookUp in interface SDKWSHelperconnector - the connector.id - the ID of the group to look up.attrIds - contains the target object's attribute ids to lookup.
NamingException - if any errors occur.
public Attributes makeAttributes(Object object,
String[] attrIds)
throws NamingException
makeAttributes in interface SDKWSHelperobject - the group to get the details from to make the attributes.attrIds - the attribute ids to add to the attrs.
NamingException - if the group is null or it's ID is null.
public String makeRDN(Object object)
throws NamingException
makeRDN in interface SDKWSHelperobject - the object to get the details from to make the RDN.
NamingException - if the group is null or it's ID is null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||