Package com.uc4.communication.requests
Class XMLRequest
java.lang.Object
com.uc4.communication.requests.XMLRequest
- Direct Known Subclasses:
- ActivateLDAPConnection,- ActivateObject,- ActivatorStatistics,- ActiveNotifications,- ActivityList,- ActivityNotificationOn,- AddComment,- AddJobPlanTask,- AddPromptSet,- AddScheduleMonitorTask,- AddScheduleTask,- AdoptTask,- AgentAndGroupList,- AgentAssignmentList,- AgentGroupList,- AgentGroupMonitor,- AgentGroupSimulation,- AgentList,- AuthenticateAgent,- CacheList,- CalendarList,- CancelForm,- CancelTask,- CauDeploy,- CauSkipWaiting,- ChangeLogging,- ChangePassword,- ChangeServerMode,- CheckAuthorizations,- CheckILMPartition,- CheckUserPrivileges,- ChildStatistics,- ClearTransportCase,- ClientList,- CloseObject,- CloseProcessFlowModification,- ClosePrompt,- CockpitMonitorDefiniton,- ConfirmQuarantineMessage,- CreateFolder,- CreateObject,- CreateSession,- DeactivateLDAPConnection,- DeactivateTask,- DeepRename,- DeleteAgentAssignment,- DeleteLink,- DeleteMQMemList,- DeleteObject,- DeleteQuarantineMessage,- DeleteStaticVaraRow,- DeleteStorageEntry,- DisconnectAgentGroup,- DisconnectHost,- DisconnectUser,- DownloadBinary,- DropILMPartition,- DuplicateObject,- EnforcePreConditionEvaluation,- ExecuteAgentAssignment,- ExecuteObject,- ExecuteObjects,- ExitList,- ExportAuthenticationPackage,- ExportCompanyKey,- ExportObject,- ExportWithReferences,- FindReferencedObjects,- FolderList,- FolderTree,- ForceMemoryTrace,- GenericStatistics,- GetActivitiesFilter,- GetAgentGroupMonitorProperties,- GetAgentGroupProperties,- GetAgentProperties,- GetCAUAgentVersions,- GetChangeLog,- GetComments,- GetComponentTemplates,- GetComponentWorkflows,- GetCPProperties,- GetDatabaseInfo,- GetDeploymentProperties,- GetDeployObjectProperties,- GetDynamicComboList,- GetExecuteOnce,- GetExecutePeriod,- GetGroupMonitorProperties,- GetLastRuntimes,- GetModifyQueue,- GetObjectDocu,- GetObjectProperties,- GetOutputDirectory,- GetQuarantineMessage,- GetRAAgentNames,- GetRAConnectionNames,- GetRAConnectionValues,- GetRAJobNames,- GetReplaceList,- GetRestartInformation,- GetRestEndpoints,- GetSessionTZ,- GetStaticVaraRows,- GetStorageItems,- GetSyncMonitor,- GetSyncUsage,- GetUnreadMessages,- GetWPProperties,- GroupMonitor,- IgnoreAgentResources,- IgnoreConditions,- IgnoreQueueLimit,- IgnoreTaskSyncCondition,- ILMList,- ImportObject,- JobPlanMonitor,- LatestReport,- LicenseList,- LinkTo,- MessageList,- ModifyNotificationMonitor,- ModifyProcessFlowMonitor,- ModifyQueue,- ModifyQueueStatus,- ModifyRecurringTask,- ModifyStartTime,- ModifyTaskPriority,- ModifyTaskState,- ModifyUISettings,- MoveAgentAssignment,- MoveObject,- MoveUserToClient,- MQMemList,- NavigatorAgentTree,- NavigatorCATree,- NavigatorQueueTree,- NavigatorStatusTree,- NavigatorZDUTree,- NotificationMonitor,- NotificationState,- ObjectStatistics,- OpenObject,- OpenProcessFlowModification,- ParentStatistics,- PreviewAssignment,- PreviewVariable,- PromptInputHelp,- QuarantineList,- QueryData,- QueueList,- QuickSearch,- QuitTask,- RefreshCockpitMonitor,- RefreshServiceManagerScan,- ReleaseManually,- ReleaseQuarantineMessage,- ReloadNextTurnaround,- RemoteRestart,- RemoveJobPlanBreakPoint,- RenameObject,- RenewTransferKey,- ReplaceObject,- Report,- ReportTypeList,- RerunWorkflow,- ResetLastRuntimes,- ResetOpenFlag,- ResetScheduleTask,- RestartTask,- RestoreObject,- RestoreObjectVersion,- ResumeClient,- ResumeTask,- RollbackTask,- RollbackTo,- RunJobPlanTask,- RunScheduledTask,- SaveAgentAssignment,- SaveObject,- ScheduleMonitor,- SearchObject,- ServerList,- ServiceFulfillmentList,- ServiceLevelObjectiveList,- SetAgentGroupMonitorProperties,- SetAgentGroupProperties,- SetAgentProperties,- SetCPProperties,- SetGroupMonitorProperties,- SetHostAuthorizations,- SetJobPlanBreakPoint,- SetJobPlanTaskActive,- SetJobPlanTaskInactive,- SetObjectProperties,- SetStaticVaraRows,- SetSyncMonitor,- SetWPProperties,- SetZDUStep,- ShowQuarantineMessage,- StartHost,- StartILM,- StartServer,- StopILM,- SubmitForm,- SubmitPrompt,- SuspendClient,- SuspendTask,- SwitchOutILM,- SynchronizeLDAP,- SystemWorkload,- TaskDetails,- TaskList,- TaskPromptSetContent,- TaskPromptSetNames,- TaskStatistics,- TemplateList,- TerminateAgentGroup,- TerminateHost,- TerminateServer,- TransportObject,- UnblockJobPlanTask,- UnblockWorkflow,- UnregisterTask,- UntransportObject,- UploadBinary,- UserList,- VersionControlList,- ZDUControl,- ZduStep,- ZduWizard
This is the super class of all request classes.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected static final voidassertClientZero(ConnectionAttributes sessioninfo) protected static final voidassertServerVersion(ConnectionAttributes sessioninfo, int minExpected) protected static final voidcheckClient(int client) protected static final voidcheckID(int id) protected static final voidcheckLnr(int lnr) protected static final voidprotected static final voidcheckSelStatisticsPrivilege(ConnectionAttributes sessionInfo) protected static final voidcheckSystemOverviewPrivilege(ConnectionAttributes sessionInfo) protected static final voidprotected static final voidprotected static com.automic.protocol.MessagecreateNATFor(XMLRequest r, ConnectionAttributes sessionInfo) protected com.automic.protocol.MessagecreateNATRequest(ConnectionAttributes sessionInfo) Sub classes may override this method send messages in NAT protocol to the AE.protected abstract voidcreateRequest(com.uc4.util.XMLDocument doc, Element request, ConnectionAttributes sessionInfo) Creates the XML Document for the request.protected booleanemptyAttributes(NamedNodeMap attributeMap, com.uc4.translate.Message translator) Returnstrueif the attribute map is not empty.final List<MessageBox>Returns a List of all MessageBoxes object if the server returns messages for this request.final MessageBoxReturns a MessageBox object if the server returns a message for this request.getRequestID(String defaultValue) Sub classes may override to send a UUID instead.protected abstract StringgetSrc()Returns the request source.protected voidhandleContent(com.uc4.util.XMLDocument doc, ConnectionAttributes session) Sub classes extract the values from the XML document and provide public getter methods.final voidhandleResponse(com.uc4.util.XMLDocument doc, ConnectionAttributes session) Handles the response from the server.protected booleanprotected booleanThis method is used internally.voidsend(Document doc, ConnectionAttributes sessioninfo, String nr) Prepares the request for sending.protected voidsetMessageBox(MessageBox box) Used inXMLRequestSetto move the Message Box from a child request to theXMLRequestSetobject.booleanReturnstrueif a new quarantine message has been found.
- 
Constructor Details- 
XMLRequestpublic XMLRequest()
 
