|
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.AbstractCommand
public abstract class AbstractCommand
This class can be used by IUICommands to reduce coding overhead and
to take advantage of some convenience methods for resource bundle handling. It
also holds some implementations for the ISelector interface. Copyright:
Copyright 2004 SAP AG
| Nested Class Summary | |
|---|---|
protected class |
AbstractCommand.ResourceNotFoundException
Deprecated. As of NetWeaver 7.1 |
| Field Summary | |
|---|---|
protected int |
applicable
Deprecated. |
protected IResourceContext |
context
Deprecated. |
String |
layoutSetID
Deprecated. Layout Set ID |
AbstractProxyControl |
proxy
Deprecated. Description of the Field |
protected 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 | |
|---|---|
AbstractCommand()
Deprecated. As of NetWeaver 7.1 |
|
AbstractCommand(String keyLabel,
String keyTooltip)
Deprecated. As of NetWeaver 7.1 |
|
| Method Summary | |
|---|---|
protected boolean |
checkArchivingStauts(IResource resource)
Deprecated. Read archiving status for the given resource and check it. |
protected void |
createResource(IResourceContext context,
RID rid)
Deprecated. As of NetWeaver 7.1 |
protected IResource |
createResource(String uri)
Deprecated. As of NetWeaver 7.1 |
RenderingEvent |
execute(ScreenflowData data)
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 |
String |
getButtonLabel()
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 |
protected String |
getLabel()
Deprecated. As of NetWeaver 7.1 |
String |
getLayoutSetID()
Deprecated. As of NetWeaver 7.1 |
LinkAttributes |
getLinkAttributes()
Deprecated. As of NetWeaver 7.1 |
String |
getLinkLabel()
Deprecated. As of NetWeaver 7.1 |
protected String |
getOTHDefinedURL(IResource res,
IActionType actiontype)
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 |
IResource |
getResource()
Deprecated. As of NetWeaver 7.1 |
protected RID |
getStartUri()
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 |
protected String |
getTooltip()
Deprecated. As of NetWeaver 7.1 |
protected void |
handleWrongConfiguration()
Deprecated. As of NetWeaver 7.1 |
protected ICommand |
initNewInstance(ICommand 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 |
protected boolean |
othAvailable(IResource res,
IActionType actiontype)
Deprecated. As of NetWeaver 7.1 |
boolean |
raisesEvent()
Deprecated. As of NetWeaver 7.1 |
protected IResource |
resolveLink()
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 groupLabel)
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 |
setTextProperties(Properties properties)
Deprecated. As of NetWeaver 7.1 |
void |
setTooltipBundleKey(String groupTooltip)
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.ICommand |
|---|
execute, getNewInstance |
| Methods inherited from interface com.sapportals.wcm.rendering.uicommand.IExecCommand |
|---|
getTargetParameters, isExecutable, setTargetParameters |
| Field Detail |
|---|
protected IResource resource
protected int applicable
protected IResourceContext context
public String layoutSetID
public AbstractProxyControl proxy
| Constructor Detail |
|---|
public AbstractCommand()
UICommandFactory, when command is
created for the first time
public AbstractCommand(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 void setResource(IResource resource)
setResource in interface IUIBaseCommandresource - resource the command shall operate on. Must not be nullpublic IResource getResource()
getResource in interface ICommandnull.protected String getTooltip()
protected String getLabel()
public String getText(TextKey key)
getText in interface IUIBaseCommandkey - Description of the param
public void setTextProperties(Properties properties)
setTextProperties in interface ICommandsetTextProperties in interface IExecCommandproperties - should hold key-value pairs with keys defined in IUIBaseCommand.TEXT_KEYS
. Other key-value pairs will not be used.protected Properties getTextProperties()
null, but may return
an empty Properties-object.public void setResourceBundle(ResourceBundles bundleFile)
setResourceBundle in interface IUIBaseCommandbundleFile - the bundle the command uses to retrieve its texts.public void setLabelBundleKey(String groupLabel)
setLabelBundleKey in interface IUIBaseCommandgroupLabel - The new labelBundleKey valuepublic void setTooltipBundleKey(String groupTooltip)
setTooltipBundleKey in interface IUIBaseCommandgroupTooltip - The new tooltipBundleKey valuepublic void setConfigurationProperties(Properties properties)
setConfigurationProperties in interface IUIBaseCommandproperties - free properties bag to be used by a command.public Properties getConfigurationProperties()
getConfigurationProperties in interface IUIBaseCommandnull, but may return an empty properties-object.public com.sapportals.htmlb.Component getComponent()
getComponent in interface IUIBaseCommandnull;
protected void createResource(IResourceContext context,
RID rid)
throws WcmException
IResource from the given parameters and sets it as the
member variable.
context - the current context of the sessionrid - the identifier of the resource to create
WcmException - if the resource could not be created.
protected IResource createResource(String uri)
throws ResourceException,
WcmException
IResource from the given parameters and returns it. Does not
set it as a member variable.
uri -
WcmException - if the resource could not be created.
ResourceExceptionpublic boolean raisesEvent()
raisesEvent in interface IExecCommandprotected final ICommand initNewInstance(ICommand 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 LinkAttributes getLinkAttributes()
getLinkAttributes in interface IExecCommandpublic void setProxy(AbstractProxyControl proxy)
setProxy in interface IUIBaseCommandproxy - The new proxy valuepublic AbstractProxyControl getProxy()
public String getTextForSecondaryScreen(String key)
key - Description of the param
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
public RenderingEvent execute(ScreenflowData data)
throws WcmException
WcmExceptionpublic void setResourceContext(IResourceContext context)
setResourceContext in interface IUIBaseCommandcontext - The new resourceContext 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 IExecCommandprotected RID getStartUri()
public String getLinkLabel()
public String getButtonLabel()
protected boolean isMatchedPath(String[] paths,
String resourcePath)
protected boolean othAvailable(IResource res,
IActionType actiontype)
protected String getOTHDefinedURL(IResource res,
IActionType actiontype)
public void setParameters(Hashtable parameters)
setParameters in interface IUIBaseCommandparameters - The new parameters valuepublic Hashtable getParameters()
getParameters in interface IUIBaseCommand
protected final IResource resolveLink()
throws ResourceException
getResource(). If this resource is an
internal link: this.getResource().getLinkType().equals(LinkType.INTERNAL), the
target of this resource is returned.
ResourceException - is thrown by the RepositoryFramework and not caught by this methodprotected 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 | |||||||||