com.waveset.adapter
Class ScriptedGatewayResultHandlerAttrParse
java.lang.Object
com.waveset.adapter.ScriptedGatewayResultHandlerBase
com.waveset.adapter.ScriptedGatewayResultHandlerAttrParse
- All Implemented Interfaces:
- com.waveset.adapter.ScriptedGatewayResultHandler
- public class ScriptedGatewayResultHandlerAttrParse
- extends ScriptedGatewayResultHandlerBase
Method Summary |
WavesetResult |
assimilateResult(WavesetResult result,
java.lang.String attrParseName)
|
protected void |
checkSyntax(Syntax syntax,
AccountAttributeType attrType,
java.lang.String mapName)
Confirm that the specified syntax matches that of the attribute. |
WSUser |
createWSUserFromAttributes(java.lang.String identity,
java.util.Map attributeValues)
|
protected AttrParse |
getAttrParse(java.lang.String opName)
|
protected AttrParse |
getOptionalAttrParse(java.lang.String opName)
|
protected WSAttribute |
getWSAttrFromMap(AccountAttributeType attrType,
java.util.Map map,
boolean supportMultiValuedAttrs)
|
WavesetResult |
handleCreateResult(ScriptedGatewayResourceAdapter resourceAdapter,
java.lang.String cmd,
XmlUtil xu,
org.w3c.dom.Document d)
|
WavesetResult |
handleDeleteResult(ScriptedGatewayResourceAdapter resourceAdapter,
java.lang.String cmd,
XmlUtil xu,
org.w3c.dom.Document d)
|
java.util.ArrayList |
handleGetObjectListFromResponse(ScriptedGatewayResourceAdapter resourceAdapter,
java.lang.String objectType,
java.lang.String response)
|
WavesetResult |
handleLoadUsersFromResponse(ScriptedGatewayResourceAdapter resourceAdapter,
java.lang.String response,
java.util.ArrayList users)
|
WavesetResult |
handleUpdateResult(ScriptedGatewayResourceAdapter resourceAdapter,
java.lang.String cmd,
XmlUtil xu,
org.w3c.dom.Document d)
|
static void |
main(java.lang.String[] args)
|
protected WSAttributes |
reverseMap(java.util.Map map)
Convert the host attribute map into WSAttributes |
Methods inherited from class com.waveset.adapter.ScriptedGatewayResultHandlerBase |
getResource, handleAuthenticateResult, handleDisableResult, handleEnableResult, handleGetAllResult, handleGetFileResult, handleGetGenericObjectsFromResponse, handleGetInfoResult, handleGetObjectFromResponse, handleGetUserResult, handleListAllResult, handleProcessResponse, handleScanResult, handleSetInfoResult, handleTestConfigResult, setResource |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
nameAttribute
public static final java.lang.String nameAttribute
- See Also:
- Constant Field Values
identityAttribute
public static final java.lang.String identityAttribute
- See Also:
- Constant Field Values
getAttrParse
protected AttrParse getAttrParse(java.lang.String opName)
throws WavesetException
- Throws:
WavesetException
getOptionalAttrParse
protected AttrParse getOptionalAttrParse(java.lang.String opName)
throws WavesetException
- Throws:
WavesetException
handleLoadUsersFromResponse
public WavesetResult handleLoadUsersFromResponse(ScriptedGatewayResourceAdapter resourceAdapter,
java.lang.String response,
java.util.ArrayList users)
throws WavesetException
- Specified by:
handleLoadUsersFromResponse
in interface com.waveset.adapter.ScriptedGatewayResultHandler
- Overrides:
handleLoadUsersFromResponse
in class ScriptedGatewayResultHandlerBase
- Throws:
WavesetException
handleGetObjectListFromResponse
public java.util.ArrayList handleGetObjectListFromResponse(ScriptedGatewayResourceAdapter resourceAdapter,
java.lang.String objectType,
java.lang.String response)
throws WavesetException
- Specified by:
handleGetObjectListFromResponse
in interface com.waveset.adapter.ScriptedGatewayResultHandler
- Overrides:
handleGetObjectListFromResponse
in class ScriptedGatewayResultHandlerBase
- Throws:
WavesetException
createWSUserFromAttributes
public WSUser createWSUserFromAttributes(java.lang.String identity,
java.util.Map attributeValues)
throws WavesetException
- Throws:
WavesetException
reverseMap
protected WSAttributes reverseMap(java.util.Map map)
throws WavesetException
- Convert the host attribute map into WSAttributes
- Parameters:
map
- Map of host field names and values
- Returns:
- WSAttributes corresponding to the initial Map
- Throws:
WavesetException
getWSAttrFromMap
protected WSAttribute getWSAttrFromMap(AccountAttributeType attrType,
java.util.Map map,
boolean supportMultiValuedAttrs)
throws WavesetException
- Throws:
WavesetException
checkSyntax
protected void checkSyntax(Syntax syntax,
AccountAttributeType attrType,
java.lang.String mapName)
throws WavesetException
- Confirm that the specified syntax matches that of the attribute.
- Throws:
WavesetException
assimilateResult
public WavesetResult assimilateResult(WavesetResult result,
java.lang.String attrParseName)
throws WavesetException
- Throws:
WavesetException
handleCreateResult
public WavesetResult handleCreateResult(ScriptedGatewayResourceAdapter resourceAdapter,
java.lang.String cmd,
XmlUtil xu,
org.w3c.dom.Document d)
throws WavesetException
- Specified by:
handleCreateResult
in interface com.waveset.adapter.ScriptedGatewayResultHandler
- Overrides:
handleCreateResult
in class ScriptedGatewayResultHandlerBase
- Throws:
WavesetException
handleUpdateResult
public WavesetResult handleUpdateResult(ScriptedGatewayResourceAdapter resourceAdapter,
java.lang.String cmd,
XmlUtil xu,
org.w3c.dom.Document d)
throws WavesetException
- Specified by:
handleUpdateResult
in interface com.waveset.adapter.ScriptedGatewayResultHandler
- Overrides:
handleUpdateResult
in class ScriptedGatewayResultHandlerBase
- Throws:
WavesetException
handleDeleteResult
public WavesetResult handleDeleteResult(ScriptedGatewayResourceAdapter resourceAdapter,
java.lang.String cmd,
XmlUtil xu,
org.w3c.dom.Document d)
throws WavesetException
- Specified by:
handleDeleteResult
in interface com.waveset.adapter.ScriptedGatewayResultHandler
- Overrides:
handleDeleteResult
in class ScriptedGatewayResultHandlerBase
- Throws:
WavesetException
main
public static void main(java.lang.String[] args)
- Parameters:
args
-