|
SAP NetWeaver 7.40 SP 06 KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IProxy
Base interface to use the flexible UI. It wraps functionality of the underlying screenflow
technology (e.g. the Wdf-Htmlb) to offer a consistent and centralized interface.
It acts as a Facade-pattern for this screenflow technology.
The proxy groups several functionalities:
- caching mechanisms (addControlStatus, getControlStatus, deleteControlStatus)
- debugging information (addEntryToDebugList, isDebugEnabled)
- eventing (register, getEventValues, decodeValues, getUserInput, createUniqueComponentID)
- screenflow (getDynamicPage, getDynamicPane, getTargetControl, getCommand)
- resource-handling (getResource, getResourceContext, getUri, getHabitat, isPreviewEnabled
When several implementations of this interface are running at the same time with one instance A holding another instance B, this
inner instance B should return A in its getTargetControl method to ensure caching consistency and event-handling.
| Field Summary | |
|---|---|
static String |
DISPATCH_EVENT
Deprecated. |
static String |
HTMLB_PREFIX
Deprecated. constant that can be used to filter out parameters in the URL that are only needed for htmlb. |
static String |
ON_DELEGATED_CLICK
Deprecated. |
static String |
ON_EXECUTE
Deprecated. constant to use as a target for the creation of Events through
the WdfEventDispatcher for IUICommand |
static String |
ON_MASS_EXECUTE
Deprecated. constant to use as a target for the creation of Events through
the WdfEventDispatcher for IUIMassCommand |
static String |
ON_NAVIGATE
Deprecated. constant to use as a target for the creation of Events through
the WdfEventDispatcher when a navigation via resource-URLs is wanted |
static RID |
ROOT_RID
Deprecated. |
| Fields inherited from interface com.sapportals.wcm.repository.service.layout.IDebugContainer |
|---|
CATEGORY_COLLECTIONRENDERER, CATEGORY_CONTROL, CATEGORY_DEFAULT, CATEGORY_LAYOUT_CONTROLLER, CATEGORY_RESOURCE_RENDERER |
| Fields inherited from interface com.sapportals.wcm.control.util.IProxyProvider |
|---|
PREVIEW_ACTION |
| Method Summary | |
|---|---|
void |
addControlStatus(String key,
IControlStatus status)
Deprecated. As of NetWeaver 7.1 |
String |
createDispatchableID(String handler,
ArrayList values)
Deprecated. As of NetWeaver 7.1 |
String |
createDispatchableID(String handler,
String value)
Deprecated. As of NetWeaver 7.1 |
String |
createNavigationTarget(ICollection p0)
Deprecated. As of NetWeaver 7.1 |
String |
createUniqueComponentId(String idpart)
Deprecated. As of NetWeaver 7.1 |
List |
decodeValues(com.sapportals.htmlb.event.Event p0)
Deprecated. As of NetWeaver 7.1 |
void |
deleteControlStatus(String key)
Deprecated. As of NetWeaver 7.1 |
IUIBaseCommand |
getCommand()
Deprecated. As of NetWeaver 7.1 |
IControlStatus |
getControlStatus(String key)
Deprecated. As of NetWeaver 7.1 |
com.sapportals.htmlb.page.DynPage |
getDynamicPage()
Deprecated. As of NetWeaver 7.1 |
String |
getDynamicPane()
Deprecated. As of NetWeaver 7.1 |
Habitat |
getHabitat()
Deprecated. As of NetWeaver 7.1 |
Hashtable |
getParameters()
Deprecated. As of NetWeaver 7.1 |
IResource |
getResource()
Deprecated. As of NetWeaver 7.1 |
IResourceContext |
getResourceContext()
Deprecated. As of NetWeaver 7.1 |
ISearchSession |
getSearchSession()
Deprecated. As of NetWeaver 7.1 |
String |
getStartUri()
Deprecated. As of NetWeaver 7.1 |
IProxy |
getTargetControl()
Deprecated. As of NetWeaver 7.1 |
String |
getUri()
Deprecated. As of NetWeaver 7.1 |
String |
getUserInput(String key)
Deprecated. As of NetWeaver 7.1 |
boolean |
isPreviewEnabled()
Deprecated. As of NetWeaver 7.1 |
String |
register(IDelegatedReceiver p0)
Deprecated. As of NetWeaver 7.1 |
| Methods inherited from interface com.sapportals.wcm.repository.service.layout.IDebugContainer |
|---|
addEntryToDebugList, addEntryToDebugList, isDebugEnabled |
| Methods inherited from interface com.sapportals.wcm.rendering.base.IAmalgamationProvider |
|---|
getAmalgamation |
| Methods inherited from interface com.sapportals.wcm.control.util.IProxyProvider |
|---|
getProperty |
| Field Detail |
|---|
static final String ON_EXECUTE
Events through
the WdfEventDispatcher for IUICommand
static final String ON_MASS_EXECUTE
Events through
the WdfEventDispatcher for IUIMassCommand
static final String ON_NAVIGATE
Events through
the WdfEventDispatcher when a navigation via resource-URLs is wanted
static final String ON_DELEGATED_CLICK
static final String HTMLB_PREFIX
HashMap with
the URL-Parameters that can be used by all classes holds less entries
static final String DISPATCH_EVENT
static final RID ROOT_RID
| Method Detail |
|---|
String getDynamicPane()
PaneElement that holds the PaneElement
that can be replaced with a dynamic screenflow.
null
String createNavigationTarget(ICollection p0)
throws WcmException
Link or Button to
offer navigation to the given ICollection. Depending on the used screenflow-engine,
the String might be different for the same collection. The String must contain the encoded
URI of the collection to navigate to and should contain the start-Path to this collection,
also encoded. The start-path is the furthest ancestor of the collection that should be visible.
Note, that if navigating to a collection by links, the linked URI of the collection and not its
standard URI should be used. So instead of ICollection.getRID() use
ICollection.getAccessRIDComponents in an iView may specify the same navigation target,
it is necessary to ensure unique IDs for each of these components. One way to do this
is to add some unique string at a later position in the parameter list, such as
IDCounter.currentID().
createNavigationTarget in interface IProxyProviderp0 - the folder to navigate to
WcmException - if an exception occurs in the repository framework or the WDF. The exception
can contain a wrapped WdfExceptionIProxy getTargetControl()
IProxy that assumes responsibility. If it wants to act on its own, it must return
a handle to itself here:
return this
Hashtable getParameters()
throws WcmException
String, the hashtable's own clone method will suffice.
Implementing classes might choose to add parameters to this table. It is recommended to
add a parameter with key ICustomizingContollerSettings.MODE_508 and the
value "true", if the implementing class can recognize, if 508-compliant
rendering is needed
WcmException
IUIBaseCommand getCommand()
throws WcmException
IUIBaseCommand can ask this class for this command and use it.
WcmExceptionString getUri()
null*
String getStartUri()
null. The start-uri states
the furthermost ancestor of the uri that is available for browsing. The interface's
getHabitat returns the same combination of getUri and
getStartUri only as RID representation*
boolean isPreviewEnabled()
isPreviewEnabled in interface IProxyProvidertrue if documents can be previewed within the same browser-windowIResource getResource()
null.
String getUserInput(String key)
key - - the key that was used as ID when creating the field in the http-response
void addControlStatus(String key,
IControlStatus status)
ControlStatusService. The class that calls this method
must be able to reproduce the key at a later time to retrieve the status provided here. The
implementation must map the keys returned by the ControlStatusService to the key
provided here. The method will raise a NullPointerException if any of the parameters
is null
key - - the key the calling class will use to retrieve the given status through the proxy's
getControlStatus method. Must not be nullstatus - - the status the calling class wants to store. Must not be nullIControlStatus getControlStatus(String key)
IControlStatus that has been added to the proxy using its
addControlStatus method. The calling class must be aware of the fact, that this
method might return null, even if the status has been created with this key before.
This can have several reasons. First of all, the ControlStatusService might have
removed the status due to a too long idle time or a too high server load. Also, certain events
within the interaction (e.g. the navigation to another resource) can trigger the deletion of
all status' registered with that proxy.
key - the key of the status to retrieve, must not be null
IControlStatus that has been added to the proxy.void deleteControlStatus(String key)
IControlStatus that was created with the given key.
If no instance for this key can be found, the implementing class should log this fact.
key - the id of the status to delete as it was specified by the calling class in the
addControlStatus method of this interfaceString register(IDelegatedReceiver p0)
String instance. After a server-roundtrip, the IProxy will recreate all
receivers from the previous trip and therefore all of these receivers will register with the same IDs
again. This ensures, that a receiver will be identified when an Event is received
by the proxy
p0 -
ISearchSession getSearchSession()
null
String createDispatchableID(String handler,
ArrayList values)
throws WcmException
Event is
raised with this id, the event will be send to the implementing class, using the
information of the given parameters.
createDispatchableID in interface IProxyProviderhandler - The method that will be called when the event with this id is fired.values - The objects of this list will be encoded using their
toString() method and will be available in the handler method when the event is received
Component.
WcmException - Exception raised in failure situation
<{WcmException}>
String createDispatchableID(String handler,
String value)
throws WcmException
Event is
raised with this id, the event will be send to the implementing class, using the
information of the given parameters.
handler - The method that will be called when the event with this id is fired.value - The value will be available in the handler method when the event is received.
This value will not be encoded
Component.
WcmException - Exception raised in failure situation
<{WcmException}>List decodeValues(com.sapportals.htmlb.event.Event p0)
createDispatchableID methods and returns the list of parameters
in the same order they were when submitting them. There will be no en- or decoding done to take care of special
characters. If the createDispatchableID(String, String) method is used,
a List with only one entry will be returned.
p0 - The event that contains the encoded values.
com.sapportals.htmlb.page.DynPage getDynamicPage()
Habitat getHabitat()
RID of the current
IResource as well as a second RID that marks the lowest
ancestor of that resource that should be visible within the navigation views for
the user. This ancestor is comparable to a mount-point. If no ancestor
is specified for the given view, the implementing class must return the current
IResource's RID as ancestor.
String createUniqueComponentId(String idpart)
DynPage under certain conditions: DynPage, the page itself must ensure that the proxies are
configured to create different strings to add to the given parameters. So, if Class A, rendered within
proxy B calls this method, submitting String S1, the resulting String Unique1 must be different from the
String Unique2, that is created when Class A, rendered within proxy C calls this method, submitting String S1
idpart - - must not be null.
IResourceContext getResourceContext()
null| 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 06 KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||