com.ibm.commerce.utf.commands
Class PAttributeBaseCmdImpl

com.ibm.commerce.command.AbstractECTargetableCommand
  |
  +--com.ibm.commerce.command.ControllerCommandImpl
        |
        +--com.ibm.commerce.tools.command.ToolsControllerCommandImpl
              |
              +--com.ibm.commerce.utf.commands.PAttributeBaseCmdImpl
All Implemented Interfaces:
AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, PAttributeBaseCmd, Protectable, ToolsControllerCommand
Direct Known Subclasses:
PAttributeCreateCmdImpl, PAttributeModifyCmdImpl

public class PAttributeBaseCmdImpl
extends ToolsControllerCommandImpl
implements PAttributeBaseCmd

Base class implementation for Personalization Attributes.


Field Summary
protected  java.lang.String accessBeanName
           
protected  java.lang.Long attrId
           
protected  java.lang.String attrName
           
protected  java.lang.String description
           
protected  java.lang.Integer encryptionFlag
           
protected  java.lang.Integer languageId
           
protected  java.lang.Integer sequence
           
protected  java.lang.String typeId
           
 
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.PAttributeBaseCmd
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
PAttributeBaseCmdImpl()
          CreateAttribueDicionaryCmdImpl constructor comment.
 
Method Summary
 java.lang.String determineAccessBeanName(java.lang.String valueType)
           
 java.lang.String getAccessBeanName()
           
 java.lang.Long getAttrId()
          Attribute id
 java.lang.String getAttrName()
          Attribut name
 java.lang.String getDescription()
          Attribute description
 java.lang.Integer getEncryptionFlag()
           
 java.util.Hashtable getErrorContent()
           
 boolean getErrorFlag()
           
 java.lang.Integer getLanguageId()
          Language id
 TypedProperty getResponseProperties()
          This method is called after a controller command has been executed successfully.
 java.lang.Integer getSequence()
          Sequence
 java.util.Hashtable getToolXMLObject()
           
 java.lang.String getTypeId()
          Attribute data type id
 java.lang.String getViewTaskName()
          get the auction view task name
 java.lang.String getWizardNavagationFile()
           
 boolean isErrorFlag()
           
 boolean isReadyToCallExecute()
          isReadyToCallExecute method comment.
 void performExecute()
          performExecute
 void reset()
          reset method comment.
 void setAccessBeanName(java.lang.String beanName)
           
 void setAttrId(java.lang.Long newAttrId)
          Set Attribute Id
 void setAttrIdUrlName(java.lang.String name, boolean isReq)
          Set attribute id
 void setAttrName(java.lang.String newAttrName)
          Set Attribute Name
 void setAttrNameUrlName(java.lang.String name, boolean isReq)
          Set attribute name
 void setDescription(java.lang.String newDescription)
          Set Attribute Description
 void setDescriptionUrlName(java.lang.String name, boolean isReq)
          Set attribute short description
 void setEncryptionFlag(java.lang.Integer encryptFlag)
          Set Encryption flag
 void setEncyrptionFlagUrlName(java.lang.String name, boolean isReq)
          Set Encryption flag
 void setErrorContent(java.util.Hashtable newErrorContent)
          Set error contect
 void setErrorFlag(boolean newErrorFlag)
          Set error flag.
 void setLanguageIdUrlName(java.lang.String name, boolean isReq)
          Set language id.
 void setRequestProperties(TypedProperty paramTable)
          Set request properties.
 void setResponseProperties(TypedProperty paramHash)
          Set response properties.
 void setSequence(java.lang.Integer newSequence)
          Set Sequence
 void setSequenceUrlName(java.lang.String name, boolean isReq)
          Set attribute sequence
 void setToolXMLObject(java.util.Hashtable newToolXMLObject)
          Set TOOL XML object
 void setTypeId(java.lang.String newTypeId)
          Set Attribute type id
 void setTypeIdUrlName(java.lang.String name, boolean isReq)
          Set attribute data type id .
 void setViewTaskName(java.lang.String newViewTaskName)
          Set creation 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

accessBeanName

protected java.lang.String accessBeanName

attrId

protected java.lang.Long attrId

attrName

protected java.lang.String attrName

description

protected java.lang.String description

encryptionFlag

protected java.lang.Integer encryptionFlag

languageId

protected java.lang.Integer languageId

sequence

protected java.lang.Integer sequence

typeId

protected java.lang.String typeId
Constructor Detail

PAttributeBaseCmdImpl

public PAttributeBaseCmdImpl()
CreateAttribueDicionaryCmdImpl constructor comment.
Method Detail

determineAccessBeanName

public java.lang.String determineAccessBeanName(java.lang.String valueType)

getAccessBeanName

public java.lang.String getAccessBeanName()

getAttrId

