|
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<CfgDN>
com.genesyslab.platform.applicationblocks.com.queries.CfgDNQuery
public class CfgDNQuery
Class designed to construct queries to the Configuration Service for reading CfgDN object(s).
ConfService
,
CfgDN
Constructor Summary | |
---|---|
CfgDNQuery()
Create query object with default filter value for configuration objects of CfgDN type. |
|
CfgDNQuery(IConfService service)
Create query object with default filter value for configuration objects of CfgDN type. |
|
CfgDNQuery(int dbid)
Create query object with filter initialized for the object DBID. |
|
CfgDNQuery(java.lang.String name)
Create query object with filter initialized for object name value. |
Method Summary | |
---|---|
AsyncRequestResult<CfgDN> |
beginExecute(Action<AsyncRequestResult<CfgDN>> callback,
java.lang.Object state)
Begins the asynchronous execution of the current query. |
java.util.Collection<CfgDN> |
execute()
Executes the query and returns a list of CfgDN objects. |
CfgDN |
executeSingleResult()
Executes a query the result of which is a single object. |
java.lang.String |
getAssociation()
An entity associated with a DN. |
int |
getDbid()
A unique identifier of a DN. |
java.lang.String |
getDnNumber()
Directory number of a DN. |
CfgDNType |
getDnType()
Type of the DN (see
CfgDNType
). |
int |
getGroupDbid()
A unique identifier of the group of DNs. |
int |
getIvrDbid()
A unique identifier of an IVR object (see
CfgIVR
). |
java.lang.String |
getName()
Name of a DN. |
int |
getNoPlaceDbid()
Configuration Server will return information only about the DN(s) that ) that are allowed to be assigned to the place and not associated with any place. |
int |
getPlaceDbid()
A unique identifier of a place. |
CfgObjectState |
getState()
Current state of a DN (see
CfgObjectState
). |
int |
getSwitchDbid()
A unique identifier of a switch. |
int |
getTenantDbid()
A unique identifier of a tenant. |
void |
setAssociation(java.lang.String value)
An entity associated with a DN. |
void |
setDbid(int value)
A unique identifier of a DN. |
void |
setDnNumber(java.lang.String value)
Directory number of a DN. |
void |
setDnType(CfgDNType value)
Type of the DN (see
CfgDNType
). |
void |
setGroupDbid(int value)
A unique identifier of the group of DNs. |
void |
setIvrDbid(int value)
A unique identifier of an IVR object (see
CfgIVR
). |
void |
setName(java.lang.String value)
Name of a DN. |
void |
setNoPlaceDbid(int value)
Configuration Server will return information only about the DN(s) that ) that are allowed to be assigned to the place and not associated with any place. |
void |
setPlaceDbid(int value)
A unique identifier of a place. |
void |
setState(CfgObjectState value)
Current state of a DN (see
CfgObjectState
). |
void |
setSwitchDbid(int value)
A unique identifier of a switch. |
void |
setTenantDbid(int value)
A unique identifier of a tenant. |
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 CfgDNQuery()
public CfgDNQuery(IConfService service)
service
- The configuration service to use when executing this querypublic CfgDNQuery(int dbid)
dbid
- value for filter on object dbidsetDbid(int)
public CfgDNQuery(java.lang.String name)
name
- value for filter on object namesetName(String)
Method Detail |
---|
public CfgDN executeSingleResult() throws ConfigException
executeSingleResult
in class CfgQuery<CfgDN>
ConfigException
public java.util.Collection<CfgDN> execute() throws ConfigException, java.lang.InterruptedException
execute
in class CfgQuery<CfgDN>
ConfigException
java.lang.InterruptedException
public AsyncRequestResult<CfgDN> beginExecute(Action<AsyncRequestResult<CfgDN>> 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 setDbid(int value)
value
- filter value on field "dbid".public final int getDbid()
setDbid(int)
public final void setTenantDbid(int value)
value
- filter value on field "tenant_dbid".public final int getTenantDbid()
setTenantDbid(int)
public final void setSwitchDbid(int value)
value
- filter value on field "switch_dbid".public final int getSwitchDbid()
setSwitchDbid(int)
public final void setDnType(CfgDNType value)
CfgDNType
).
If specified, Configuration Server will return information only
about the DNs of this type.
value
- filter value on field "dn_type".public final CfgDNType getDnType()
CfgDNType
).
If specified, Configuration Server will return information only
about the DNs of this type.
setDnType(CfgDNType)
public final void setPlaceDbid(int value)
value
- filter value on field "place_dbid".public final int getPlaceDbid()
setPlaceDbid(int)
public final void setNoPlaceDbid(int value)
value
- filter value on field "no_place_dbid".public final int getNoPlaceDbid()
setNoPlaceDbid(int)
public final void setGroupDbid(int value)
value
- filter value on field "group_dbid".public final int getGroupDbid()
setGroupDbid(int)
public final void setAssociation(java.lang.String value)
value
- filter value on field "association".public final java.lang.String getAssociation()
setAssociation(String)
public final void setState(CfgObjectState value)
CfgObjectState
).
If specified, Configuration Server will return information only
about DNs 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 DNs that are currently in this state.
setState(CfgObjectState)
public final void setDnNumber(java.lang.String value)
value
- filter value on field "dn_number".public final java.lang.String getDnNumber()
setDnNumber(String)
public final void setName(java.lang.String value)
value
- filter value on field "name".public final java.lang.String getName()
setName(String)
public final void setIvrDbid(int value)
CfgIVR
). If
specified, Configuration Server will return information only about
the DN(s) which assigned to IVR Ports (see
CfgIVRPort
)
of this IVR object.
value
- filter value on field "ivr_dbid".public final int getIvrDbid()
CfgIVR
). If
specified, Configuration Server will return information only about
the DN(s) which assigned to IVR Ports (see
CfgIVRPort
)
of this IVR object.
setIvrDbid(int)
|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |