public class AbstractGenerateRankingPolicyCmdImpl extends BusinessPolicyCommandImpl implements GenerateRankingPolicyCmd
GenerateRankingPolicyCmd
interface. It implements the method performExecute
and invokes
the following methods to generate the ranking list:
preGenerate
- perform any set upgenerate
- create the ranking listpostGenerate
- update the ranking list if necessarypublishRanking
- persist the ranking list to the DMRANKINGITEM database tableModifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
defaultCommandClassName
Constructor and Description |
---|
AbstractGenerateRankingPolicyCmdImpl() |
Modifier and Type | Method and Description |
---|---|
TypedProperty |
getParameterProperties()
This method returns the command parameters.
|
Ranking |
getRanking()
This method returns the definition of the ranking list.
|
java.util.Map |
getRankingResult()
This method returns the map containing the ranking list.
|
void |
performExecute()
This method calls the following methods to generate the ranking list:
preGenerate - perform any set up
generate - create the ranking list
postGenerate - update the ranking list if necessary
publishRanking - persist the ranking list to the DMRANKINGITEM database table
|
void |
setParameterProperties(TypedProperty newParameterProperties)
This method sets the command parameters.
|
void |
setRanking(Ranking newRanking)
This method sets the definition of the ranking list.
|
void |
setRankingResult(java.util.Map newRankingResult)
This method sets the map containing the ranking list.
|
void |
validateParameters()
This method validates that all the required parameters have been set.
|
getPolicyId, getRequestProperties, setPolicyId, setRequestProperties
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPolicyId, getRequestProperties, setPolicyId, setRequestProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
public static final java.lang.String COPYRIGHT
public AbstractGenerateRankingPolicyCmdImpl()
public void performExecute() throws ECException
preGenerate
- perform any set upgenerate
- create the ranking listpostGenerate
- update the ranking list if necessarypublishRanking
- persist the ranking list to the DMRANKINGITEM database tableperformExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
public void validateParameters() throws ECException
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECException
public Ranking getRanking()
getRanking
in interface GenerateRankingPolicyCmd
public void setRanking(Ranking newRanking)
setRanking
in interface GenerateRankingPolicyCmd
newRanking
- The definition of the ranking list.public TypedProperty getParameterProperties()
public void setParameterProperties(TypedProperty newParameterProperties)
setParameterProperties
in interface GenerateRankingPolicyCmd
newParameterProperties
- The command parameters.public java.util.Map getRankingResult()
getRankingResult
in interface GenerateRankingPolicyCmd
public void setRankingResult(java.util.Map newRankingResult)
setRankingResult
in interface GenerateRankingPolicyCmd
newRankingResult
- A map containing the ranking list.