com.ibm.commerce.usermanagement.commands
Class AuditBaseCmdImpl

java.lang.Object
  |
  +--com.ibm.commerce.command.AbstractECCommand
        |
        +--com.ibm.commerce.command.TaskCommandImpl
              |
              +--com.ibm.commerce.usermanagement.commands.AuditBaseCmdImpl
All Implemented Interfaces:
AuditBaseCmd, ECCommand, TaskCommand
Direct Known Subclasses:
AuditAddressCmdImpl, AuditOrgEntityCmdImpl

public class AuditBaseCmdImpl
extends TaskCommandImpl
implements AuditBaseCmd

The base class for AuditAddressCmdImpl, AuditUserRegistrationCmdImpl and AuditOrgEntityCmdImpl.


Field Summary
static java.lang.String CLASSNAME
           
static java.lang.String COPYRIGHT
           
protected  boolean ibResult
           
protected  java.util.Hashtable ihshProperties
           
protected  java.util.SortedMap ismpProperties
           
protected  java.lang.String istrErrorViewName
           
protected  java.lang.String istrPathSeparator
           
protected  java.lang.String istrPropertyFileName
           
protected  java.lang.String istrStoreDirectory
           
protected  TypedProperty requestProperties
           
 
Fields inherited from class com.ibm.commerce.command.AbstractECCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.usermanagement.commands.AuditBaseCmd
NAME
 
Fields inherited from interface com.ibm.commerce.command.ECCommand
defaultCommandClassName
 
Constructor Summary
AuditBaseCmdImpl()
           
 
Method Summary
 boolean getAuditResult()
          Return the audit result.
 java.lang.String getPathSeparator()
          Gets the path separator.
 java.lang.String getPropertyFileName()
          Gets the name of property file
 java.lang.String getStoreDirectory()
          Gets the name of the store directory, which is used for finding property files belong to this store.
 void performExecute()
          Contains the actual business logic of the command It should be implemented by all the command writer.
 void setErrorViewName(java.lang.String astrErrorViewName)
          Set Error View Name.
 void setPathSeparator(java.lang.String astrPathSeparator)
          Sets the path separator.
 void setPropertyFileName(java.lang.String astrPropertyFileName)
          Set the property file name
 void setRequestProperties(TypedProperty aRequestProperties)
           
 void setStoreDirectory(java.lang.String astrStoreDirectory)
          Sets the name of store directory, which is used as the path to the find the property file.
 
Methods inherited from class com.ibm.commerce.command.AbstractECCommand
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, 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.ECCommand
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters
 

Field Detail

CLASSNAME

public static final java.lang.String CLASSNAME

COPYRIGHT

public static final java.lang.String COPYRIGHT

ibResult

protected boolean ibResult

ihshProperties

protected java.util.Hashtable ihshProperties

ismpProperties

protected java.util.SortedMap ismpProperties

istrErrorViewName

protected java.lang.String istrErrorViewName

istrPathSeparator

protected java.lang.String istrPathSeparator

istrPropertyFileName

protected java.lang.String istrPropertyFileName

istrStoreDirectory

protected java.lang.String istrStoreDirectory

requestProperties

protected TypedProperty requestProperties
Constructor Detail

AuditBaseCmdImpl

public AuditBaseCmdImpl()
Method Detail

getAuditResult

public boolean getAuditResult()
Return the audit result.

getPathSeparator

public java.lang.String getPathSeparator()
Gets the path separator. path separator is used to separate the store directory and the property file name. For example:
 "store1/UserRegistration"
 
"/" is the path separator.
Returns:
The path separator

getPropertyFileName

public java.lang.String getPropertyFileName()
Gets the name of property file
Returns:
The name of the property file

getStoreDirectory

public java.lang.String getStoreDirectory()
Gets the name of the store directory, which is used for finding property files belong to this store.
Returns:
The name of the store directory

performExecute

public void performExecute()
                    throws ECException
Description copied from interface: ECCommand
Contains the actual business logic of the command It should be implemented by all the command writer.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECCommand
Following copied from interface: com.ibm.commerce.command.ECCommand
Throws:
com.ibm.commerce.command.CommandException - The superclass for all ECExceptions.

setErrorViewName

public void setErrorViewName(java.lang.String astrErrorViewName)
Description copied from interface: AuditBaseCmd
Set Error View Name.
Specified by:
setErrorViewName in interface AuditBaseCmd

setPathSeparator

public void setPathSeparator(java.lang.String astrPathSeparator)
Sets the path separator. path separator is used to separate the store directory and the property file name. For example:
 "store1/UserRegistration"
 
"/" is the path separator.
If path separator is not set, the databean will use the default one: "/" (working under Windows platform).
Parameters:
astrPathSeparator - The path separator

setPropertyFileName

public void setPropertyFileName(java.lang.String astrPropertyFileName)
Description copied from interface: AuditBaseCmd
Set the property file name
Specified by:
setPropertyFileName in interface AuditBaseCmd

setRequestProperties

public void setRequestProperties(TypedProperty aRequestProperties)
                          throws ECApplicationException

setStoreDirectory

public void setStoreDirectory(java.lang.String astrStoreDirectory)
Sets the name of store directory, which is used as the path to the find the property file. For example, if property files of a store is under the directory "store31" and the parent directory of "store31" directory is included in the class path, then this method should be called to set StoreDirectory to "store31". If the store directory is not set, ResourceBundleDataBean will try to get it from commandContext.
Parameters:
astrStoreDirectory - The name of store directory