com.waveset.adapter
Class ShellScriptResultHandlerAttrParse

java.lang.Object
  extended bycom.waveset.adapter.ShellScriptResultHandlerBase
      extended bycom.waveset.adapter.ShellScriptResultHandlerAttrParse
All Implemented Interfaces:
com.waveset.adapter.ShellScriptResultHandler

public class ShellScriptResultHandlerAttrParse
extends ShellScriptResultHandlerBase


Field Summary
static java.lang.String CLASS
           
static java.lang.String identityAttribute
           
static java.lang.String nameAttribute
           
 
Fields inherited from class com.waveset.adapter.ShellScriptResultHandlerBase
_resource, _resourceAdapter
 
Method Summary
protected  void checkSyntax(Syntax syntax, AccountAttributeType attrType, java.lang.String mapName)
          Confirm that the specified syntax matches that of the attribute.
protected  java.lang.String forwardMapName(java.lang.String lhs)
           
 java.lang.String generateIdentity(Resource res, java.util.Map attributes)
          This really belongs somewhere else, ViewUtil? Given a Resource and an attribute Map, run the resource identity template if specified to produce an identity.
protected  AttrParse getAttrParse(java.lang.String opName)
           
 void getCreateUserResult(java.lang.String name, CaptureList captureList, WavesetResult result)
           
 java.util.ArrayList getListAllObjectsResult(java.lang.String name, java.lang.String objectType, CaptureList captureList)
           
protected  AttrParse getOptionalAttrParse(java.lang.String opName)
           
 WSUser getUserResult(java.lang.String name, CaptureList captureList, WSUser targetUser)
           
protected  WSAttribute getWSAttrFromMap(AccountAttributeType attrType, java.util.Map map, boolean supportMultiValuedAttrs)
           
protected  java.lang.String normalizeString(java.lang.String s)
           
protected  WSAttributes reverseMap(java.util.Map map)
          Convert the host attribute map into WSAttributes
 
Methods inherited from class com.waveset.adapter.ShellScriptResultHandlerBase
genWavesetResult, genWavesetResult, getAccountIteratorResult, getAuthenticateResult, getBlockAccountIteratorResult, getCheckCreateAccountResult, getCheckDeleteAccountResult, getCheckUpdateAccountResult, getCreateGroupResult, getDeleteObjectResult, getDeleteUserResult, getDisableUserResult, getEnableUserResult, getGetGroupResult, getGetUserResult, getListObjectsResult, getRenameGroupResult, getRenameUserResult, getResourceAdapter, getScanningResult, getTestConfigurationResult, getTestConnectionResult, getUpdateGroupResult, getUpdateUserResult, getUpdateUserResult, setResourceAdapter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS

public static final java.lang.String CLASS
See Also:
Constant Field Values

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
Method Detail

getAttrParse

protected AttrParse getAttrParse(java.lang.String opName)
                          throws WavesetException
Throws:
WavesetException

getOptionalAttrParse

protected AttrParse getOptionalAttrParse(java.lang.String opName)
                                  throws WavesetException
Throws:
WavesetException

normalizeString

protected java.lang.String normalizeString(java.lang.String s)

getUserResult

public WSUser getUserResult(java.lang.String name,
                            CaptureList captureList,
                            WSUser targetUser)
                     throws WavesetException
Specified by:
getUserResult in interface com.waveset.adapter.ShellScriptResultHandler
Overrides:
getUserResult in class ShellScriptResultHandlerBase
Throws:
WavesetException

generateIdentity

public java.lang.String generateIdentity(Resource res,
                                         java.util.Map attributes)
                                  throws WavesetException
This really belongs somewhere else, ViewUtil? Given a Resource and an attribute Map, run the resource identity template if specified to produce an identity. Return null if there are missing attributes, or there is no template. This is a reimplementation of ResourceAdapterBase.createIdentity that takes a Map rather than a WSUser because I'm tired of creating a ResourceAdapter and doing map/user conversion for something as simple as this. This probably should be moved to ViewUtil.

Throws:
WavesetException

forwardMapName

protected java.lang.String forwardMapName(java.lang.String lhs)
                                   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

getCreateUserResult

public void getCreateUserResult(java.lang.String name,
                                CaptureList captureList,
                                WavesetResult result)
                         throws WavesetException
Specified by:
getCreateUserResult in interface com.waveset.adapter.ShellScriptResultHandler
Overrides:
getCreateUserResult in class ShellScriptResultHandlerBase
Throws:
WavesetException

getListAllObjectsResult

public java.util.ArrayList getListAllObjectsResult(java.lang.String name,
                                                   java.lang.String objectType,
                                                   CaptureList captureList)
                                            throws WavesetException
Specified by:
getListAllObjectsResult in interface com.waveset.adapter.ShellScriptResultHandler
Overrides:
getListAllObjectsResult in class ShellScriptResultHandlerBase
Throws:
WavesetException