- 
- 
Method Details- 
getSrcReturns the request source. This method is used internally.- Returns:
- Source
 
- 
createRequestprotected abstract void createRequest(com.uc4.util.XMLDocument doc, Element request, ConnectionAttributes sessionInfo) Creates the XML Document for the request. This method is used internally.- Parameters:
- doc- Document, used to create new Elements
- request- Request Element - classes append information to this request element
- sessionInfo- Information about the session
 
- 
createNATRequestSub classes may override this method send messages in NAT protocol to the AE.- Parameters:
- sessionInfo- Session infos
- Returns:
- Message or null if not used
 
- 
createNATForprotected static com.automic.protocol.Message createNATFor(XMLRequest r, ConnectionAttributes sessionInfo) 
- 
handleResponseHandles the response from the server. This method should be called fromIResponseHandler#handleResponse.- Parameters:
- doc- Document returned from the server
- session- Information about the session
 
- 
handleContentSub classes extract the values from the XML document and provide public getter methods.- Parameters:
- doc- XML Document
- session- Info about the user session
 
- 
showQuarantineNotificationpublic boolean showQuarantineNotification()Returnstrueif a new quarantine message has been found. This information can be used to show an alert message to users. The requestGetQuarantineMessagecan be used to get more details about the crash.- Returns:
- true if an alert should be shown, false if the alert notification can be removed.
 
- 
getMessageBoxReturns a MessageBox object if the server returns a message for this request. The message can indicate an error.- Returns:
- MessageBox or null if there is no message
 
- 
getAllMessageBoxesReturns a List of all MessageBoxes object if the server returns messages for this request. The messages can indicate an error, warning or information.- Returns:
- List of MessageBox received in the request.
 
- 
setMessageBoxUsed inXMLRequestSetto move the Message Box from a child request to theXMLRequestSetobject.- Parameters:
- box- Message Box
 
- 
isAllowedInClientZeroprotected boolean isAllowedInClientZero()This method is used internally. Tests if thisXMLRequestis allowed in client 0. The default implementation returnsfalse, subclasses may override.- Returns:
- trueif this request is allowed in client 0,- falseotherwise
 
- 
ignoreMessageBoxprotected boolean ignoreMessageBox()
- 
emptyAttributesReturnstrueif the attribute map is not empty. Also an error message is set. Used by internal tests only.- Parameters:
- attributeMap- attribute map
- translator- message translator
- Returns:
- trueif the attribute map is empty
 
- 
checkClientprotected static final void checkClient(int client) 
- 
checkIDprotected static final void checkID(int id) 
- 
checkNull
- 
checkLnrprotected static final void checkLnr(int lnr) 
- 
checkUC4ObjectName
- 
checkUC4ObjectEmptyName
- 
assertClientZero
- 
assertServerVersion
- 
sendPrepares the request for sending.- Parameters:
- doc- DOM
- sessioninfo- Information about the UC4 session
- nr- Request number
 
- 
getRequestIDSub classes may override to send a UUID instead. This is used for a file transfer from the Agent to the client- Parameters:
- defaultValue- Unique number which is not used so far
- Returns:
- ID to use to send this request
 
- 
checkSystemOverviewPrivilege
- 
checkSelStatisticsPrivilege
 
-