public class QueryData extends XMLRequest implements java.lang.Iterable<QueryData.Row>
Modifier and Type | Class and Description |
---|---|
static class |
QueryData.Row
This class represents a row in the returned result set.
|
Constructor and Description |
---|
QueryData(java.lang.String requestName,
java.lang.String src,
java.util.Map<java.lang.String,java.lang.String> attributes)
Generic constructor (internal use only).
|
Modifier and Type | Method and Description |
---|---|
static QueryData |
createClientList()
Creates a list of clients.
|
static QueryData |
createCodeListForFT()
Creates a list of CODE objects which can be used for FileTransfers.
|
static QueryData |
createDashObjectList(java.lang.String right)
Creates a list of Dash Objects considering object rights.
|
static QueryData |
createDBConnList()
Creates a list of database connection objects.
|
static QueryData |
createEventCollectorList(java.lang.String filter)
Creates a list of Rule Event Objects.
|
static QueryData |
createEventDefinitionList(java.lang.String filter)
Creates a list of Event Definition Objects.
|
static QueryData |
createEventRuleList(java.lang.String filter)
Creates a list of Rule Event Objects.
|
static QueryData |
createExecutableDisplayTypeList()
Creates a list of display names for executable object types.
|
static QueryData |
createExecutableObjectTypeList()
Creates a list of executable object types.
|
static QueryData |
createExtendedObjectList(java.lang.String objectType)
Creates a list of objects.
|
static QueryData |
createFilterList()
Creates a list of OUTPUT filters.
|
static QueryData |
createForecastList()
Creates a query for forecast status values.
|
static QueryData |
createGroupCriteriaList()
Creates a list of grouping criteria for the activity window.
|
static QueryData |
createHostList(java.lang.String agentType)
Creates a list of Agents.
|
static QueryData |
createHOSTListForFT()
Creates a list of HOST objects which can be used for FileTransfers.
|
static QueryData |
createHostRoleList()
Creates a list of host roles.
|
static QueryData |
createHostTypeList()
Creates a list of host types.
|
static QueryData |
createHostTypeList(java.lang.String parameter)
Creates a list of host types.
|
static QueryData |
createLicenseList()
Deprecated.
the license check has been removed in version 12.2 and higher
|
static QueryData |
createLoginTypeList()
Creates a list of login types.
|
static QueryData |
createObjectList(java.lang.String objectType)
Creates a list of objects.
|
static QueryData |
createObjectList(java.lang.String objectType,
java.lang.String subtype,
java.lang.String filter,
java.lang.String right)
Creates a list of objects according to the given parameters.
|
static QueryData |
createObjectTypeList()
Creates a list of object types.
|
static QueryData |
createObjectTypeList(java.lang.String parameter,
java.lang.String right)
Creates a list of object types according to the given parameters.
|
static QueryData |
createParentWorkflowList(java.lang.String objName)
Creates a list of all Workflows that contain task objName
|
static QueryData |
createReportTypeList()
Creates a list of report types.
|
protected void |
createRequest(com.uc4.util.XMLDocument doc,
org.w3c.dom.Element request,
ConnectionAttributes sessionInfo)
Creates the XML Document for the request.
|
static QueryData |
createStatusList()
Creates a list of final status values of tasks.
|
static QueryData |
createStatusListWithoutUserReturnCodes()
Creates a list of final status values of tasks and ignore User Return Codes.
|
static QueryData |
createStoreObjectList(java.lang.String filter)
Creates a list of Store Objects.
|
static QueryData |
createVaultAliasProvidersList()
Creates a list of VaultAliasis Providers.
|
static QueryData |
createVaultProvidersList()
Creates a list of Vault Providers.
|
static QueryData |
createVaultSafeProvidersList()
Creates a list of VaultSafe Providers.
|
int |
getColumnCount()
Returns the number of columns or
-1 if no table was returned. |
java.lang.String[] |
getColumnNames()
Returns an array of columns of this row or
null if no table was returned. |
protected java.lang.String |
getSrc()
Returns the request source.
|
protected void |
handleContent(com.uc4.util.XMLDocument doc,
ConnectionAttributes session) |
protected boolean |
isAllowedInClientZero()
This method is used internally.
|
java.util.Iterator<QueryData.Row> |
iterator() |
int |
size()
Returns the number of rows.
|
assertClientZero, assertServerVersion, checkClient, checkID, checkLnr, checkNull, checkSelStatisticsPrivilege, checkSystemOverviewPrivilege, checkUC4ObjectEmptyName, checkUC4ObjectName, createNATFor, createNATRequest, emptyAttributes, getAllMessageBoxes, getMessageBox, getRequestID, handleResponse, ignoreMessageBox, send, setMessageBox, showQuarantineNotification
public QueryData(java.lang.String requestName, java.lang.String src, java.util.Map<java.lang.String,java.lang.String> attributes)
requestName
- Name of the XML requestsrc
- Sourceattributes
- Additional parameters; null
should be used if no additional parameters are providedpublic static QueryData createHostTypeList()
public static QueryData createHostTypeList(java.lang.String parameter)
parameter
- use "dnames" to get display names instead of host typespublic static QueryData createLoginTypeList()
public static QueryData createHostRoleList()
public static QueryData createParentWorkflowList(java.lang.String objName)
objName
- object namepublic static QueryData createReportTypeList()
public static QueryData createHostList(java.lang.String agentType)
agentType
- Type of the Host for example "WINDOWS"
The following special values an also be used
null
is passed all Agents and dummies are returned.public static QueryData createClientList()
public static QueryData createDBConnList()
public static QueryData createFilterList()
@Deprecated public static QueryData createLicenseList()
public static QueryData createObjectList(java.lang.String objectType)
objectType
- Object typepublic static QueryData createCodeListForFT()
public static QueryData createHOSTListForFT()
public static QueryData createForecastList()
public static QueryData createStatusList()
public static QueryData createStatusListWithoutUserReturnCodes()
public static QueryData createExtendedObjectList(java.lang.String objectType)
objectType
- Object typepublic static QueryData createObjectList(java.lang.String objectType, java.lang.String subtype, java.lang.String filter, java.lang.String right)
objectType
- Object typesubtype
- Platform/Subtypefilter
- Filter for object namesright
- one of the following rights
r | Access method: Read |
w | Access method: Write |
x | Access method: Execute |
d | Access method: Delete |
c | Access method: Cancel |
s | Access to Statistics |
p | Access to Reports |
m | Access method: Modify at runtime |
l | This access type allows the user to define an SLA for the particular objects |
public static QueryData createGroupCriteriaList()
public static QueryData createObjectTypeList()
public static QueryData createObjectTypeList(java.lang.String parameter, java.lang.String right)
parameter
- use "dnames" to get display names instead of host typesright
- available right: public static QueryData createExecutableDisplayTypeList()
public static QueryData createExecutableObjectTypeList()
public static QueryData createStoreObjectList(java.lang.String filter)
filter
- Name filterpublic static QueryData createDashObjectList(java.lang.String right)
right
- Object rightpublic static QueryData createEventRuleList(java.lang.String filter)
filter
- Name filterpublic static QueryData createEventCollectorList(java.lang.String filter)
filter
- Name filterpublic static QueryData createEventDefinitionList(java.lang.String filter)
filter
- Name filterpublic static QueryData createVaultProvidersList()
public static QueryData createVaultSafeProvidersList()
public static QueryData createVaultAliasProvidersList()
protected void createRequest(com.uc4.util.XMLDocument doc, org.w3c.dom.Element request, ConnectionAttributes sessionInfo)
XMLRequest
createRequest
in class XMLRequest
doc
- Document, used to create new Elementsrequest
- Request Element - classes append information to this request elementsessionInfo
- Information about the sessionprotected java.lang.String getSrc()
XMLRequest
getSrc
in class XMLRequest
public int getColumnCount()
-1
if no table was returned.public java.lang.String[] getColumnNames()
null
if no table was returned.protected void handleContent(com.uc4.util.XMLDocument doc, ConnectionAttributes session)
handleContent
in class XMLRequest
public java.util.Iterator<QueryData.Row> iterator()
iterator
in interface java.lang.Iterable<QueryData.Row>
public int size()
protected boolean isAllowedInClientZero()
XMLRequest
XMLRequest
is allowed in client 0.
The default implementation returns false
, subclasses may override.isAllowedInClientZero
in class XMLRequest
true
if this request is allowed in client 0, false
otherwise