com.ibm.commerce.utf.commands
Class PAttributeBaseCmdImpl

java.lang.Object
  CacheableCommandImpl
      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

This is the default implementation of the PAttributeBaseCmd.

This command uses the following AccessBeans:

See Also:
Serialized Form

Field Summary
protected java.lang.String accessBeanName
Access Bean Name.
protected java.lang.Long attrId
Attribute id
protected java.lang.String attrName
Attribut name
protected java.lang.String description
Description.
protected java.lang.Integer encryptionFlag
Encryption Flag.
protected java.lang.Integer languageId
Language Id.
protected java.lang.Integer sequence
Sequence
protected java.lang.String typeId
Type Id
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
Constructor Summary
PAttributeBaseCmdImpl()
CreateAttribueDicionaryCmdImpl constructor comment.
Method Summary
java.lang.String determineAccessBeanName(java.lang.String valueType)
Determine Access Bean Name
java.lang.String getAccessBeanName()
Set Access Bean Name
java.lang.Long getAttrId()
Attribute id
java.lang.String getAttrName()
Attribut name
java.lang.String getDescription()
Attribute description
java.lang.Integer getEncryptionFlag()
Encryption Flag
java.util.Hashtable getErrorContent()
boolean getErrorFlag()
java.lang.Integer getLanguageId()
Language id
TypedProperty getResponseProperties()
Gets the response properties associated with this command.
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 the command.
void setAccessBeanName(java.lang.String beanName)
Set Access Bean Name
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
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getRetriable, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setRetriable, setViewInputProperties
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand
accessControlCheck, checkIsAllowed, checkParameters, checkResourcePermission, createCommandExecutionEvent, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.ibm.commerce.command.ControllerCommand
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputProperties
Methods inherited from interface com.ibm.commerce.command.AccCommand
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
Methods inherited from interface com.ibm.commerce.security.Protectable
fulfills, getOwner
Field Detail

description

protected java.lang.String description
Description.

accessBeanName

protected java.lang.String accessBeanName
Access Bean Name.

encryptionFlag

protected java.lang.Integer encryptionFlag
Encryption Flag.

languageId

protected java.lang.Integer languageId
Language Id.

attrName

protected java.lang.String attrName
Attribut name

typeId

protected java.lang.String typeId
Type Id

attrId

protected java.lang.Long attrId
Attribute id

sequence

protected java.lang.Integer sequence
Sequence
Constructor Detail

PAttributeBaseCmdImpl

public PAttributeBaseCmdImpl()
CreateAttribueDicionaryCmdImpl constructor comment.
Method Detail

reset

public void reset()
Reset the command.
Overrides:
reset in class AbstractECTargetableCommand

getErrorContent

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

getErrorFlag

public boolean getErrorFlag()
Returns:
boolean

getLanguageId

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

getResponseProperties

public TypedProperty getResponseProperties()
Description copied from interface: ControllerCommand
Gets the response properties associated with this command. 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

getToolXMLObject

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

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
Returns:
boolean

performExecute

public void performExecute()
                    throws ECException
performExecute
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECTargetableCommand
Throws:
ECException
See Also:
ECCommand.performExecute()

setErrorContent

public void setErrorContent(java.util.Hashtable newErrorContent)
Set error contect
Parameters:
newErrorContent - The Hashtable

setErrorFlag

public void setErrorFlag(boolean newErrorFlag)
Set error flag
Parameters:
newErrorFlag - boolean

setLanguageIdUrlName

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

setRequestProperties

public void setRequestProperties(TypedProperty paramTable)
                          throws ECApplicationException
Set request properties
Specified by:
setRequestProperties in interface ControllerCommand
Overrides:
setRequestProperties in class ToolsControllerCommandImpl
Parameters:
paramTable - TypedProperty
Throws:
ECApplicationException

setResponseProperties

public void setResponseProperties(TypedProperty paramHash)
Set response properties.
Overrides:
setResponseProperties in class ControllerCommandImpl
Parameters:
paramHash - TypedProperty

setToolXMLObject

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

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
Parameters:
newViewTaskName - String

getAttrName

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

getDescription

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

getTypeId

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

setAttrNameUrlName

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

setDescriptionUrlName

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

setTypeIdUrlName

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

getAttrId

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

getSequence

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

getEncryptionFlag

public java.lang.Integer getEncryptionFlag()
Encryption Flag
Returns:
java.lang.Integer

setAttrId

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

setAttrIdUrlName

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

setAttrName

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

setDescription

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

setSequence

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

setSequenceUrlName

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

setEncryptionFlag

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

setEncyrptionFlagUrlName

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

setTypeId

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

setAccessBeanName

public void setAccessBeanName(java.lang.String beanName)
Set Access Bean Name
Parameters:
beanName - String

getAccessBeanName

public java.lang.String getAccessBeanName()
Set Access Bean Name
Returns:
String Access Bean Name

determineAccessBeanName

public java.lang.String determineAccessBeanName(java.lang.String valueType)
Determine Access Bean Name
Parameters:
valueType - String
Returns:
String Access Bean Name

Feedback