org.opengts.db
Class DCServerConfig.Command

java.lang.Object
  extended by org.opengts.db.DCServerConfig.Command
Enclosing class:
DCServerConfig

public static class DCServerConfig.Command
extends java.lang.Object


Constructor Summary
DCServerConfig.Command(java.lang.String dcsName, JSON._Object obj)
           
DCServerConfig.Command(java.lang.String dcsName, java.lang.String cmdName, java.lang.String desc, boolean enable, java.lang.String[] types, java.lang.String aclName, AclEntry.AccessLevel aclDft, java.lang.String cmdStr, boolean hasArgs, java.util.Collection<DCServerConfig.CommandArg> cmdArgs, java.lang.String cmdProtoH, long maxRteAge, boolean allowQueue, boolean expectAck, int expAckCode, long stateMask, boolean stateVal, int cmdStCode)
           
 
Method Summary
 AclEntry.AccessLevel getAclAccessLevelDefault()
           
 java.lang.String getAclName()
           
 int getArgCount()
           
 int getAuditStatusCode()
           
 DCServerConfig.CommandArg getCommandArg(int argNdx)
           
 DCServerConfig.CommandProtocol getCommandProtocol()
           
 DCServerConfig.CommandProtocol getCommandProtocol(DCServerConfig.CommandProtocol dftProto)
           
 java.lang.String getCommandProtocolHandler()
           
 java.lang.String getCommandString()
           
 java.lang.String getCommandString(Device device, java.lang.String[] cmdArgs)
           
 java.lang.String getDescription()
           
 boolean getExpectAck()
           
 int getExpectAckCode()
           
 long getMaximumRouteAge()
           
 java.lang.String getName()
           
 java.lang.String getServerName()
           
 long getStateBitMask()
           
 boolean getStateBitValue()
           
 java.lang.String[] getTypes()
           
 boolean hasAuditStatusCode()
           
 boolean hasCommandArgs()
           
 boolean hasMaximumRouteAge()
           
 boolean hasStateBitMask()
           
 boolean isCommandProtocolSMS()
           
 boolean isEnabled(BasicPrivateLabel privLabel)
           
 boolean isType(java.lang.String type)
           
 boolean queueIfUndelivered()
           
 boolean setDeviceCommandAttributes(DCServerFactory.ResultCode result, Device device, java.lang.String cmdStr, boolean update)
           
 JSON._Object toJsonObject()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DCServerConfig.Command

public DCServerConfig.Command(java.lang.String dcsName,
                              JSON._Object obj)
                       throws JSON.JSONParsingException
Throws:
JSON.JSONParsingException

DCServerConfig.Command

public DCServerConfig.Command(java.lang.String dcsName,
                              java.lang.String cmdName,
                              java.lang.String desc,
                              boolean enable,
                              java.lang.String[] types,
                              java.lang.String aclName,
                              AclEntry.AccessLevel aclDft,
                              java.lang.String cmdStr,
                              boolean hasArgs,
                              java.util.Collection<DCServerConfig.CommandArg> cmdArgs,
                              java.lang.String cmdProtoH,
                              long maxRteAge,
                              boolean allowQueue,
                              boolean expectAck,
                              int expAckCode,
                              long stateMask,
                              boolean stateVal,
                              int cmdStCode)
Method Detail

getServerName

public java.lang.String getServerName()

getName

public java.lang.String getName()

getDescription

public java.lang.String getDescription()

isEnabled

public boolean isEnabled(BasicPrivateLabel privLabel)

getTypes

public java.lang.String[] getTypes()

isType

public boolean isType(java.lang.String type)

getAclName

public java.lang.String getAclName()

getAclAccessLevelDefault

public AclEntry.AccessLevel getAclAccessLevelDefault()

getCommandString

public java.lang.String getCommandString()

getCommandString

public java.lang.String getCommandString(Device device,
                                         java.lang.String[] cmdArgs)

hasCommandArgs

public boolean hasCommandArgs()

getArgCount

public int getArgCount()

getCommandArg

public DCServerConfig.CommandArg getCommandArg(int argNdx)

getCommandProtocol

public DCServerConfig.CommandProtocol getCommandProtocol()

getCommandProtocol

public DCServerConfig.CommandProtocol getCommandProtocol(DCServerConfig.CommandProtocol dftProto)

isCommandProtocolSMS

public boolean isCommandProtocolSMS()

getCommandProtocolHandler

public java.lang.String getCommandProtocolHandler()

hasMaximumRouteAge

public boolean hasMaximumRouteAge()

getMaximumRouteAge

public long getMaximumRouteAge()

queueIfUndelivered

public boolean queueIfUndelivered()

getExpectAck

public boolean getExpectAck()

getExpectAckCode

public int getExpectAckCode()

hasStateBitMask

public boolean hasStateBitMask()

getStateBitMask

public long getStateBitMask()

getStateBitValue

public boolean getStateBitValue()

hasAuditStatusCode

public boolean hasAuditStatusCode()

getAuditStatusCode

public int getAuditStatusCode()

setDeviceCommandAttributes

public boolean setDeviceCommandAttributes(DCServerFactory.ResultCode result,
                                          Device device,
                                          java.lang.String cmdStr,
                                          boolean update)

toJsonObject

public JSON._Object toJsonObject()