public interface PresenceService
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT |
static java.lang.String |
VERSION |
Modifier and Type | Method and Description |
---|---|
java.util.List<PresenceRecord> |
queryPresence(java.lang.String queryString,
java.util.List<PresenceQueryClause> queryClauses,
java.lang.String categoryToReturn)
API queries presence information and returns matching presence records
|
boolean |
setAttributes(java.lang.String operatorId,
java.lang.String customCategoryName,
java.util.Map<java.lang.String,java.lang.String> customAttributeNameAndValues,
java.util.Map<java.lang.String,java.lang.String> standardAttributeNameAndValues)
Modifies presence record for the operator specified
|
boolean |
setAttributesWithoutOverwrite(java.lang.String operatorId,
java.lang.String customCategoryName,
java.util.Map<java.lang.String,java.lang.String> customAttributeNameAndValues,
java.util.Map<java.lang.String,java.lang.String> standardAttributeNameAndValues)
Variant of
setAttributes(String, String, Map, Map) to prevent overwrite. |
void |
setCurrentRequestorStateAsDisconnected()
Sets the presence session state of current requestor to DISCONNECTED
|
static final java.lang.String COPYRIGHT
static final java.lang.String VERSION
boolean setAttributes(java.lang.String operatorId, java.lang.String customCategoryName, java.util.Map<java.lang.String,java.lang.String> customAttributeNameAndValues, java.util.Map<java.lang.String,java.lang.String> standardAttributeNameAndValues) throws PresenceException
operatorId
- : operator whose presence record should be modified.customCategoryName
- : category of custom attributescustomAttributeNameAndValues
- : map of name and values for attributes under above
category. If the category or attribute do not exist in a presence record, new one is created.standardAttributeNameAndValues
- : map of name and values for attributes under standard
category. If the standard attribute does not exist or is only readable call , then this input is considered as invalid input.PresenceException
- indicates invalid input or an errorboolean setAttributesWithoutOverwrite(java.lang.String operatorId, java.lang.String customCategoryName, java.util.Map<java.lang.String,java.lang.String> customAttributeNameAndValues, java.util.Map<java.lang.String,java.lang.String> standardAttributeNameAndValues) throws PresenceException
setAttributes(String, String, Map, Map)
to prevent overwrite.
If any of the attribute to modify is previously set for the operator, then presence record of the operator is not modified. Method returns false in this case.operatorId
- customCategoryName
- customAttributeNameAndValues
- standardAttributeNameAndValues
- PresenceException
- indicates invalid input or an errorjava.util.List<PresenceRecord> queryPresence(java.lang.String queryString, java.util.List<PresenceQueryClause> queryClauses, java.lang.String categoryToReturn) throws PresenceException
categoryToReturn
- Category of attributes to be returned for matching records. This should match with category if mentioned in the conditions array.queryString
- This expression joins PresenceQueryClause
s mentioned in queryClauses parameter using predefined tokens: AND, OR, ), (, space
PresenceQueryClause
.PresenceException
is thrown for invalid queryString.queryClauses
- array of PresenceQueryClause
.PresenceException
- indicates invalid input or an errorvoid setCurrentRequestorStateAsDisconnected()
Copyright © 2018 Pegasystems Inc. All Rights Reserved.