com.ibm.commerce.utf.commands
Class AlgorithmRegistryBaseCmdImpl

com.ibm.commerce.command.AbstractECTargetableCommand
  |
  +--com.ibm.commerce.command.ControllerCommandImpl
        |
        +--com.ibm.commerce.tools.command.ToolsControllerCommandImpl
              |
              +--com.ibm.commerce.utf.commands.AlgorithmRegistryBaseCmdImpl
All Implemented Interfaces:
AccCommand, AlgorithmRegistryBaseCmd, ControllerCommand, ECCommand, ECTargetableCommand, Protectable, ToolsControllerCommand

public class AlgorithmRegistryBaseCmdImpl
extends ToolsControllerCommandImpl
implements AlgorithmRegistryBaseCmd

Algorithm Base command base object.


Field Summary
protected  java.lang.String algoClass
           
protected  java.lang.Integer algoId
           
protected  java.lang.String algoName
           
protected  java.lang.Integer allocationPolicy
           
protected  java.sql.Timestamp curTimeStamp
           
protected  java.lang.Integer domain
           
protected  java.lang.String expirationDate
           
protected  java.lang.String expirationTime
           
protected  java.sql.Timestamp expTimestamp
           
protected  java.lang.Integer languageId
           
protected  java.lang.String longDesc
           
protected  java.lang.Integer matchingPolicy
           
protected  java.lang.Long ownerid
           
protected  java.lang.Integer pricingPolicy
           
protected  java.lang.String shortDesc
           
protected  java.lang.Integer subdomain
           
protected  java.lang.String type
           
 
Fields inherited from class com.ibm.commerce.command.ControllerCommandImpl
requestProperties, responseProperties, retriable, viewReqProperties
 
Fields inherited from class com.ibm.commerce.command.AbstractECTargetableCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.utf.commands.AlgorithmRegistryBaseCmd
COPYRIGHT, defaultCommandClassName
 
Fields inherited from interface com.ibm.commerce.tools.command.ToolsControllerCommand
NAME
 
Fields inherited from interface com.ibm.commerce.command.ECTargetableCommand
COPYRIGHT
 
Constructor Summary
AlgorithmRegistryBaseCmdImpl()
          CreateAuctionCmdImpl constructor comment.
 
Method Summary
protected  int compareTimestamp(java.sql.Timestamp t1, java.sql.Timestamp t2)
          util method to compare two timestamps
 java.lang.String getAlgoClass()
          Algorithm class
 java.lang.Integer getAlgoId()
          Algorithm Id
 java.lang.String getAlgoName()
          Algorithm name
 java.lang.Integer getAllocationPolicy()
          Algorithm Allocation policy.
protected  java.sql.Timestamp getCurrentTimeStamp()
          Current timestamp
 java.lang.Integer getDomain()
          UTF Domain
 java.util.Hashtable getErrorContent()
          Get Error content
 boolean getErrorFlag()
          Get Error flag
 java.lang.String getExpirationDate()
          Algorithm Registry entry expiration date
 java.lang.String getExpirationTime()
          Algorithm registry entry expiration time
protected  java.sql.Timestamp getExpirationTimeStamp()
          Algorithm Registry Entry Expiration timestamp
 java.lang.Integer getLanguageId()
          Get Language Id
 java.lang.String getLongDesc()
          Algorithm long description
 java.lang.Integer getMatchingPolicy()
          Algorithm Matching policy.
 java.lang.Long getOwnerId()
          Owner id (aka member id)
 java.lang.Integer getPricingPolicy()
          Algorithm Pricing policy.
 TypedProperty getResponseProperties()
          Get Response properties
 java.lang.String getShortDesc()
          Algorithm short description
 java.lang.Integer getSubDomain()
          UTF Sub Domain
 java.util.Hashtable getToolXMLObject()
          Get XML Object
 java.lang.String getType()
          Algorithm type
 java.lang.String getViewTaskName()
          Get view task name
 java.lang.String getWizardNavigationFile()
          Get Wizard navigation object
 boolean isErrorFlag()
          Return Error flag indication
 boolean isReadyToCallExecute()
          isReadyToCallExecute method.
 void performExecute()
          performExecute
 void reset()
          Reset
 void setAlgoClassUrlName(java.lang.String name, boolean isReq)
          Set Algorithm Class Name
 void setAlgoId(java.lang.Integer newAlgoId)
          Set Algorithm Registry Id
 void setAlgoIdUrlName(java.lang.String name, boolean isReq)
          Set Algorithm Registry id
 void setAlgoNameUrlName(java.lang.String name, boolean isReq)
          Set algorithm name
 void setAllocationPolicyUrlName(java.lang.String name, boolean isReq)
          Set Algorithm entry allocation policy
 void setDomainUrlName(java.lang.String name, boolean isReq)
          Set UTF domain.
 void setErrorContent(java.util.Hashtable newErrorContent)
          Set error content
 void setErrorFlag(boolean newErrorFlag)
          Set error flag.
 void setExpirationDateUrlName(java.lang.String name, boolean isReq)
          Set algorithm registry entry expiration date.
