|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ca.jcs.sdkws.forwardinc.UserHelper
public class UserHelper
Helper class for general user object related functions.
| Field Summary | |
|---|---|
static String |
COMPANY
|
static List<String> |
DB_ATTRS
Supported database attributes |
static String |
EMAIL
|
static String |
F_NAME
|
static String |
GROUPS
|
static String |
ID
ConnectorMapTo names |
static String |
L_NAME
|
static String |
NAME
|
static String |
PASSWORD
|
static String |
PHONE
|
static String |
TITLE
|
| Constructor Summary | |
|---|---|
UserHelper()
|
|
| Method Summary | |
|---|---|
boolean |
doAdd(SDKWSMetaConnector connector,
Attributes attrs)
Adds a user to the endpoint. |
void |
doConnectionCheck(SDKWSMetaConnector connector)
Method for doing a connection check. |
boolean |
doDelete(SDKWSMetaConnector connector,
String id)
Deletes user from the endpoint. |
Attributes |
doLookUp(SDKWSMetaConnector connector,
String id,
String[] attrIds)
Look up the user 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 connObjectClass,
FilterInfo filterInfo)
Searches for users with the given SQL query. |
Attributes |
makeAttributes(Object object,
String[] attrIds)
Creates an Attributes object from the supplied user. |
String |
makeRDN(Object object)
Creates an RDN string for this type from the supplied object. |
void |
releaseHandle(SDKWSMetaConnector connector,
int handleId)
Informs the endpoint that this handle is no longer needed. |
UserServiceStub.User[] |
searchUsers(SDKWSMetaConnector connector,
int handleId,
int startIndex,
int endIndex)
searchUsers should have been called before using this method. |
UserServiceStub.Handle |
searchUsers(SDKWSMetaConnector connector,
String query)
Searches for users with the given SQL query. |
| 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 TITLE
public static final String PASSWORD
public static final String COMPANY
public static final String F_NAME
public static final String L_NAME
public static final String EMAIL
public static final String NAME
public static final String PHONE
public static final String GROUPS
public static final List<String> DB_ATTRS
| Constructor Detail |
|---|
public UserHelper()
| 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 User 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 user 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 connObjectClass,
FilterInfo filterInfo)
throws NamingException
doSearch in interface SDKWSHelperconnector - the connector.connObjectClass - the connector object class name. This will be used as the SearchResult's class name.filterInfo - the LDAP filter object.
NamingException - if any errors occur.
public Attributes doLookUp(SDKWSMetaConnector connector,
String id,
String[] attrIds)
throws NamingException
doLookUp in interface SDKWSHelperconnector - the connector.id - the ID of the user to look up.attrIds - contains the target object's attribute ids to lookup.
NamingException - if any errors occur.
public UserServiceStub.Handle searchUsers(SDKWSMetaConnector connector,
String query)
throws NamingException
connector - the connector.query - the query to use.
NamingException - if any errors occur.
public UserServiceStub.User[] searchUsers(SDKWSMetaConnector connector,
int handleId,
int startIndex,
int endIndex)
throws NamingException
connector - the connector.handleId - the result set handle id.startIndex - the start index (first record to get).endIndex - the end index.
NamingException - if any errors occur.
public void releaseHandle(SDKWSMetaConnector connector,
int handleId)
throws NamingException
connector - the connector.handleId - the result set handle id.
NamingException - if there are any errors releasing the handle.
public Attributes makeAttributes(Object object,
String[] attrIds)
throws NamingException
makeAttributes in interface SDKWSHelperobject - the user.attrIds - the attribute ids to add to the attrs.
NamingException - if the user 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 user is null or it's ID is null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||