com.ibm.commerce.security.commands
Class SecurityCheckCmdImpl

com.ibm.commerce.command.AbstractECTargetableCommand
  |
  +--com.ibm.commerce.command.ControllerCommandImpl
        |
        +--com.ibm.commerce.security.commands.SecurityCheckCmdImpl
All Implemented Interfaces:
AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, Protectable, SecurityCheckCmd

public class SecurityCheckCmdImpl
extends ControllerCommandImpl
implements SecurityCheckCmd

Checks the system for potential security violations This is the corresponding command for the SecurityChecker tool found on AdminConsole/Security/Security Checker


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.security.commands.SecurityCheckCmd
COPYRIGHT, defaultCommandClassName, NAME
 
Fields inherited from interface com.ibm.commerce.command.ECTargetableCommand
COPYRIGHT
 
Constructor Summary
SecurityCheckCmdImpl()
           
 
Method Summary
 void deleteBinFiles(java.lang.String s, java.lang.String dir)
          Deletes temporary files from the 'Bin' directory.
 void deleteInstanceFiles(java.lang.String s, java.lang.String dir)
          Deletes temporary files from the 'INSTANCES' directory Creation date: (8/1/2001 2:49:46 PM)
 void deleteSystemFiles(java.lang.String s)
          Deletes temporary SYSTEM files.
 void deleteTempFiles(java.lang.String s)
          Deletes temporary files from the 'TEMP' directory Creation date: (8/1/2001 3:18:28 PM)
 java.lang.String getTime()
          Gets the current Time Creation date: (08/02/01 2:11:52 PM)
 java.lang.String getURL()
          Gets the redirect URL Creation date: (08/02/01 2:11:52 PM)
 boolean isGeneric()
          Check to see if this is a generic command.
 void performExecute()
          Contains the actual business logic of the command It should be implemented by all the command writer.
 java.lang.String replace(java.lang.String base, java.lang.String x, java.lang.String y)
          String replacement Creation date: (11/19/01 12:07:26 PM)
 void setRequestProperties(TypedProperty hshReqParameters)
          The WebController calls this method before invoking the execute method in this command to set the request properties for this command.
 void setURL(java.lang.String strURL)
          Sets the redirect URL to a specific one the function paramter specified
 void validateParameters()
          Performs server side parameter checking.
 
Methods inherited from class com.ibm.commerce.command.ControllerCommandImpl
fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, 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, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties
 
Methods inherited from interface com.ibm.commerce.command.ControllerCommand
execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, 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
 
Methods inherited from interface com.ibm.commerce.security.Protectable
fulfills, getOwner
 

Constructor Detail

SecurityCheckCmdImpl

public SecurityCheckCmdImpl()
Method Detail

deleteBinFiles

public void deleteBinFiles(java.lang.String s,
                           java.lang.String dir)
Deletes temporary files from the 'Bin' directory. Actually, the function is also used to delete temporary files from temp directories other than BIN. The name of the temporary directory could be specified on the 2nd paramater. Creation date: (1/21/2002)

deleteInstanceFiles

public void deleteInstanceFiles(java.lang.String s,
                                java.lang.String dir)
Deletes temporary files from the 'INSTANCES' directory Creation date: (8/1/2001 2:49:46 PM)

deleteSystemFiles

public void deleteSystemFiles(java.lang.String s)
Deletes temporary SYSTEM files. Creation date: (8/1/2001 2:22:50 PM)

deleteTempFiles

public void deleteTempFiles(java.lang.String s)
Deletes temporary files from the 'TEMP' directory Creation date: (8/1/2001 3:18:28 PM)

getTime

public java.lang.String getTime()
Gets the current Time Creation date: (08/02/01 2:11:52 PM)
Returns:
java.lang.String

getURL

public java.lang.String getURL()
Gets the redirect URL Creation date: (08/02/01 2:11:52 PM)
Returns:
java.lang.String

isGeneric

public boolean isGeneric()
Description copied from interface: ControllerCommand
Check to see if this is a generic command. A generic command is a command that can be invoked by a generic user. The default is false for all controller commands and true for all view commands.
Specified by:
isGeneric in interface ControllerCommand
Overrides:
isGeneric in class ControllerCommandImpl
Following copied from interface: com.ibm.commerce.command.ControllerCommand
Returns:
boolean - true if this command can be called by a generic user - false if this command cannot be called by a generic user

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 AbstractECTargetableCommand
Following copied from interface: com.ibm.commerce.command.ECCommand
Throws:
com.ibm.commerce.command.CommandException - The superclass for all ECExceptions.

replace

public java.lang.String replace(java.lang.String base,
                                java.lang.String x,
                                java.lang.String y)
String replacement Creation date: (11/19/01 12:07:26 PM)
Parameters:
base - java.lang.String
x - java.lang.String
y - java.lang.String
Returns:
java.lang.String

setRequestProperties

public void setRequestProperties(TypedProperty hshReqParameters)
                          throws ECApplicationException
Description copied from interface: ControllerCommand
The WebController calls this method before invoking the execute method in this command to set the request properties for this command. It is the responsibility of the implementer of the ControllerCommand to extract the required input parameters from the request properties and perform parameter checking.
Specified by:
setRequestProperties in interface ControllerCommand
Overrides:
setRequestProperties in class ControllerCommandImpl
Following copied from interface: com.ibm.commerce.command.ControllerCommand
Parameters:
requestProperties - com.ibm.commerce.datatype.TypedProperty
Throws:
com.ibm.commerce.exception.ECException. -  

setURL

public void setURL(java.lang.String strURL)
Sets the redirect URL to a specific one the function paramter specified

validateParameters

public void validateParameters()
                        throws ECException
Description copied from interface: ECCommand
Performs server side parameter checking. This method replaces the checkParameters() method in a previous version of the code.

Specified by:
validateParameters in interface ECCommand
Overrides:
validateParameters in class AbstractECTargetableCommand
Following copied from interface: com.ibm.commerce.command.ECCommand
Throws:
ECException. -