public java.lang.Long getAttrId()
Attribute id
Returns:
java.lang.Long

getAttrName

public java.lang.String getAttrName()
Attribut name
Returns:
java.lang.String

getDescription

public java.lang.String getDescription()
Attribute description
Returns:
java.lang.String

getEncryptionFlag

public java.lang.Integer getEncryptionFlag()

getErrorContent

public java.util.Hashtable getErrorContent()
Returns:
java.util.Hashtable

getErrorFlag

public boolean getErrorFlag()
Parameters:
newErrorFlag - boolean

getLanguageId

public java.lang.Integer getLanguageId()
Language id
Returns:
java.lang.Integer

getResponseProperties

public TypedProperty getResponseProperties()
Description copied from interface: ControllerCommand
This method is called after a controller command has been executed successfully. It return a a hashtable of name value pairs. The controller command should normally return a view command name for returning response data. For example, it could contain the following properties: EC_VIEWTASKNAME (viewTaskName) - name of a view command / view task this is a required parameter EC_DOCPATHNAME (docname) - name of a jsp to be forwarded EC_TEXTDOCUMENT (textDocument)- inputStream for the text document to be returned EC_RAWDOCUMENT (rawDocument)- inputStream for the raw document to be returned EC_REDIRECTURL (redirecturl) - name of a redirect url or other additional information to be passed as requestParameters to the view command The response properties are combined with any default parameters defined in the properties column of the viewreg before passing on the the view command.
Specified by:
getResponseProperties in interface ControllerCommand
Overrides:
getResponseProperties in class ControllerCommandImpl
Returns:
com.ibm.commerce.datatype.TypedProperty

getSequence

public java.lang.Integer getSequence()
Sequence
Returns:
java.lang.Integer

getToolXMLObject

public java.util.Hashtable getToolXMLObject()
Returns:
java.util.Hashtable

getTypeId

public java.lang.String getTypeId()
Attribute data type id
Returns:
java.lang.String

getViewTaskName

public java.lang.String getViewTaskName()
get the auction view task name
Returns:
java.lang.String

getWizardNavagationFile

public java.lang.String getWizardNavagationFile()
Returns:
java.lang.String

isErrorFlag

public boolean isErrorFlag()
Returns:
boolean

isReadyToCallExecute

public boolean isReadyToCallExecute()
isReadyToCallExecute method comment.
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 method comment.
Overrides:
reset in class AbstractECTargetableCommand

setAccessBeanName

public void setAccessBeanName(java.lang.String beanName)

setAttrId

public void setAttrId(java.lang.Long newAttrId)
Set Attribute Id

setAttrIdUrlName

public void setAttrIdUrlName(java.lang.String name,
                             boolean isReq)
                      throws ECApplicationException
Set attribute id
Specified by:
setAttrIdUrlName in interface PAttributeBaseCmd

setAttrName

public void setAttrName(java.lang.String newAttrName)
Set Attribute Name

setAttrNameUrlName

public void setAttrNameUrlName(java.lang.String name,
                               boolean isReq)
                        throws ECApplicationException
Set attribute name
Specified by:
setAttrNameUrlName in interface PAttributeBaseCmd

setDescription

public void setDescription(java.lang.String newDescription)
Set Attribute Description

setDescriptionUrlName

public void setDescriptionUrlName(java.lang.String name,
                                  boolean isReq)
                           throws ECApplicationException
Set attribute short description
Specified by:
setDescriptionUrlName in interface PAttributeBaseCmd

setEncryptionFlag

public void setEncryptionFlag(java.lang.Integer encryptFlag)
Set Encryption flag

setEncyrptionFlagUrlName

public void setEncyrptionFlagUrlName(java.lang.String name,
                                     boolean isReq)
Set Encryption flag
Specified by:
setEncyrptionFlagUrlName in interface PAttributeBaseCmd

setErrorContent

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

setErrorFlag

public void setErrorFlag(boolean newErrorFlag)
Set error flag.

setLanguageIdUrlName

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

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

setSequence

public void setSequence(java.lang.Integer newSequence)
Set Sequence

setSequenceUrlName

public void setSequenceUrlName(java.lang.String name,
                               boolean isReq)
Set attribute sequence
Specified by:
setSequenceUrlName in interface PAttributeBaseCmd

setToolXMLObject

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

setTypeId

public void setTypeId(java.lang.String newTypeId)
Set Attribute type id

setTypeIdUrlName

public void setTypeIdUrlName(java.lang.String name,
                             boolean isReq)
                      throws ECApplicationException
Set attribute data type id .
Specified by:
setTypeIdUrlName in interface PAttributeBaseCmd

setViewTaskName

public void setViewTaskName(java.lang.String newViewTaskName)
Set creation view task name. The view task name specifies what view to execute when create completes.