Class SaveDBRoleTask
- java.lang.Object
-
- com.microstrategy.web.tasks.AbstractBaseTask
-
- com.microstrategy.web.app.tasks.AbstractAppTask
-
- com.microstrategy.web.app.tasks.architect.SaveDBRoleTask
-
- All Implemented Interfaces:
Task
public class SaveDBRoleTask extends AbstractAppTask
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
SaveDBRoleTask.DBObjectsHandler
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.String
CHARACTER_ENCODING_FOR_UNIX_NAME
protected TaskParameterMetadata
dbroleInfoTaskParam
protected static java.lang.String
DRIVERMODE
protected static int
MAX_CONNECTION_ATTEMPT_TIME
protected static int
MAX_IDLE_TIMEOUT
protected static int
MAX_QUERY_EXECUTION_TIME
protected static int
OBJECT_FLAGS
static java.lang.String
PARAM_DBROLEINFO
protected static java.lang.String
PARAMETERIZED_QUERIES
protected static java.lang.String
PARAMETERIZED_QUERIES_DISABLED_VALUE
protected static java.lang.String
PARAMETERIZED_QUERIES_ENABLED_VALUE
protected static java.lang.String
SERVER_CONNECTION_PROPERTY_SET_NAME
protected static java.lang.String
VLDB_REPORT_PROPERTY_SET_NAME
protected static java.lang.String
WALLET_BINARY
protected static java.lang.String
WALLET_INFO
-
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 SaveDBRoleTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
cleanUpInfo(java.lang.String info)
void
constructTaskOutput(MarkupOutput markupOutput, WebDBRole dbr)
protected XMLBuilder
constructXmlBuilder(WebIServerSession session, java.lang.String info)
protected java.lang.String
getPassword(java.lang.String sessionID, java.lang.String dbrid)
protected boolean
isCUShare(java.lang.String iValue)
protected WebDBRole
parseAndSaveObject(WebIServerSession session, java.lang.String xml)
java.lang.String
process(WebIServerSession session, java.lang.String info)
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.protected void
saveDBConnection(WebIServerSession iSession, WebDBConnection iDbConnection)
protected void
saveDBLogin(WebIServerSession iSession, WebDBLogin iL)
protected void
saveDBRole(WebIServerSession iSession, WebDBRole iDbr, java.lang.String iDbrName)
-
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_DBROLEINFO
public static final java.lang.String PARAM_DBROLEINFO
- See Also:
- Constant Field Values
-
CHARACTER_ENCODING_FOR_UNIX_NAME
protected static final java.lang.String CHARACTER_ENCODING_FOR_UNIX_NAME
- See Also:
- Constant Field Values
-
PARAMETERIZED_QUERIES
protected static final java.lang.String PARAMETERIZED_QUERIES
- See Also:
- Constant Field Values
-
PARAMETERIZED_QUERIES_ENABLED_VALUE
protected static final java.lang.String PARAMETERIZED_QUERIES_ENABLED_VALUE
- See Also:
- Constant Field Values
-
PARAMETERIZED_QUERIES_DISABLED_VALUE
protected static final java.lang.String PARAMETERIZED_QUERIES_DISABLED_VALUE
- See Also:
- Constant Field Values
-
WALLET_INFO
protected static final java.lang.String WALLET_INFO
- See Also:
- Constant Field Values
-
WALLET_BINARY
protected static final java.lang.String WALLET_BINARY
- See Also:
- Constant Field Values
-
DRIVERMODE
protected static final java.lang.String DRIVERMODE
- See Also:
- Constant Field Values
-
SERVER_CONNECTION_PROPERTY_SET_NAME
protected static final java.lang.String SERVER_CONNECTION_PROPERTY_SET_NAME
- See Also:
- Constant Field Values
-
VLDB_REPORT_PROPERTY_SET_NAME
protected static final java.lang.String VLDB_REPORT_PROPERTY_SET_NAME
- See Also:
- Constant Field Values
-
OBJECT_FLAGS
protected static final int OBJECT_FLAGS
- See Also:
- Constant Field Values
-
MAX_QUERY_EXECUTION_TIME
protected static final int MAX_QUERY_EXECUTION_TIME
- See Also:
- Constant Field Values
-
MAX_CONNECTION_ATTEMPT_TIME
protected static final int MAX_CONNECTION_ATTEMPT_TIME
- See Also:
- Constant Field Values
-
MAX_IDLE_TIMEOUT
protected static final int MAX_IDLE_TIMEOUT
- See Also:
- Constant Field Values
-
dbroleInfoTaskParam
protected TaskParameterMetadata dbroleInfoTaskParam
-
-
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)
-
process
public java.lang.String process(WebIServerSession session, java.lang.String info) throws TaskException
- Throws:
TaskException
-
getPassword
protected java.lang.String getPassword(java.lang.String sessionID, java.lang.String dbrid) throws TaskException
- Throws:
TaskException
-
cleanUpInfo
public java.lang.String cleanUpInfo(java.lang.String info) throws TaskException
- Throws:
TaskException
-
constructXmlBuilder
protected XMLBuilder constructXmlBuilder(WebIServerSession session, java.lang.String info) throws TaskException
- Throws:
TaskException
-
isCUShare
protected boolean isCUShare(java.lang.String iValue)
-
parseAndSaveObject
protected WebDBRole parseAndSaveObject(WebIServerSession session, java.lang.String xml) throws TaskException
- Throws:
TaskException
-
saveDBRole
protected void saveDBRole(WebIServerSession iSession, WebDBRole iDbr, java.lang.String iDbrName) throws WebObjectsException
- Throws:
WebObjectsException
-
saveDBLogin
protected void saveDBLogin(WebIServerSession iSession, WebDBLogin iL) throws WebObjectsException
- Throws:
WebObjectsException
-
saveDBConnection
protected void saveDBConnection(WebIServerSession iSession, WebDBConnection iDbConnection) throws WebObjectsException
- Throws:
WebObjectsException
-
constructTaskOutput
public void constructTaskOutput(MarkupOutput markupOutput, WebDBRole dbr) throws TaskException
- Throws:
TaskException
-
-