|
SAP NetWeaver 7.40 SP 07 KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sapportals.wcm.rendering.uicommand.AbstractUIMassCommand
AbstractMassCommand
public abstract class AbstractUIMassCommand
Copyright 2004 SAP AG
| Field Summary | |
|---|---|
protected int |
applicable
Deprecated. |
protected IResourceContext |
context
Deprecated. |
String |
layoutSetID
Deprecated. Layout Set ID |
IResourceList |
list
Deprecated. |
IResource |
resource
Deprecated. Description of the Field |
| Fields inherited from interface com.sapportals.wcm.rendering.uicommand.IExecCommand |
|---|
APPLICABLE_FALSE, APPLICABLE_TRUE, APPLICABLE_UNKNOWN |
| Constructor Summary | |
|---|---|
AbstractUIMassCommand()
Deprecated. As of NetWeaver 7.1 |
|
AbstractUIMassCommand(String keyLabel,
String keyTooltip)
Deprecated. As of NetWeaver 7.1 |
|
| Method Summary | |
|---|---|
boolean |
allowUserInput()
Deprecated. As of NetWeaver 7.1 |
protected boolean |
checkArchivingStauts(IResource resource)
Deprecated. Read archiving status for the given resource and check it. |
com.sapportals.wdf.event.WdfEvent |
execute(com.sapportals.wdf.ControllerDynPage dynpage,
boolean pushStack)
Deprecated. As of NetWeaver 7.1 |
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 |
getDefaultInput(String key)
Deprecated. As of NetWeaver 7.1 |
String |
getLabel()
Deprecated. As of NetWeaver 7.1 |
String |
getLabel(String key)
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 |
AbstractProxyControl |
getProxy()
Deprecated. As of NetWeaver 7.1 |
List |
getReplaceCommands()
Deprecated. As of NetWeaver 7.1 |
IResourceContext |
getResourceContext()
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 |
String |
getTooltip()
Deprecated. As of NetWeaver 7.1 |
protected void |
handleWrongConfiguration()
Deprecated. As of NetWeaver 7.1 |
protected IUIMassCommand |
initNewInstance(IUIMassCommand command)
Deprecated. As of NetWeaver 7.1 |
boolean |
isApplicable()
Deprecated. As of NetWeaver 7.1 |
protected boolean |
isMatchedPath(String[] paths,
String resourcePath)
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.sapportals.wcm.rendering.uicommand.IUIMassCommand |
|---|
execute, getNewInstance |
| Methods inherited from interface com.sapportals.wcm.rendering.uicommand.IExecCommand |
|---|
isExecutable |
| Field Detail |
|---|
public IResourceList list
protected IResourceContext context
public IResource resource
public String layoutSetID
protected int applicable
| Constructor Detail |
|---|
public AbstractUIMassCommand()
UICommandFactory, when command is
created for the first time
public AbstractUIMassCommand(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 null| Method Detail |
|---|
public boolean raisesEvent()
IExecCommandEvent in its execute
method.
raisesEvent in interface IExecCommandtrue, if the command raises an Event, false
, if notComponent
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 IUIMassCommandproperties - should hold key-value pairs with keys defined in IUIBaseCommand.TEXT_KEYS
. Other key-value pairs will not be used.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 valuepublic 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 AbstractProxyControl getProxy()
public void setResource(IResource resource)
setResource in interface IUIBaseCommandresource - sets the resource the command shall operate onpublic 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 param
public String[] getTargetParameters()
throws WcmException
null. A number of IUIMassCommands do not need
to add any information in the Event/code>s parameter list. When extending
this abstract class, there is no need to implement this method.
- Specified by:
getTargetParameters in interface IExecCommand
- Returns:
- The targetParameters value
- Throws:
WcmException - Exception raised in failure situation
public 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 needed
WcmException - Exception raised in failure situation
public com.sapportals.wdf.event.WdfEvent execute(com.sapportals.wdf.ControllerDynPage dynpage,
boolean pushStack)
throws com.sapportals.wdf.WdfException
execute method without parameters.
execute in interface IUIMassCommanddynpage - - not usedpushStack - - not used
com.sapportals.wdf.WdfException - Exception raised in failure situationprotected final IUIMassCommand initNewInstance(IUIMassCommand 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 param
public String getTextForSecondaryScreen(String key)
key - Description of the param
public String getLabel(String key)
public String getDefaultInput(String key)
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 value
protected 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 null
MissingResourceException - if the IResourceContext is not
set for the commandprotected String getBundleString(String key)
key - the key of the text to return - must not be
null
MissingResourceException - if the IResourceContext is not
set for the command
protected 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 null
MissingResourceException - if the IResourceContext is not
set for the command
protected 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 command
protected void handleWrongConfiguration()
throws InvalidConfigurationException
InvalidConfigurationException that will be displayed
on the screen and give further information what was invalid for the given configuration
InvalidConfigurationException - 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 IExecCommand
protected boolean isMatchedPath(String[] paths,
String resourcePath)
public void setParameters(Hashtable parameters)
setParameters in interface IUIBaseCommandparameters - The new parameters valuepublic Hashtable getParameters()
getParameters in interface IUIBaseCommandpublic boolean allowUserInput()
protected boolean checkArchivingStauts(IResource 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
|
|
SAP NetWeaver 7.40 SP 07 KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||