|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.genesyslab.platform.applicationblocks.com.CfgQuery<TT>
com.genesyslab.platform.applicationblocks.com.CfgFilterBasedQuery<CfgPerson>
com.genesyslab.platform.applicationblocks.com.queries.CfgPersonQuery
public class CfgPersonQuery
Class designed to construct queries to the Configuration Service for reading CfgPerson object(s).
ConfService
,
CfgPerson
Constructor Summary | |
---|---|
CfgPersonQuery()
Create query object with default filter value for configuration objects of CfgPerson type. |
|
CfgPersonQuery(IConfService service)
Create query object with default filter value for configuration objects of CfgPerson type. |
|
CfgPersonQuery(int dbid)
Create query object with filter initialized for the object DBID. |
Method Summary | |
---|---|
AsyncRequestResult<CfgPerson> |
beginExecute(Action<AsyncRequestResult<CfgPerson>> callback,
java.lang.Object state)
Begins the asynchronous execution of the current query. |
java.util.Collection<CfgPerson> |
execute()
Executes the query and returns a list of CfgPerson objects. |
CfgPerson |
executeSingleResult()
Executes a query the result of which is a single object. |
int |
getDbid()
A unique identifier of a person. |
java.lang.String |
getEmployeeId()
Employee ID of a person. |
java.lang.String |
getFirstName()
The name of a person. |
int |
getGroupDbid()
A unique identifier of an agent group. |
int |
getIsAgent()
Indicator of whether a person is an agent. |
java.lang.String |
getLastName()
The last name of a person. |
int |
getLoginDbid()
A unique identifier of an agent login. |
int |
getNoLoginDbid()
Configuration Server will return information only about the agent(s) without login is currently assigned to. |
int |
getNoPlaceDbid()
Configuration Server will return the information only about the agents that do not have default places associated with. |
int |
getSkillDbid()
A unique identifier of a skill. |
CfgObjectState |
getState()
Current state of a person (see type
CfgObjectState
). |
int |
getSwitchDbid()
A unique identifier of a Switch. |
int |
getTenantDbid()
A unique identifier of a tenant. |
java.lang.String |
getUserName()
User name of a person. |
void |
setDbid(int value)
A unique identifier of a person. |
void |
setEmployeeId(java.lang.String value)
Employee ID of a person. |
void |
setFirstName(java.lang.String value)
The name of a person. |
void |
setGroupDbid(int value)
A unique identifier of an agent group. |
void |
setIsAgent(int value)
Indicator of whether a person is an agent. |
void |
setLastName(java.lang.String value)
The last name of a person. |
void |
setLoginDbid(int value)
A unique identifier of an agent login. |
void |
setNoLoginDbid(int value)
Configuration Server will return information only about the agent(s) without login is currently assigned to. |
void |
setNoPlaceDbid(int value)
Configuration Server will return the information only about the agents that do not have default places associated with. |
void |
setSkillDbid(int value)
A unique identifier of a skill. |
void |
setState(CfgObjectState value)
Current state of a person (see type
CfgObjectState
). |
void |
setSwitchDbid(int value)
A unique identifier of a Switch. |
void |
setTenantDbid(int value)
A unique identifier of a tenant. |
void |
setUserName(java.lang.String value)
User name of a person. |
Methods inherited from class com.genesyslab.platform.applicationblocks.com.CfgFilterBasedQuery |
---|
equals, getCfgObjectClass, getCfgObjectType, getDoRequestFolderId, getDoRequestObjectPath, getExtraFilter, getFilter, getInt, getProperty, getQueryObjectClass, getString, hashCode, setDoRequestFolderId, setDoRequestObjectPath, setObjectClass, setProperty, toString |
Methods inherited from class com.genesyslab.platform.applicationblocks.com.CfgQuery |
---|
beginExecute, endExecute, execute, executeSingleResult |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.genesyslab.platform.applicationblocks.com.ICfgQuery |
---|
beginExecute, endExecute, execute, executeSingleResult |
Constructor Detail |
---|
public CfgPersonQuery()
public CfgPersonQuery(IConfService service)
service
- The configuration service to use when executing this querypublic CfgPersonQuery(int dbid)
dbid
- value for filter on object dbidsetDbid(int)
Method Detail |
---|
public CfgPerson executeSingleResult() throws ConfigException
executeSingleResult
in class CfgQuery<CfgPerson>
ConfigException
public java.util.Collection<CfgPerson> execute() throws ConfigException, java.lang.InterruptedException
execute
in class CfgQuery<CfgPerson>
ConfigException
java.lang.InterruptedException
public AsyncRequestResult<CfgPerson> beginExecute(Action<AsyncRequestResult<CfgPerson>> callback, java.lang.Object state) throws ConfigException
callback
- The method to be called when query results are availablestate
- a user-defined object that qualifies or contains information about an asynchronous operation
ConfigException
public final void setTenantDbid(int value)
value
- filter value on field "tenant_dbid".public final int getTenantDbid()
setTenantDbid(int)
public final void setIsAgent(int value)
CFGTrue
, Configuration Server will return
information only about the persons who are agents. If set to CFGFalse
,
Configuration Server will return information only about the persons
who are not agents.
value
- filter value on field "is_agent".public final int getIsAgent()
CFGTrue
, Configuration Server will return
information only about the persons who are agents. If set to CFGFalse
,
Configuration Server will return information only about the persons
who are not agents.
setIsAgent(int)
public final void setSkillDbid(int value)
value
- filter value on field "skill_dbid".public final int getSkillDbid()
setSkillDbid(int)
public final void setGroupDbid(int value)
value
- filter value on field "group_dbid".public final int getGroupDbid()
setGroupDbid(int)
public final void setState(CfgObjectState value)
CfgObjectState
). If specified, Configuration Server
will return information only about persons that are currently in
this state.
value
- filter value on field "state".public final CfgObjectState getState()
CfgObjectState
). If specified, Configuration Server
will return information only about persons that are currently in
this state.
setState(CfgObjectState)
public final void setEmployeeId(java.lang.String value)
value
- filter value on field "employee_id".public final java.lang.String getEmployeeId()
setEmployeeId(String)
public final void setLoginDbid(int value)
value
- filter value on field "login_dbid".public final int getLoginDbid()
setLoginDbid(int)
public final void setUserName(java.lang.String value)
value
- filter value on field "user_name".public final java.lang.String getUserName()
setUserName(String)
public final void setDbid(int value)
value
- filter value on field "dbid".public final int getDbid()
setDbid(int)
public final void setNoLoginDbid(int value)
value
- filter value on field "no_login_dbid".public final int getNoLoginDbid()
setNoLoginDbid(int)
public final void setNoPlaceDbid(int value)
value
- filter value on field "no_place_dbid".public final int getNoPlaceDbid()
setNoPlaceDbid(int)
public final void setFirstName(java.lang.String value)
value
- filter value on field "first_name".public final java.lang.String getFirstName()
setFirstName(String)
public final void setLastName(java.lang.String value)
value
- filter value on field "last_name".public final java.lang.String getLastName()
setLastName(String)
public final void setSwitchDbid(int value)
value
- filter value on field "switch_dbid".public final int getSwitchDbid()
setSwitchDbid(int)
|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |