|
SAP NetWeaver 2004S SPS 10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectWcmBaseControl
com.sapportals.wcm.rendering.base.AbstractProxyControl
implements the IProxy and extends the
WcmBaseControl. It acts as the base class for all classes that
work as interface between the WD-framework and the rendering classes underneath.
| Field Summary | |
static String |
DISPATCH_EVENT
|
static String |
HTMLB_PREFIX
constant that can be used to filter out parameters in the URL that are only needed for htmlb. |
protected boolean |
isFirstCall
|
static String |
ON_DELEGATED_CLICK
|
static String |
ON_EXECUTE
constant to use as a target for the creation of Events through
the WdfEventDispatcher for IUICommand |
static String |
ON_MASS_EXECUTE
constant to use as a target for the creation of Events through
the WdfEventDispatcher for IUIMassCommand |
static String |
ON_NAVIGATE
constant to use as a target for the creation of Events through
the WdfEventDispatcher when a navigation via resource-URLs is wanted |
protected HashMap |
renderKeys
|
protected ISearchSession |
searchsession
|
| Fields inherited from interface com.sapportals.wcm.rendering.base.IProxy |
ROOT_RID |
| Fields inherited from interface com.sapportals.wcm.repository.service.layout.IDebugContainer |
CATEGORY_COLLECTIONRENDERER, CATEGORY_CONTROL, CATEGORY_DEFAULT, CATEGORY_LAYOUT_CONTROLLER, CATEGORY_RESOURCE_RENDERER |
| Constructor Summary | |
AbstractProxyControl()
|
|
| Method Summary | |
void |
addControlStatus(String id,
IControlStatus status)
acts as a wrapper around the ControlStatusService. |
protected boolean |
checkEvent(WdfEvent event)
returns true, if the event to clean status has been fired |
String |
createDispatchableID(String handler,
ArrayList values)
creates an id that contains dispatch information. |
String |
createDispatchableID(String handler,
String value)
creates an id that contains dispatch information. |
abstract String |
createNavigationTarget(ICollection collection)
creates the needed information for a Link or Button to
offer navigation to the given ICollection. |
List |
decodeValues(Event event)
Returns the values created via the createDispatchableID methods and returns the list of parameters
in the same order they were when submitting them. |
protected void |
deleteAllControlStatus(boolean partial)
|
void |
deleteControlStatus(String id)
deletes the instance of the IControlStatus that was created with the given key.
|
ResourcePropertyAmalgamation |
getAmalgamation()
|
abstract IUIBaseCommand |
getCommand()
|
IControlStatus |
getControlStatus(String id)
returns the IControlStatus that has been added to the proxy using its
addControlStatus method. |
String |
getCssCacheID()
|
DynPage |
getDynamicPage()
returns the DynPage the proxy is created in |
abstract String |
getDynamicPane()
returns the name of the PaneElement that holds the PaneElement
that can be replaced with a dynamic screenflow. |
ArrayList |
getEventValues(Event event)
|
String[] |
getInputFromEntryControls()
iterates through all controls that implement the IInputFieldControlinterface and
asks for their input. |
abstract Hashtable |
getParameters()
|
abstract PaneElement |
getPresentDynamicPane()
returns the PaneElement that holds the current control. |
IResource |
getResource()
returns the present resource of the control or null.
|
protected RID |
getRID()
|
ISearchSession |
getSearchSession()
returns the search session attribute of the proxy. |
abstract String |
getStartUri()
returns the starturi of the control or null. |
abstract IProxy |
getTargetControl()
returns the event handler control. |
abstract String |
getUri()
returns the uri of the control. |
String |
getUserInput(String key)
returns the input from the http-request that was specified in a field with the given field |
protected void |
initialize()
|
boolean |
isPreviewEnabled()
returns a flag, if the present screen offers functionality to view resources in this screen. |
WdfEvent |
onDelegatedClick(Event event)
|
abstract WdfEvent |
onExecute(Event event)
This method is called by the WDF when a Link or a Button
with this target has been clicked and the ON_EXECUTE constant has been
used as target for link or button creation. |
abstract WdfEvent |
onMassExecute(Event event)
This method is called by the WDF when a Link or a Button
with this target has been clicked and the ON_MASS_EXECUTE constant has been
used as target for link or button creation. |
protected void |
refreshAllControlStatus()
|
String |
register(IDelegatedReceiver receiver)
registers the given receiver with the implementing class of this interface. |
void |
setCssCacheID(String id)
|
protected void |
setRID(RID rid)
|
abstract void |
setUri(String string)
sets the uri of the control. |
| 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.base.IProxy |
createUniqueComponentId, getHabitat, getResourceContext |
| Methods inherited from interface com.sapportals.wcm.repository.service.layout.IDebugContainer |
addEntryToDebugList, addEntryToDebugList, isDebugEnabled |
| Field Detail |
protected HashMap renderKeys
protected ISearchSession searchsession
protected boolean isFirstCall
public static final String ON_EXECUTE
Events through
the WdfEventDispatcher for IUICommand
public static final String ON_MASS_EXECUTE
Events through
the WdfEventDispatcher for IUIMassCommand
public static final String ON_NAVIGATE
Events through
the WdfEventDispatcher when a navigation via resource-URLs is wanted
public static final String ON_DELEGATED_CLICK
public static final String HTMLB_PREFIX
HashMap with
the URL-Parameters that can be used by all classes holds less entries
public static final String DISPATCH_EVENT
| Constructor Detail |
public AbstractProxyControl()
| Method Detail |
public abstract WdfEvent onExecute(Event event)
throws WdfException
Link or a Button
with this target has been clicked and the ON_EXECUTE constant has been
used as target for link or button creation. All IExecCommand created by the
UICommandFactory are also pointing to this method when clicked.
The inner structure of the values encoded in the Event can only be decoded
by the UICommandFactory The IExecCommand can change the static
screenflow, defined in the xml-files of the WDF. If they do, this change is carried out within
this method. The returned event triggers the screenflow.
event - encapsulates all information needed to carry out the functionality
of the link or button that raised it.
WdfEventReceivers and
that might trigger a screenflow. Can return null.
a - WdfException that can encapsulate other exceptions.
WdfException
public abstract WdfEvent onMassExecute(Event event)
throws WdfException
Link or a Button
with this target has been clicked and the ON_MASS_EXECUTE constant has been
used as target for link or button creation. All IMassExecCommand created by the
UICommandFactory are also pointing to this method when clicked.
The inner structure of the values encoded in the Event can only be decoded
by the UICommandFactory The IMassExecCommand can change the static
screenflow, defined in the xml-files of the WDF. If they do, this change is carried out within
this method. The returned event triggers the screenflow.
event - encapsulates all information needed to carry out the functionality
of the link or button that raised it.
WdfEventReceivers and
that might trigger a screenflow. Can return null.
a - WdfException that can encapsulate other exceptions.
WdfExceptionpublic abstract String getDynamicPane()
PaneElement that holds the PaneElement
that can be replaced with a dynamic screenflow.
getDynamicPane in interface IProxy
public abstract PaneElement getPresentDynamicPane()
throws WdfException
PaneElement that holds the current control.
WdfException. - This can happen, if the static WDF-file is badly configured,
e.g. if the Pane, whose name is returned in the controls getDynamicPane
holds no or more than one pane.
WdfException
public abstract String createNavigationTarget(ICollection collection)
throws WcmException
Link or Button to
offer navigation to the given ICollection. It uses the
WdfEventDispatcher. The parameters in this string have to be in the
following order: Components 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
new UUID().toString().
createNavigationTarget in interface IProxycollection - the folder to navigate to
WdfException - if an exception occurs in the repository framework or the WDF
WcmException - if an exception occurs in the repository framework or the WDF. The exception
can contain a wrapped WdfExceptionpublic abstract IProxy getTargetControl()
return this
getTargetControl in interface IProxyWdfEventDispatcher when
creating a Link or Button. Must not return null
public abstract Hashtable getParameters()
throws WcmException
getParameters in interface IProxyString, the hashtable's own clone method will suffice.
WcmException
public abstract IUIBaseCommand getCommand()
throws WcmException
getCommand in interface IProxyIUIBaseCommand can ask the AbstractProxyControl for this
command and use it.
WcmExceptionpublic abstract String getUri()
null
getUri in interface IProxypublic abstract void setUri(String string)
null
public abstract String getStartUri()
null. The start-uri states
the furthermost ancestor of the uri that is available for browsing.
getStartUri in interface IProxypublic boolean isPreviewEnabled()
isPreviewEnabled in interface IProxyfalse.public IResource getResource()
null.
The implementation available in this abstract class always returns null.
getResource in interface IProxy
protected void initialize()
throws WdfException
WdfException
public String[] getInputFromEntryControls()
throws WcmException
IInputFieldControlinterface and
asks for their input. The controls must be registered at the WD-Framework
by the implementing class.
null
The implementation available in this abstract class always returns null.
WdfException - Exception raised in failure situation
WcmException
public void addControlStatus(String id,
IControlStatus status)
IProxyControlStatusService. 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
addControlStatus in interface IProxyid - - 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 nullpublic IControlStatus getControlStatus(String id)
IProxyIControlStatus 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.
getControlStatus in interface IProxyid - the key of the status to retrieve, must not be null
public void deleteControlStatus(String id)
IProxyIControlStatus that was created with the given key.
If no instance for this key can be found, the implementing class should log this fact.
deleteControlStatus in interface IProxyid - the id of the status to delete as it was specified by the calling class in the
addControlStatus method of this interfaceprotected void deleteAllControlStatus(boolean partial)
partial - flag telling if all IControlStatus instances
should be deleted (this is for value false), or if only
instances should be deleted which do not implement the
IRefreshSurvivor interface (this is for value true).protected boolean checkEvent(WdfEvent event)
true, if the event to clean status has been fired
protected void refreshAllControlStatus()
public void setCssCacheID(String id)
public String getCssCacheID()
public String register(IDelegatedReceiver receiver)
IProxyString 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
register in interface IProxyreceiver -
public ArrayList getEventValues(Event event)
throws WcmException
WcmException
public WdfEvent onDelegatedClick(Event event)
throws WdfException
WdfExceptionpublic ISearchSession getSearchSession()
IProxy
getSearchSession in interface IProxynull
public String createDispatchableID(String handler,
ArrayList values)
throws WcmException
IProxyEvent is
raised with this id, the event will be send to the implementing class, using the
information of the given parameters.
createDispatchableID in interface IProxyhandler - 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
public String createDispatchableID(String handler,
String value)
throws WcmException
IProxyEvent is
raised with this id, the event will be send to the implementing class, using the
information of the given parameters.
createDispatchableID in interface IProxyhandler - 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 situationpublic List decodeValues(Event event)
IProxycreateDispatchableID 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.
decodeValues in interface IProxypublic DynPage getDynamicPage()
IProxy
getDynamicPage in interface IProxypublic ResourcePropertyAmalgamation getAmalgamation()
getAmalgamation in interface IAmalgamationProviderpublic String getUserInput(String key)
IProxy
getUserInput in interface IProxykey - - the key that was used as ID when creating the field in the http-response
protected final RID getRID()
protected final void setRID(RID rid)
|
SAP NetWeaver 2004S SPS 10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||