public class Macro extends Command
Copyright 2004 SAP AG
Constructor and Description |
---|
Macro() |
Modifier and Type | Method and Description |
---|---|
void |
add(Command command)
Add a command to the macro
|
protected boolean |
canExecuteImpl()
Returns true if at least one sub commands can be executed.
|
protected void |
executeImpl()
The macro executes all of it's sub commands.
|
ArrayList |
getCommands() |
ArrayList |
getFailedCommands() |
ArrayList |
getForbiddenCommands() |
protected boolean |
isAccessibleImpl()
Returns true only if all sub commands are accessible.
|
protected boolean |
isSupportedImpl()
Returns true only if all sub commands are supported.
|
protected void |
validateImpl()
nothing to validate
|
canExecute, canExecuteDefaultImpl, execute, failed, getMessage, getMessageKey, getRootCauseException, isAccessible, isSupported, isSystemError, setMessage, setMessageKey
public ArrayList getCommands()
public ArrayList getFailedCommands()
public ArrayList getForbiddenCommands()
protected void executeImpl() throws Exception
macro.execute()
method is not an transaction! If one
command fails, the execution is continued, but the macro will be in error state after execution.
The failed commands can be accessed by macro.getFailedCommands()
list.
The forbidden commands can be accessed by macro.getForbiddenCommands()
list.executeImpl
in class Command
Exception
protected boolean canExecuteImpl() throws WcmException
canExecuteImpl
in class Command
WcmException
- Must be handled by caller!
Review-reader Dirk Sabiwalsky
Review-date 2001/11/26
protected boolean isAccessibleImpl() throws WcmException
isAccessibleImpl
in class Command
WcmException
- Must be handled by caller!
Review-reader Dirk Sabiwalsky
Review-date 2001/11/26
protected boolean isSupportedImpl() throws WcmException
isSupportedImpl
in class Command
WcmException
- Must be handled by caller!
Review-reader Dirk Sabiwalsky
Review-date 2001/11/26
protected void validateImpl() throws ValidationException
validateImpl
in class Command
ValidationException
- Review-reader Dirk Sabiwalsky
Review-date 2001/11/26
public final void add(Command command)
Access Rights |
---|
SC | DC | Public Part | ACH |
---|---|---|---|
[sap.com] KMC-CM
|
[sap.com]
|
api
|
EP-KM-CM
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
Copyright 2018 SAP AG Complete Copyright Notice