Configuration Platform SDK 7.6 API Reference

com.genesyslab.platform.configuration.protocol.confserver.events
Class EventObjectsRead

java.lang.Object
  extended bycom.genesyslab.platform.commons.protocol.DataObject
      extended bycom.genesyslab.platform.commons.protocol.Message
          extended bycom.genesyslab.platform.configuration.protocol.confserver.events.EventObjectsRead
All Implemented Interfaces:
ProtocolDescriptionSupport

public abstract class EventObjectsRead
extends Message

Returns information about objects in the Genesys Configuration Layer. The information you asked for is returned by invoking the getConfObject method of the EventObjectsRead message. This method returns an org.w3c.dom.Document representation of the object, as shown here:


 EventObjectsRead objectsRead =
 	(EventObjectsRead) theMessage;
 System.out.println(theMessage.messageName());
 System.out.println("There are "
 		+ objectsRead.getObjectTotalCount() + " objects of this type.");
 Document resultDocument =
 	(Document) objectsRead.getConfObject();
 
It is important to note that Configuration Server may send more than one of these messages in response to your request, depending on how much data needs to be returned. Your application must be ready to handle all of these messages. Your application also needs to process the EventObjectsSent message that Configuration Server will send to indicate that it has finished providing the data you requested.


Field Summary
static int ID
           
static java.lang.String NAME
           
 
Method Summary
static EventObjectsRead create()
          Creates instance of EventObjectsRead with no parameters set.
static EventObjectsRead create(java.lang.Integer objectType, java.lang.Integer objectCount, org.w3c.dom.Document confObject, java.lang.Integer objectTotalCount)
          Creates instance of EventObjectsRead.
static EventObjectsRead create(java.lang.Integer objectType, java.lang.Integer objectCount, org.w3c.dom.Document confObject, java.lang.Integer objectTotalCount, java.lang.String[] objectPaths, long[] folderDbids, java.lang.String format)
          Creates instance of EventObjectsRead.
static EventObjectsRead create(java.lang.Integer objectType, java.lang.Integer objectCount, org.w3c.dom.Document confObject, java.lang.Integer objectTotalCount, java.lang.String[] objectPaths, java.lang.String objectPath, long[] folderDbids, java.lang.String format)
          Deprecated. The constructor is deprecated.
abstract  org.w3c.dom.Document getConfObject()
          XmlDocumentV7 representation of cfglib object(s)
abstract  long[] getFolderDbids()
          Array of unique identifiers of objects' folders
abstract  java.lang.String getFormat()
          None
abstract  java.lang.Integer getObjectCount()
          Number of objects matching requested criteria
abstract  java.lang.String getObjectPath()
          Deprecated. The property is deprecated, please use 'ObjectPaths' property instead.
abstract  java.lang.String[] getObjectPaths()
          Configuration objects' path array
abstract  java.lang.Integer getObjectTotalCount()
          Total number of objects matching requested criteria
abstract  java.lang.Integer getObjectType()
          Type of configuration object as defined in ConfServerObject enum
abstract  java.lang.Integer getReferenceId()
          Reference id to connect responce to request.
abstract  void setConfObject(org.w3c.dom.Document confObject)
          XmlDocumentV7 representation of cfglib object(s)
abstract  void setFolderDbids(long[] folderDbids)
          Array of unique identifiers of objects' folders
abstract  void setFormat(java.lang.String format)
          None
abstract  void setObjectCount(int objectCount)
          Number of objects matching requested criteria
abstract  void setObjectCount(java.lang.Integer objectCount)
          Number of objects matching requested criteria
abstract  void setObjectPath(java.lang.String objectPath)
          Deprecated. The property is deprecated, please use 'ObjectPaths' property instead.
abstract  void setObjectPaths(java.lang.String[] objectPaths)
          Configuration objects' path array
abstract  void setObjectTotalCount(int objectTotalCount)
          Total number of objects matching requested criteria
abstract  void setObjectTotalCount(java.lang.Integer objectTotalCount)
          Total number of objects matching requested criteria
abstract  void setObjectType(int objectType)
          Type of configuration object as defined in ConfServerObject enum
abstract  void setObjectType(java.lang.Integer objectType)
          Type of configuration object as defined in ConfServerObject enum
abstract  void setReferenceId(int referenceId)
          Reference id to connect responce to request.
abstract  void setReferenceId(java.lang.Integer referenceId)
          Reference id to connect responce to request.
 
Methods inherited from class com.genesyslab.platform.commons.protocol.Message
cloneMessage, getEndpoint, getMessageAttribute, getProtocolDescription, getProtocolId, messageId, messageName
 
Methods inherited from class com.genesyslab.platform.commons.protocol.DataObject
equals, hashCode, toString, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ID

public static final int ID
See Also:
Constant Field Values

NAME

public static final java.lang.String NAME
See Also:
Constant Field Values
Method Detail

create

public static EventObjectsRead create()
Creates instance of EventObjectsRead with no parameters set.

Returns:
instance of EventObjectsRead

create

public static EventObjectsRead create(java.lang.Integer objectType,
                                      java.lang.Integer objectCount,
                                      org.w3c.dom.Document confObject,
                                      java.lang.Integer objectTotalCount,
                                      java.lang.String[] objectPaths,
                                      java.lang.String objectPath,
                                      long[] folderDbids,
                                      java.lang.String format)
Deprecated. The constructor is deprecated.