protected  void setExpirationTimeStamp(java.sql.Timestamp newExpirationTimeStamp)
          Set algorithm registry entry expiration timestamp.
 void setExpirationTimeUrlName(java.lang.String name, boolean isReq)
          Set Expiration time.
 void setLanguageIdUrlName(java.lang.String name, boolean isReq)
          Set language id.
 void setLongDescriptionUrlName(java.lang.String name, boolean isReq)
          Set algorithm long description
 void setMatchingPolicyUrlName(java.lang.String name, boolean isReq)
          Set Algorithm entry matching policy
 void setOwnerId(java.lang.Long id)
          Set owner id
 void setOwnerIdUrlName(java.lang.String name, boolean isReq)
          Set owner id
 void setPricingPolicyUrlName(java.lang.String name, boolean isReq)
          Set Algorithm entry pricing policy
 void setRequestProperties(TypedProperty paramTable)
          Set request properties.
 void setResponseProperties(TypedProperty paramHash)
          Set response properties.
 void setShortDescriptionUrlName(java.lang.String name, boolean isReq)
          Set algorithm short description
 void setSubDomainUrlName(java.lang.String name, boolean isReq)
          Set UTF sub domain.
 void setToolXMLObject(java.util.Hashtable newToolXMLObject)
          Set TOOL XML object
 void setTypeUrlName(java.lang.String name, boolean isReq)
          Set algorithm entry type.
 void setViewTaskName(java.lang.String newViewTaskName)
          Set view task name.
 
Methods inherited from class com.ibm.commerce.tools.command.ToolsControllerCommandImpl
getViewInputProperties
 
Methods inherited from class com.ibm.commerce.command.ControllerCommandImpl
fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getRetriable, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setRetriable, setViewInputProperties
 
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters
 
Methods inherited from interface com.ibm.commerce.command.ControllerCommand
execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputProperties
 
Methods inherited from interface com.ibm.commerce.command.AccCommand
accessControlCheck, getAccCheck, getForUserId, setAccCheck, setForUserId, setOwner
 
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters
 
Methods inherited from interface com.ibm.commerce.security.Protectable
fulfills, getOwner
 

Field Detail

algoClass

protected java.lang.String algoClass

algoId

protected java.lang.Integer algoId

algoName

protected java.lang.String algoName

allocationPolicy

protected java.lang.Integer allocationPolicy

curTimeStamp

protected java.sql.Timestamp curTimeStamp

domain

protected java.lang.Integer domain

expirationDate

protected java.lang.String expirationDate

expirationTime

protected java.lang.String expirationTime

expTimestamp

protected java.sql.Timestamp expTimestamp

languageId

protected java.lang.Integer languageId

longDesc

protected java.lang.String longDesc

matchingPolicy

protected java.lang.Integer matchingPolicy

ownerid

protected java.lang.Long ownerid

pricingPolicy

protected java.lang.Integer pricingPolicy

shortDesc

protected java.lang.String shortDesc

subdomain

protected java.lang.Integer subdomain

type

protected java.lang.String type
Constructor Detail

AlgorithmRegistryBaseCmdImpl

public AlgorithmRegistryBaseCmdImpl()
CreateAuctionCmdImpl constructor comment.
Method Detail

compareTimestamp

protected int compareTimestamp(java.sql.Timestamp t1,
                               java.sql.Timestamp t2)
util method to compare two timestamps
Parameters:
t1 - java.sql.Timestamp
t2 - java.sql.Timestamp
Returns:
int 0 for equal and -1 for not equal

getAlgoClass

public java.lang.String getAlgoClass()
Algorithm class
Returns:
java.lang.String

getAlgoId

public java.lang.Integer getAlgoId()
Algorithm Id
Returns:
java.lang.Integer

getAlgoName

