com.ibm.commerce.scheduler.commands
Class RefreshRegistryCmdImpl

com.ibm.commerce.command.AbstractECTargetableCommand
  |
  +--com.ibm.commerce.command.ControllerCommandImpl
        |
        +--com.ibm.commerce.scheduler.commands.RefreshRegistryCmdImpl
All Implemented Interfaces:
AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, Protectable, RefreshRegistryCmd

public class RefreshRegistryCmdImpl
extends ControllerCommandImpl
implements RefreshRegistryCmd

Refresh registry information for all clones command implementation.


Field Summary
static java.lang.String COPYRIGHT
           
protected  java.lang.Long itJobId
           
protected  java.lang.Long itJobInstanceId
           
protected  java.lang.String itUrl
           
 
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.scheduler.commands.RefreshRegistryCmd
defaultCommandClassName, NAME
 
Constructor Summary
RefreshRegistryCmdImpl()
          RefreshRegistryImpl constructor.
 
Method Summary
 java.lang.Long getJobId()
          Gets the job id.
 java.lang.Long getJobInstanceId()
          Gets the job instance id.
protected  java.lang.String getRegistryName()
          Gets the name of the registry to be refreshed.
protected  java.lang.String getUrl()
          Gets the url to be redirected to at the end of the command.
 void performExecute()
          This method contains the main business logic of this command.
 void setRegistryName(java.lang.String name)
          Sets the name of the registry to be refreshed.
 void setRequestProperties(TypedProperty reqParms)
          This method extracts the required parameters from the request properties and sets it locally in the command.
 void setUrl(java.lang.String url)
          Sets the url to be redirected to at the end of the command.
 
Methods inherited from class com.ibm.commerce.command.ControllerCommandImpl
fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, 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, validateParameters
 
Methods inherited from interface com.ibm.commerce.command.ControllerCommand
execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, 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

COPYRIGHT

public static final java.lang.String COPYRIGHT

itJobId

protected java.lang.Long itJobId

itJobInstanceId

protected java.lang.Long itJobInstanceId

itUrl

protected java.lang.String itUrl
Constructor Detail

RefreshRegistryCmdImpl

public RefreshRegistryCmdImpl()
RefreshRegistryImpl constructor.
Method Detail

getJobId

public java.lang.Long getJobId()
Gets the job id.

Specified by:
getJobId in interface RefreshRegistryCmd
Returns:
Long

getJobInstanceId

public java.lang.Long getJobInstanceId()
Gets the job instance id.

Specified by:
getJobInstanceId in interface RefreshRegistryCmd
Returns:
Long

getRegistryName

protected java.lang.String getRegistryName()
Gets the name of the registry to be refreshed.

Returns:
String - registry name

getUrl

protected java.lang.String getUrl()
Gets the url to be redirected to at the end of the command.

Returns:
String - url

performExecute

public void performExecute()
                    throws ECException
This method contains the main business logic of this command.

Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECTargetableCommand
Throws:
ECException -  

setRegistryName

public void setRegistryName(java.lang.String name)
Sets the name of the registry to be refreshed.

Specified by:
setRegistryName in interface RefreshRegistryCmd
Parameters:
name - String - registry name

setRequestProperties

public void setRequestProperties(TypedProperty reqParms)
                          throws ECApplicationException
This method extracts the required parameters from the request properties and sets it locally in the command. It throws an ECApplicationException if a required parameter is missing.
Specified by:
setRequestProperties in interface ControllerCommand
Overrides:
setRequestProperties in class ControllerCommandImpl
Parameters:
reqParms - com.ibm.commerce.datatype.TypedProperty
Throws:
ECApplicationException -  

setUrl

public void setUrl(java.lang.String url)
Sets the url to be redirected to at the end of the command.

Parameters:
url - String - url