Creates instance of EventObjectsRead.

Parameters:
objectType - Type of configuration object as defined in ConfServerObject enum
objectCount - Number of objects matching requested criteria
confObject - XmlDocumentV7 representation of cfglib object(s)
objectTotalCount - Total number of objects matching requested criteria
objectPaths - Configuration objects' path array
objectPath - Configuration objects' path string
folderDbids - Array of unique identifiers of objects' folders
format - None
Returns:
instance of EventObjectsRead

create

public static EventObjectsRead create(java.lang.Integer objectType,
                                      java.lang.Integer objectCount,
                                      org.w3c.dom.Document confObject,
                                      java.lang.Integer objectTotalCount)
Creates instance of EventObjectsRead.

Parameters:
objectType - Type of configuration object as defined in ConfServerObject enum
objectCount - Number of objects matching requested criteria
confObject - XmlDocumentV7 representation of cfglib object(s)
objectTotalCount - Total number of objects matching requested criteria
Returns:
instance of EventObjectsRead

create

public static EventObjectsRead create(java.lang.Integer objectType,
                                      java.lang.Integer objectCount,
                                      org.w3c.dom.Document confObject,
                                      java.lang.Integer objectTotalCount,
                                      java.lang.String[] objectPaths,
                                      long[] folderDbids,
                                      java.lang.String format)
Creates instance of EventObjectsRead.

Parameters:
objectType - Type of configuration object as defined in ConfServerObject enum
objectCount - Number of objects matching requested criteria
confObject - XmlDocumentV7 representation of cfglib object(s)
objectTotalCount - Total number of objects matching requested criteria
objectPaths - Configuration objects' path array
folderDbids - Array of unique identifiers of objects' folders
format - None
Returns:
instance of EventObjectsRead

getReferenceId

public abstract java.lang.Integer getReferenceId()
Reference id to connect responce to request. If set to 0, it means that ReferenceID should be assighed by ReferenceBuilder.

Returns:
property value

setReferenceId

public abstract void setReferenceId(java.lang.Integer referenceId)
Reference id to connect responce to request. If set to 0, it means that ReferenceID should be assighed by ReferenceBuilder.

Parameters:
referenceId - new value of the property

setReferenceId

public abstract void setReferenceId(int referenceId)
Reference id to connect responce to request. If set to 0, it means that ReferenceID should be assighed by ReferenceBuilder.

Parameters:
referenceId - new value of the property

getObjectType

public abstract java.lang.Integer getObjectType()
Type of configuration object as defined in ConfServerObject enum

Returns:
property value

setObjectType

public abstract void setObjectType(java.lang.Integer objectType)
Type of configuration object as defined in ConfServerObject enum

Parameters:
objectType - new value of the property

setObjectType

public abstract void setObjectType(int objectType)
Type of configuration object as defined in ConfServerObject enum

Parameters:
objectType - new value of the property

getObjectCount

public abstract java.lang.Integer getObjectCount()
Number of objects matching requested criteria

Returns:
property value

setObjectCount

public abstract void setObjectCount(java.lang.Integer objectCount)
Number of objects matching requested criteria

Parameters:
objectCount - new value of the property

setObjectCount

public abstract void setObjectCount(int objectCount)
Number of objects matching requested criteria

Parameters:
objectCount - new value of the property

getConfObject

public abstract org.w3c.dom.Document getConfObject()
XmlDocumentV7 representation of cfglib object(s)

Returns:
property value

setConfObject

public abstract void setConfObject(org.w3c.dom.Document confObject)
XmlDocumentV7 representation of cfglib object(s)

Parameters:
confObject - new value of the property

getObjectTotalCount

public abstract java.lang.Integer getObjectTotalCount()
Total number of objects matching requested criteria

Returns:
property value

setObjectTotalCount

public abstract void setObjectTotalCount(java.lang.Integer objectTotalCount)
Total number of objects matching requested criteria

Parameters:
objectTotalCount - new value of the property

setObjectTotalCount

public abstract void setObjectTotalCount(int objectTotalCount)
Total number of objects matching requested criteria

Parameters:
objectTotalCount - new value of the property

getObjectPaths

public abstract java.lang.String[] getObjectPaths()
Configuration objects' path array

Returns:
property value

setObjectPaths

public abstract void setObjectPaths(java.lang.String[] objectPaths)
Configuration objects' path array

Parameters:
objectPaths - new value of the property

getObjectPath

public abstract java.lang.String getObjectPath()
Deprecated. The property is deprecated, please use 'ObjectPaths' property instead.

Configuration objects' path string

Returns:
property value

setObjectPath

public abstract void setObjectPath(java.lang.String objectPath)
Deprecated. The property is deprecated, please use 'ObjectPaths' property instead.

Configuration objects' path string

Parameters:
objectPath - new value of the property

getFolderDbids

public abstract long[] getFolderDbids()
Array of unique identifiers of objects' folders

Returns:
property value

setFolderDbids

public abstract void setFolderDbids(long[] folderDbids)
Array of unique identifiers of objects' folders

Parameters:
folderDbids - new value of the property

getFormat

public abstract java.lang.String getFormat()
None

Returns:
property value

setFormat

public abstract void setFormat(java.lang.String format)
None

Parameters:
format - new value of the property

Configuration Platform SDK 7.6 API Reference

Send comments on this topic.
Copyright © 2006–2008 Genesys Telecommunication Laboratories, Inc. All rights reserved.