public java.lang.String getAlgoName()
Algorithm name
Returns:
java.lang.String

getAllocationPolicy

public java.lang.Integer getAllocationPolicy()
Algorithm Allocation policy. 0=One to one 1=One to many 2=Many to one 3=Many to many
Returns:
java.lang.String

getCurrentTimeStamp

protected java.sql.Timestamp getCurrentTimeStamp()
Current timestamp
Returns:
java.lang.Timestamp

getDomain

public java.lang.Integer getDomain()
UTF Domain
Returns:
java.lang.Integer

getErrorContent

public java.util.Hashtable getErrorContent()
Get Error content
Returns:
java.util.Hashtable

getErrorFlag

public boolean getErrorFlag()
Get Error flag
Parameters:
newErrorFlag - boolean

getExpirationDate

public java.lang.String getExpirationDate()
Algorithm Registry entry expiration date
Returns:
java.lang.String

getExpirationTime

public java.lang.String getExpirationTime()
Algorithm registry entry expiration time
Returns:
java.lang.String

getExpirationTimeStamp

protected java.sql.Timestamp getExpirationTimeStamp()
Algorithm Registry Entry Expiration timestamp
Returns:
java.lang.String

getLanguageId

public java.lang.Integer getLanguageId()
Get Language Id
Returns:
java.lang.Integer

getLongDesc

public java.lang.String getLongDesc()
Algorithm long description
Returns:
java.lang.String

getMatchingPolicy

public java.lang.Integer getMatchingPolicy()
Algorithm Matching policy. 0=Partial Match 1=Full Match
Returns:
java.lang.String

getOwnerId

public java.lang.Long getOwnerId()
Owner id (aka member id)
Returns:
java.lang.Long

getPricingPolicy

public java.lang.Integer getPricingPolicy()
Algorithm Pricing policy. 0=Buyside 1=Sellside 2=Midpoint
Returns:
java.lang.String

getResponseProperties

public TypedProperty getResponseProperties()
Get Response properties
Specified by:
getResponseProperties in interface ControllerCommand
Overrides:
getResponseProperties in class ControllerCommandImpl
Returns:
com.ibm.commerce.datatype.TypedProperty

getShortDesc

public java.lang.String getShortDesc()
Algorithm short description
Returns:
java.lang.String

getSubDomain

public java.lang.Integer getSubDomain()
UTF Sub Domain
Returns:
java.lang.Integer

getToolXMLObject

public java.util.Hashtable getToolXMLObject()
Get XML Object
Returns:
java.util.Hashtable

getType

public java.lang.String getType()
Algorithm type
Returns:
java.lang.String

getViewTaskName

public java.lang.String getViewTaskName()
Get view task name
Returns:
java.lang.String

getWizardNavigationFile

public java.lang.String getWizardNavigationFile()
Get Wizard navigation object
Returns:
java.lang.String

isErrorFlag

public boolean isErrorFlag()
Return Error flag indication
Returns:
boolean

isReadyToCallExecute

public boolean isReadyToCallExecute()
isReadyToCallExecute method.
Overrides:
isReadyToCallExecute in class AbstractECTargetableCommand
Following copied from class: com.ibm.commerce.command.AbstractECTargetableCommand
Returns:
boolean - true if we can execute the command false if we canot execute the command

performExecute

public void performExecute()
                    throws ECException
performExecute
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECTargetableCommand
Following copied from interface: com.ibm.commerce.command.ECCommand
Throws:
com.ibm.commerce.command.CommandException - The superclass for all ECExceptions.

reset

public void reset()
Reset
Overrides:
reset in class AbstractECTargetableCommand

setAlgoClassUrlName

public void setAlgoClassUrlName(java.lang.String name,
                                boolean isReq)
Set Algorithm Class Name
Specified by:
setAlgoClassUrlName in interface AlgorithmRegistryBaseCmd

setAlgoId

public void setAlgoId(java.lang.Integer newAlgoId)
Set Algorithm Registry Id

setAlgoIdUrlName

public void setAlgoIdUrlName(java.lang.String name,
                             boolean isReq)
                      throws ECApplicationException
Set Algorithm Registry id
Specified by:
setAlgoIdUrlName in interface AlgorithmRegistryBaseCmd

setAlgoNameUrlName

public void setAlgoNameUrlName(java.lang.String name,
                               boolean isReq)
                        throws ECApplicationException
Set algorithm name
Specified by:
setAlgoNameUrlName in interface AlgorithmRegistryBaseCmd

