|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This interface is used to extend the functionality of IUICommands
and IUIMassCommands. When a command uses the AbstractProxyControl
to render its follow-up screen, it may want to make sure, that a certain layout is used.
Also, it wants to be called, when IResources have been selected
on that screen. The third functionality with this interface is the offering
of texts to set for input fields and explanations on that follow-up screen.
The typical setup to use commands that implement this interface is as follows:
The command is clicked by the user, and it its execute method it starts
a screenflow, that uses an AbstractProxyControl to render the output.
The proxy can then retrieve the layoutset-id of the ISelector, if it
is encoded in the received WdfEvent.
If the proxy uses the ILayoutControllerFactory to retrieve an
ILayoutController and through this the Controls to render,
it can use the retrieved layoutset-id to retrieve the ILayoutController
defined in this layoutset. With this layoutset, typically certain UICommands
should be defined, that do not carry out an action themselves, but use the
getCommand method of the AbstractProxyControl to retrieve
the command (usually an instance of ISelector) to actually do the work.
| Method Summary | |
boolean |
allowUserInput()
states if the implementing class requires input fields displayed on the screen. |
IRenderingEvent |
execute(IResourceList list,
IProxy currentproxy)
Carries out the action on the IResourceList found in
the imported list, using the information from the current screen found inside the proxy. |
java.lang.String |
getLabel(java.lang.String key)
returns one of the text-elements needed, if a secondary screen is displayed for this command |
java.lang.String |
getLayoutSetID()
returns the layoutset defined for this class in the configuration |
com.sapportals.wcm.control.base.IMandatoryField[] |
getUserInputSpecifiers()
returns a list of mandatory fields that have to be rendered by the screenflow that holds the implementing class as embedded command. |
boolean |
isValidTargetResource(IResource resource)
checks if the command that implements this interface can operate with its resource on the resource that is given as a parameter. |
void |
setLayoutSetID(java.lang.String layoutSetID)
set the Layout Set ID. |
| Method Detail |
public java.lang.String getLayoutSetID()
null.public void setLayoutSetID(java.lang.String layoutSetID)
the - layoutset for this class.
public IRenderingEvent execute(IResourceList list,
IProxy currentproxy)
throws WcmException
IResourceList found in
the imported list, using the information from the current screen found inside the proxy.list - the list of IResource that act as 'targets' for the
action to perform.currentproxy - - the proxy from the current screen. Needed, as the implementing class
only holds the IProxy from the request when it was instantiated itself.null.
If the implementing class had additional fields rendered via its getUserInputSpecifiers
methodpublic java.lang.String getLabel(java.lang.String key)
the - key of the text to shownull, if there is no text available for this key.
Note: There is no possibility to add variables to these texts (e.g. add the resource name)public boolean allowUserInput()
true, its getUserInputSpecifiers is called to provide data
what kind of fields have to be rendered.true, if the implementing class requires input fields displayed on the screenpublic com.sapportals.wcm.control.base.IMandatoryField[] getUserInputSpecifiers()
allowUserInput returns true. The FieldIdentifier within
the returned fields must be unique. Several of the implementing classes might be used to
render the content of an htmlb-Screen, which requires each field to have a unique ID.
Therefore, the implementing class should add a prefix to the IDs it uses for its different fields.
The IProxys method createUniqueComponentId can be used for this.public boolean isValidTargetResource(IResource resource)
true in this method, if the parameter given is a not-locked
ICollection and the current user has write-access. It will return
false, if it is a simple IResource, locked, etc...resource - the resource which is to be used as target for the command
that implements this interfaceNullPointerException, if the resource parameter is null
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||