java.lang.Object | +--CacheableCommandImpl | +--com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.ControllerCommandImpl | +--com.ibm.commerce.scheduler.commands.UpdateLocalRegistryCmdImpl
Refresh the local copy of a registry in the runtime cache. This is invoked by the scheduler as an asynchronize command.
The parameters the command recognizes are as follows.
Finds the registry to update and updates it passing the actiona and key./p>
Field Summary | |
---|---|
protected
java.lang.String |
action |
protected
java.lang.String |
itUrl |
protected
java.lang.String |
key |
protected
Registry |
registry |
protected
java.lang.String |
registryName |
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. UpdateLocalRegistryCmd |
COPYRIGHT,
defaultCommandClassName,
NAME,
URLNAME |
Fields inherited from interface com.ibm.commerce.command. ControllerCommand |
COPYRIGHT |
Constructor Summary | |
---|---|
UpdateLocalRegistryCmdImpl() Creates the UpdateLocalRegistry command object. |
Method Summary | |
---|---|
protected
java.lang.String |
getAction() Gets the action to be performed on the element. |
protected
java.lang.String |
getItemKey() Deprecated. use getKey() instead. |
protected
java.lang.String |
getKey() Gets the cache key. |
protected
java.lang.String |
getRegistryName() Gets the name of the registry to be updated. |
AccessVector |
getResources() Gets the access vector accessed by this command. |
protected
java.lang.String |
getUrl() Gets the URL to be redirected to at the end of the command. |
void |
performExecute() Finds the registry to update and updates it passing the actiona and key. |
void |
setAction(java.lang.String action) Sets the action to perform. |
void |
setItemKey(java.lang.String key) Deprecated. use setKey(String) instead. |
void |
setKey(java.lang.String key) Sets the element Key. |
void |
setRegistryName(java.lang.String name) Sets the name of the registry to be refreshed. |
void |
setRequestProperties(com.ibm.commerce.datatype.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. |
void |
validateParameters() Validates the parameters passed to the command. |
Methods inherited from class com.ibm.commerce.command. ControllerCommandImpl |
checkPermission,
fulfills,
getForUserId,
getGeneric,
getOwner,
getRequestProperties,
getResolvedRequestProperties,
getResourceOwners,
getResponseProperties,
getRetriable,
getViewInputProperties,
isGeneric,
isRetriable,
mergeProperties,
setForUserId,
setGeneric,
setOwner,
setResponseProperties,
setRetriable,
setViewInputProperties |
Methods inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
accessControlCheck,
checkIsAllowed,
checkParameters,
checkResourcePermission,
createCommandExecutionEvent,
execute,
finalize,
getAccCheck,
getCommandContext,
getCommandIfName,
getCommandName,
getCommandStoreId,
getDefaultProperties,
getStoreId,
getUser,
getUserId,
isReadyToCallExecute,
reset,
setAccCheck,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties |
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 |
execute,
mergeProperties,
setRequestProperties,
setViewInputProperties |
Methods inherited from interface com.ibm.commerce.command. AccCommand |
accessControlCheck,
getAccCheck,
setAccCheck |
Field Detail |
protected java.lang.String registryName
protected java.lang.String itUrl
protected java.lang.String action
protected java.lang.String key
protected Registry registry
Constructor Detail |
public UpdateLocalRegistryCmdImpl()
Method Detail |
protected java.lang.String getAction()
protected java.lang.String getKey()
protected java.lang.String getItemKey()
protected java.lang.String getRegistryName()
public AccessVector getResources() throws ECException
getResources
in class
AbstractECTargetableCommand
ECException
- should not happen since null will always be
returned.protected java.lang.String getUrl()
public void performExecute() throws ECException
performExecute
in class
AbstractECTargetableCommand
ECException
- if there was an exception updating the
registry.public void setAction(java.lang.String action)
setAction
in interface
UpdateLocalRegistryCmd
action
- the action.public void setKey(java.lang.String key)
setKey
in interface
UpdateLocalRegistryCmd
key
- the element key.public void setItemKey(java.lang.String key)
setItemKey
in interface
UpdateLocalRegistryCmd
key
- the element key.public void setRegistryName(java.lang.String name)
setRegistryName
in interface
UpdateLocalRegistryCmd
name
- the registry namepublic void setRequestProperties(com.ibm.commerce.datatype.TypedProperty reqParms) throws ECException
setRequestProperties
in class
ControllerCommandImpl
reqParms
- the command parameters.com.ibm.commerce.exception.ECApplicationException
- if an
exception occurs when retrieving the command properties.ECException
public void setUrl(java.lang.String url)
url
- the URL to redirect to.public void validateParameters() throws ECException
validateParameters
in class
AbstractECTargetableCommand
ECException
- if a command parameter is missing of
invalid.