setAllocationPolicyUrlName

public void setAllocationPolicyUrlName(java.lang.String name,
                                       boolean isReq)
Set Algorithm entry allocation policy
Specified by:
setAllocationPolicyUrlName in interface AlgorithmRegistryBaseCmd

setDomainUrlName

public void setDomainUrlName(java.lang.String name,
                             boolean isReq)
Set UTF domain.
Specified by:
setDomainUrlName in interface AlgorithmRegistryBaseCmd

setErrorContent

public void setErrorContent(java.util.Hashtable newErrorContent)
Set error content

setErrorFlag

public void setErrorFlag(boolean newErrorFlag)
Set error flag.

setExpirationDateUrlName

public void setExpirationDateUrlName(java.lang.String name,
                                     boolean isReq)
Set algorithm registry entry expiration date. Format: yyyy-mm-dd
Specified by:
setExpirationDateUrlName in interface AlgorithmRegistryBaseCmd

setExpirationTimeStamp

protected void setExpirationTimeStamp(java.sql.Timestamp newExpirationTimeStamp)
                               throws ECApplicationException
Set algorithm registry entry expiration timestamp.

setExpirationTimeUrlName

public void setExpirationTimeUrlName(java.lang.String name,
                                     boolean isReq)
Set Expiration time.
Specified by:
setExpirationTimeUrlName in interface AlgorithmRegistryBaseCmd

setLanguageIdUrlName

public void setLanguageIdUrlName(java.lang.String name,
                                 boolean isReq)
Set language id.
Specified by:
setLanguageIdUrlName in interface AlgorithmRegistryBaseCmd

setLongDescriptionUrlName

public void setLongDescriptionUrlName(java.lang.String name,
                                      boolean isReq)
                               throws ECApplicationException
Set algorithm long description
Specified by:
setLongDescriptionUrlName in interface AlgorithmRegistryBaseCmd

setMatchingPolicyUrlName

public void setMatchingPolicyUrlName(java.lang.String name,
                                     boolean isReq)
Set Algorithm entry matching policy
Specified by:
setMatchingPolicyUrlName in interface AlgorithmRegistryBaseCmd

setOwnerId

public void setOwnerId(java.lang.Long id)
Set owner id

setOwnerIdUrlName

public void setOwnerIdUrlName(java.lang.String name,
                              boolean isReq)
Set owner id
Specified by:
setOwnerIdUrlName in interface AlgorithmRegistryBaseCmd

setPricingPolicyUrlName

public void setPricingPolicyUrlName(java.lang.String name,
                                    boolean isReq)
Set Algorithm entry pricing policy
Specified by:
setPricingPolicyUrlName in interface AlgorithmRegistryBaseCmd

setRequestProperties

public void setRequestProperties(TypedProperty paramTable)
                          throws ECApplicationException
Set request properties.
Specified by:
setRequestProperties in interface ControllerCommand
Overrides:
setRequestProperties in class ToolsControllerCommandImpl
Following copied from interface: com.ibm.commerce.command.ControllerCommand
Parameters:
requestProperties - com.ibm.commerce.datatype.TypedProperty
Throws:
com.ibm.commerce.exception.ECException. -  

setResponseProperties

public void setResponseProperties(TypedProperty paramHash)
Set response properties.
Overrides:
setResponseProperties in class ControllerCommandImpl
Following copied from class: com.ibm.commerce.command.ControllerCommandImpl
Parameters:
respProperties - com.ibm.commerce.datatype.TypedProperty

setShortDescriptionUrlName

public void setShortDescriptionUrlName(java.lang.String name,
                                       boolean isReq)
                                throws ECApplicationException
Set algorithm short description
Specified by:
setShortDescriptionUrlName in interface AlgorithmRegistryBaseCmd

setSubDomainUrlName

public void setSubDomainUrlName(java.lang.String name,
                                boolean isReq)
Set UTF sub domain.
Specified by:
setSubDomainUrlName in interface AlgorithmRegistryBaseCmd

setToolXMLObject

public void setToolXMLObject(java.util.Hashtable newToolXMLObject)
Set TOOL XML object

setTypeUrlName

public void setTypeUrlName(java.lang.String name,
                           boolean isReq)
                    throws ECApplicationException
Set algorithm entry type.
Specified by:
setTypeUrlName in interface AlgorithmRegistryBaseCmd

setViewTaskName

public void setViewTaskName(java.lang.String newViewTaskName)
Set view task name.