Package com.microstrategy.web.app.tasks
Class WebServerAdminTask
- java.lang.Object
-
- com.microstrategy.web.tasks.AbstractBaseTask
-
- com.microstrategy.web.app.tasks.AbstractAppTask
-
- com.microstrategy.web.app.tasks.WebServerAdminTask
-
- All Implemented Interfaces:
Task
public class WebServerAdminTask extends AbstractAppTask
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ACTION_CONNECT
static java.lang.String
ACTION_DISCONNECT
static java.lang.String
NODE_NAME
protected static java.lang.String
PARAM_NAME_ACTION
protected static java.lang.String
PARAM_NAME_AUTHMODE
protected static java.lang.String
PARAM_NAME_P
protected static java.lang.String
PARAM_NAME_PORT
protected static java.lang.String
PARAM_NAME_SERVER
The name of the server parameter.protected static java.lang.String
PARAM_NAME_U
protected static java.lang.String
PARAM_NAME_WEBAPP
static java.lang.String
ROOT_NAME
static java.lang.String
SERVER_CONNECTED
static java.lang.String
SERVER_ERR_MSG
static java.lang.String
SERVER_ID
static java.lang.String
SERVER_NAME
static java.lang.String
SERVER_PORT
static java.lang.String
SERVER_TOKEN
static java.lang.String
TASK_ID
static java.lang.String
TASK_PARA_ACTION
static java.lang.String
TASK_PARA_AUTHMODE
static java.lang.String
TASK_PARA_P
static java.lang.String
TASK_PARA_PASSWORD
Deprecated.static java.lang.String
TASK_PARA_PORT
static java.lang.String
TASK_PARA_SERVER
static java.lang.String
TASK_PARA_U
static java.lang.String
TASK_PARA_USERNAME
Deprecated.static java.lang.String
TASK_PARA_WEBAPP
-
Fields inherited from class com.microstrategy.web.tasks.AbstractBaseTask
compressOutput, CONTENT_TYPE_BINARY, CONTENT_TYPE_HTML, CONTENT_TYPE_JSON, CONTENT_TYPE_JSON_ALL, CONTENT_TYPE_JSON_D, CONTENT_TYPE_JSON_P, CONTENT_TYPE_XML, CONTENT_TYPE_XML_ANF, DEFAULT_MAX_WAIT, DEFAULT_POLLING_FREQ, execFlagsParam, INDEFINITE_MAX_WAIT, maxWaitParam, metadata, mPrivileges, msgIDParam, objectIDParam, OTHER_CONTENT_KEY_LAYOUTS, PARAM_NAME_EXEC_FLAGS, PARAM_NAME_MAX_WAIT, PARAM_NAME_MESSAGE_ID, PARAM_NAME_OBJECT_ID, PARAM_NAME_POLLING_FREQ, PARAM_NAME_RESULT_FLAGS, PARAM_NAME_SESSION_ID, PARAM_NAME_SESSION_STATE, PARAM_NAME_STATE_ID, pollingFreqParam, PREFERENCE_DEFAULT_MAX_WAIT_IN_TASK, resultFlagsParam, sessionIDParam, sessionStateParam, stateIDParam
-
-
Constructor Summary
Constructors Constructor Description WebServerAdminTask()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
connectServer(java.lang.String name, java.lang.String portValue, int iLocale)
static void
disConnectServer(java.lang.String name)
disconnect I-Server with local web serverprotected static java.util.Map<java.lang.String,java.lang.String>
getParas(java.lang.String iServer, java.lang.String iPort, java.lang.String iAction, java.lang.String iU, java.lang.String iP, java.lang.String iAuthmode, java.lang.String iWebapp)
java.io.File
getTokenFile(AppContext appcontext, java.lang.String serverName)
boolean
isTokenExists(AppContext appcontext, java.lang.String servername)
void
processRequest(TaskRequestContext context, TaskOutput taskOutput)
The default implementation of this method of processRequest gets the Primary Content from the TaskOutput and invokes theAbstractBaseTask.processRequest(TaskRequestContext, MarkupOutput)
version.-
Methods inherited from class com.microstrategy.web.app.tasks.AbstractAppTask
getDescriptor, newRequestContext
-
Methods inherited from class com.microstrategy.web.tasks.AbstractBaseTask
addExecFlagsParam, addJuilLayouts, addMaxWaitParam, addMaxWaitParam, addMessageIDParam, addObjectIDParam, addParameterMetadata, addParameterMetadata, addParameterMetadata, addPollingFrequencyParam, addPollingFrequencyParam, addResultFlagsParam, addSessionIDParam, addSessionStateParam, addStateIDParam, checkForRequiredParameters, destroy, getCompressOutput, getID, getMetadata, getPrivileges, getSysDefaultPreferenceValue, init, processRequest, retrieveUploadedFile, setCompressOutput, setDescription, setID, setMetadata, setPrivileges, validateContentType
-
-
-
-
Field Detail
-
PARAM_NAME_SERVER
protected static final java.lang.String PARAM_NAME_SERVER
The name of the server parameter.- See Also:
- Constant Field Values
-
PARAM_NAME_PORT
protected static final java.lang.String PARAM_NAME_PORT
- See Also:
- Constant Field Values
-
PARAM_NAME_ACTION
protected static final java.lang.String PARAM_NAME_ACTION
- See Also:
- Constant Field Values
-
PARAM_NAME_U
protected static final java.lang.String PARAM_NAME_U
- See Also:
- Constant Field Values
-
PARAM_NAME_P
protected static final java.lang.String PARAM_NAME_P
- See Also:
- Constant Field Values
-
PARAM_NAME_AUTHMODE
protected static final java.lang.String PARAM_NAME_AUTHMODE
- See Also:
- Constant Field Values
-
PARAM_NAME_WEBAPP
protected static final java.lang.String PARAM_NAME_WEBAPP
- See Also:
- Constant Field Values
-
ACTION_CONNECT
public static final java.lang.String ACTION_CONNECT
- See Also:
- Constant Field Values
-
ACTION_DISCONNECT
public static final java.lang.String ACTION_DISCONNECT
- See Also:
- Constant Field Values
-
TASK_PARA_SERVER
public static final java.lang.String TASK_PARA_SERVER
- See Also:
- Constant Field Values
-
TASK_PARA_PORT
public static final java.lang.String TASK_PARA_PORT
- See Also:
- Constant Field Values
-
TASK_PARA_ACTION
public static final java.lang.String TASK_PARA_ACTION
- See Also:
- Constant Field Values
-
TASK_PARA_U
public static final java.lang.String TASK_PARA_U
- See Also:
- Constant Field Values
-
TASK_PARA_USERNAME
@Deprecated public static final java.lang.String TASK_PARA_USERNAME
Deprecated.- See Also:
- Constant Field Values
-
TASK_PARA_P
public static final java.lang.String TASK_PARA_P
- See Also:
- Constant Field Values
-
TASK_PARA_PASSWORD
@Deprecated public static final java.lang.String TASK_PARA_PASSWORD
Deprecated.- See Also:
- Constant Field Values
-
TASK_PARA_AUTHMODE
public static final java.lang.String TASK_PARA_AUTHMODE
- See Also:
- Constant Field Values
-
TASK_PARA_WEBAPP
public static final java.lang.String TASK_PARA_WEBAPP
- See Also:
- Constant Field Values
-
TASK_ID
public static final java.lang.String TASK_ID
- See Also:
- Constant Field Values
-
ROOT_NAME
public static final java.lang.String ROOT_NAME
- See Also:
- Constant Field Values
-
NODE_NAME
public static final java.lang.String NODE_NAME
- See Also:
- Constant Field Values
-
SERVER_ID
public static final java.lang.String SERVER_ID
- See Also:
- Constant Field Values
-
SERVER_NAME
public static final java.lang.String SERVER_NAME
- See Also:
- Constant Field Values
-
SERVER_PORT
public static final java.lang.String SERVER_PORT
- See Also:
- Constant Field Values
-
SERVER_CONNECTED
public static final java.lang.String SERVER_CONNECTED
- See Also:
- Constant Field Values
-
SERVER_TOKEN
public static final java.lang.String SERVER_TOKEN
- See Also:
- Constant Field Values
-
SERVER_ERR_MSG
public static final java.lang.String SERVER_ERR_MSG
- See Also:
- Constant Field Values
-
-
Method Detail
-
processRequest
public void processRequest(TaskRequestContext context, TaskOutput taskOutput) throws TaskException
Description copied from class:AbstractBaseTask
The default implementation of this method of processRequest gets the Primary Content from the TaskOutput and invokes theAbstractBaseTask.processRequest(TaskRequestContext, MarkupOutput)
version.- Specified by:
processRequest
in interfaceTask
- Overrides:
processRequest
in classAbstractBaseTask
- Parameters:
context
- TheTaskRequestContext
object that maintains the state of the request.taskOutput
- TheTaskOutput
that contains the output generated by the Task.- Throws:
TaskException
- If the Task was unable to satisfy the request.- See Also:
Task.processRequest(TaskRequestContext, TaskOutput)
-
connectServer
public static void connectServer(java.lang.String name, java.lang.String portValue, int iLocale) throws WebException
- Throws:
WebException
-
disConnectServer
public static void disConnectServer(java.lang.String name) throws WebException
disconnect I-Server with local web server- Parameters:
iIPAServer
-- Throws:
WebException
-
getParas
protected static java.util.Map<java.lang.String,java.lang.String> getParas(java.lang.String iServer, java.lang.String iPort, java.lang.String iAction, java.lang.String iU, java.lang.String iP, java.lang.String iAuthmode, java.lang.String iWebapp)
-
isTokenExists
public boolean isTokenExists(AppContext appcontext, java.lang.String servername)
-
getTokenFile
public java.io.File getTokenFile(AppContext appcontext, java.lang.String serverName)
-
-