public abstract class AbstractMassCommand extends Object implements IMassCommand
| Modifier and Type | Field and Description |
|---|---|
protected int |
applicable
Deprecated.
|
static RID |
ROOT_RID
Deprecated.
|
APPLICABLE_FALSE, APPLICABLE_TRUE, APPLICABLE_UNKNOWNERR_MESSAGE_MISSING_CONFIG_ENTRY, ERR_MESSAGE_WRONG_METHOD_CALL, KEY_INPUT_CONTROL_TEXT, KEY_INPUT_CONTROL_TEXT_2, KEY_INPUT_CONTROL_TEXT_2_DEFAULT_TEXT, KEY_INPUT_CONTROL_TEXT_3, KEY_INPUT_CONTROL_TEXT_DEFAULT_TEXT, KEY_LABEL, KEY_MASS_EMBEDDED_COMMAND_TEXT, KEY_MASS_EMBEDDED_COMMANT_TOOLTIP, KEY_SINGLE_EMBEDDED_COMMAND_TEXT, KEY_SINGLE_EMBEDDED_COMMAND_TOOLTIP, KEY_TOOLTIP, LINE_BREAK, TEXT_KEYS, VALUE_EMPTY_STRING| Constructor and Description |
|---|
AbstractMassCommand()
Deprecated.
As of NetWeaver 7.1
|
AbstractMassCommand(String keyLabel,
String keyTooltip)
Deprecated.
As of NetWeaver 7.1
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
checkArchivingStauts(IResource resource)
Deprecated.
Read archiving status for the given resource and check it.
|
String |
getAlias()
Deprecated.
As of NetWeaver 7.1
|
protected String |
getBundleString(String key)
Deprecated.
As of NetWeaver 7.1
|
protected String |
getBundleString(String key,
Object obj)
Deprecated.
As of NetWeaver 7.1
|
protected String |
getBundleString(String key,
Object[] obj)
Deprecated.
As of NetWeaver 7.1
|
protected String |
getBundleString(String key,
Object obj1,
Object obj2)
Deprecated.
As of NetWeaver 7.1
|
com.sapportals.htmlb.Component |
getComponent()
Deprecated.
As of NetWeaver 7.1
|
Properties |
getConfigurationProperties()
Deprecated.
As of NetWeaver 7.1
|
String |
getLabel()
Deprecated.
As of NetWeaver 7.1
|
String |
getLayoutSetID()
Deprecated.
As of NetWeaver 7.1
|
LinkAttributes |
getLinkAttributes()
Deprecated.
As of NetWeaver 7.1
|
Hashtable |
getParameters()
Deprecated.
As of NetWeaver 7.1
|
IProxy |
getProxy()
Deprecated.
As of NetWeaver 7.1
|
List |
getReplaceCommands()
Deprecated.
As of NetWeaver 7.1
|
protected IResource |
getResource()
Deprecated.
As of NetWeaver 7.1
|
IResourceContext |
getResourceContext()
Deprecated.
As of NetWeaver 7.1
|
protected IResourceList |
getResourceList()
Deprecated.
As of NetWeaver 7.1
|
String[] |
getTargetParameters()
Deprecated.
As of NetWeaver 7.1
|
String |
getText(TextKey key)
Deprecated.
As of NetWeaver 7.1
|
String |
getTextForSecondaryScreen(String key)
Deprecated.
As of NetWeaver 7.1
|
protected Properties |
getTextProperties()
Deprecated.
As of NetWeaver 7.1
|
String |
getTooltip()
Deprecated.
As of NetWeaver 7.1
|
IMandatoryField[] |
getUserInputSpecifiers()
Deprecated.
As of NetWeaver 7.1
|
protected void |
handleWrongConfiguration()
Deprecated.
As of NetWeaver 7.1
|
protected IMassCommand |
initNewInstance(IMassCommand command)
Deprecated.
As of NetWeaver 7.1
|
boolean |
isApplicable()
Deprecated.
As of NetWeaver 7.1
|
boolean |
raisesEvent()
Deprecated.
As of NetWeaver 7.1
|
void |
setAlias(String alias)
Deprecated.
As of NetWeaver 7.1
|
void |
setConfigurationProperties(Properties properties)
Deprecated.
As of NetWeaver 7.1
|
void |
setLabelBundleKey(String label)
Deprecated.
As of NetWeaver 7.1
|
void |
setLayoutSetID(String layoutSetID)
Deprecated.
As of NetWeaver 7.1
|
void |
setParameters(Hashtable parameters)
Deprecated.
As of NetWeaver 7.1
|
void |
setProxy(AbstractProxyControl proxy)
Deprecated.
As of NetWeaver 7.1
|
void |
setReplaceCommands(List replaceCommandsList)
Deprecated.
As of NetWeaver 7.1
|
void |
setResource(IResource resource)
Deprecated.
As of NetWeaver 7.1
|
void |
setResourceBundle(ResourceBundles bundleFile)
Deprecated.
As of NetWeaver 7.1
|
void |
setResourceContext(IResourceContext context)
Deprecated.
As of NetWeaver 7.1
|
void |
setResourceList(IResourceList list)
Deprecated.
As of NetWeaver 7.1
|
void |
setTargetParameters(List values,
IResourceContext context)
Deprecated.
As of NetWeaver 7.1
|
void |
setTextProperties(Properties properties)
Deprecated.
As of NetWeaver 7.1
|
void |
setTooltipBundleKey(String tooltip)
Deprecated.
As of NetWeaver 7.1
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecute, getNewInstanceisExecutableprotected int applicable
public static RID ROOT_RID
public AbstractMassCommand()
UICommandFactory, when command is
created for the first timepublic AbstractMassCommand(String keyLabel, String keyTooltip)
keyLabel - the labelkey for the resourcebundle of the command, it is
only set if it is not nullkeyTooltip - the tooltipkey for the resourcebundle of the command, it
is only set if it is not nullpublic boolean raisesEvent()
IExecCommandEvent in its execute
method.raisesEvent in interface IExecCommandComponent
rendered for this command will result in an Event or not.public LinkAttributes getLinkAttributes()
IExecCommandLinkAttributes when the Command returns false
in its raisesEvent method.getLinkAttributes in interface IExecCommandLinkAttributes
when the Command returns false in its raisesEvent method,
null otherwise.public void setResourceBundle(ResourceBundles bundleFile)
setResourceBundle in interface IUIBaseCommandbundleFile - the bundle the command uses to retrieve its texts.public void setTextProperties(Properties properties)
setTextProperties in interface IExecCommandsetTextProperties in interface IMassCommandproperties - should hold key-value pairs with keys defined in IUIBaseCommand.TEXT_KEYS
. Other key-value pairs will not be used.protected Properties getTextProperties()
public void setConfigurationProperties(Properties properties)
setConfigurationProperties in interface IUIBaseCommandproperties - free properties bag to be used by a command.public Properties getConfigurationProperties()
getConfigurationProperties in interface IUIBaseCommandpublic void setLabelBundleKey(String label)
setLabelBundleKey in interface IUIBaseCommandlabel - The new labelBundleKey valuepublic void setTooltipBundleKey(String tooltip)
setTooltipBundleKey in interface IUIBaseCommandtooltip - The new tooltipBundleKey valuepublic void setResourceList(IResourceList list)
setResourceList in interface IMassExecCommandlist - The new resourceList valueprotected IResourceList getResourceList()
public void setProxy(AbstractProxyControl proxy)
setProxy in interface IUIBaseCommandproxy - The new proxy valuepublic void setResourceContext(IResourceContext context)
setResourceContext in interface IUIBaseCommandcontext - The new resourceContext valuepublic IResourceContext getResourceContext()
public IProxy getProxy()
public void setResource(IResource resource)
setResource in interface IUIBaseCommandresource - sets the resource the command shall operate onprotected IResource getResource()
public com.sapportals.htmlb.Component getComponent()
getComponent in interface IUIBaseCommandnull;public String getTooltip()
public String getLabel()
public String getText(TextKey key)
getText in interface IUIBaseCommandkey - Description of the parampublic String[] getTargetParameters() throws WcmException
null. A number of IUIMassCommands do not need
to add any information in the Events parameter list. When extending
this abstract class, there is no need to implement this method.getTargetParameters in interface IExecCommandWcmException - Exception raised in failure situationpublic void setTargetParameters(List values, IResourceContext context) throws WcmException
null
, when this abstract classes getTargetParameters method is used,
only the context parameter is used in this method.setTargetParameters in interface IExecCommandvalues - The new targetParameters value - not used in this implementationcontext - The ResourceContext - this is always neededWcmException - Exception raised in failure situationprotected final IMassCommand initNewInstance(IMassCommand command)
getNewInstancemethod like this
public getNewInstance() {
return this.initNewInstance(new MyCommand());
}
this abstract class' method will copy all of the member-attributes.
Comparable to the deep-clone approach.command - Description of the parampublic String getTextForSecondaryScreen(String key)
key - Description of the parampublic IMandatoryField[] getUserInputSpecifiers()
public String getLayoutSetID()
public void setLayoutSetID(String layoutSetID)
layoutSetID - The new layoutSetID valuepublic String getAlias()
getAlias in interface IExecCommandpublic void setAlias(String alias)
setAlias in interface IExecCommandalias - The new alias valueprotected String getBundleString(String key, Object[] obj)
key - the key of the text to return - must not be
nullobj - the variables to fill the place holders in
the resource bundle, can be nullMissingResourceException - if the IResourceContext is not
set for the commandprotected String getBundleString(String key)
key - the key of the text to return - must not be
nullMissingResourceException - if the IResourceContext is not
set for the commandprotected String getBundleString(String key, Object obj)
key - the key of the text to return - must not be
nullobj - the variable to fill the place holder in the
resource bundle, can be nullMissingResourceException - if the IResourceContext is not
set for the commandprotected String getBundleString(String key, Object obj1, Object obj2)
key - the key of the text to return - must not be
nullobj1 - the variable to fill the first place holder
in the resource bundle, can be nullobj2 - the variable to fill the second place holder
in the resource bundle, can be null *MissingResourceException - if the IResourceContext is not
set for the commandprotected void handleWrongConfiguration()
throws InvalidConfigurationException
InvalidConfigurationException that will be displayed
on the screen and give further information what was invalid for the given configurationInvalidConfigurationException - Exception raised in failure situationpublic List getReplaceCommands()
getReplaceCommands in interface IUIBaseCommandpublic void setReplaceCommands(List replaceCommandsList)
setReplaceCommands in interface IUIBaseCommandreplaceCommandsList - The new replaceCommands valuepublic boolean isApplicable()
isApplicable in interface IExecCommandpublic void setParameters(Hashtable parameters)
setParameters in interface IUIBaseCommandparameters - The new parameters valuepublic Hashtable getParameters()
getParameters in interface IUIBaseCommandprotected boolean checkArchivingStauts(IResource resource)
resource - resource| 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 2021 SAP SE Complete Copyright Notice