CfgPerson
,
so the first thing you need to do is look at the entry for CfgPerson
contained in the folder of Configuration Objects that comes with this API
Reference. (This folder is accessible from the Overview page.)user_name
as a key to retrieve information
about that agent.ID
.
There is an enumeration,
com.genesyslab.platform.configuration.protocol.confserver.CfgObjectType
that you can use to specify this ID. In this case, you want to ask for
CfgObjectType.CFGPerson
. Now that you know that, you are ready
to create a RequestReadObjects
.
KeyValueCollection
to hold your filter key. The collection can hold
more than one key, as long as they are all for the same kind of object. The next
step is to add the key and value for your agent. Finally, you create the request,
supplying the value for the object type. Note that you must convert the object
type to an int
before you create your request:
KeyValueCollection filterKey = new KeyValueCollection();
filterKey.addObject("user_name", agentUserName);
CfgObjectType objectType = CfgObjectType.CFGPerson;
int intPerson = objectType.asInteger();
RequestReadObjects requestReadObjects =
RequestReadObjects.create(
intPerson,
filterKey);
Class | Description |
---|---|
RequestCreateObject |
Adds a new object with property values specified by ObjectType and ConfObject.
|
RequestDeleteObject |
A request to delete an object from the Genesys Configuration Layer.
|
RequestGetBriefInfo |
Requests brief information about the object(s) specified by ObjectType and Filter.
|
RequestReadObjects |
A request to obtain information about objects in the Genesys Configuration Layer.
|
RequestReadObjects2 |
Requests complete information about the object(s) specified by XPath expression.
|
RequestRegisterNotification |
Registers application to receive notifications on the objects specified in the Subscription list.
|
RequestUnregisterNotification |
Unregisters application from receiving notifications on the objects specified in the Subscription list.
|
RequestUpdateObject |
Sets new property values specified by ConfObject (delta object) for the object specified by ObjectType and delta_object.
|
Send comments on this topicTechpubs.webadmin@genesys.com.
Document version: 9.0.006.00
Copyright © 2006–2019 Genesys Telecommunications Laboratories, Inc. All rights reserved.