|
SAP NetWeaver 7.30 Enterprise Portal (SP03) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IIntegrationLayer
Defines the interface for an Integration Layer.
A layer handles a specific task to integrate back-end applications, such as generating the URL to the backend system, user mapping, rendering, drag and relate issues etc.
The integration of one kind of backend application is done by one or (normaly) more layers that
are stacked together in the so called Layer Stack, where each layer defines its
subsequent * layer &ndash see getNextLayer().
Each layer as a (unique) id (see getLayerId()) and a well defined number
(see getLayerNo()) which is defined as the position in the Layer Stack beginning with 0
for the top layer.
A layer needs parameter to do its job which are provided by its preceding layer. The methods
getMandatoryParameters() and getOptionalParameters() defines the mandatory and
optional parameters resp. The method missingParameters() returns true, if one or more
mandatory parameters are missing.
The parameters are managed by the so called Parameter Provider Manager
(see IParameterConveyor). Every layer contains a
reference to the same Parameter Provider Manager, which is provided
through the layer initialization
(@see init(IPortalComponentRequest, IParameterConveyor, int, String)).
The layer are mangaged by a Layer Processor
(see com.sapportals.portal.appintegrator.LayerProcessor which initializes the layer
and calls than the methods prolog(), processLayer() and epilog()
during the action phase and the method render(IPortalComponentResponse) during the
content phase of the portal request.
The prolog() method should be used to read the input parameters form the
Parameter Conveyor and * the epilog() method should than provide the result of this
layer to the next layer.
processLayer() should be used to do the real work like URL generation etc.
while render() should be used to output the result to the user agent.
AbstractIntegrationLayer| Field Summary | |
|---|---|
static String |
PROPNAME_MANDATORY_PARAMETERS
name of MandatoryParameters property |
static String |
PROPNAME_NEXT_LAYER
name of NextLayer property |
static String |
PROPNAME_OPTIONAL_PARAMETERS
name of OptionalParameters property |
| Method Summary | |
|---|---|
void |
epilog()
This method is used to provide the result of this layer for the subsequent layers and it has to be called after prolog and processLayer() and
before render(). |
ApplicationIntegratorException |
getException()
Returns the exception the occured during the processing of this layer or null
if the processing was succesful. |
String |
getLayerId()
Returns the (hopefully unique) id of this layer. |
int |
getLayerNo()
Returns the number of this layer that is the position of this layer in the layer stack. |
Enumeration |
getMandatoryParameters()
Returns an enumeration over the mandatory parameters of this layer |
String |
getNextLayer()
Returns the id of the next layer in the layer stack. |
Enumeration |
getOptionalParameters()
Returns an enumeration over the optional parameters of this layer |
Enumeration |
getValidValues(String parameter)
Returns an enumeration over the valid values of the given parameter. |
boolean |
hasException()
Returns true if an exception occured during the processing of this layer |
void |
init(IPortalComponentRequest request,
IParameterConveyor conveyor,
int layerNo,
String layerName)
Initializes this layer. |
boolean |
isDebugMode()
Returns whether debug mode is on or off |
boolean |
missingParameters()
Returns true, if there are one or more mandatory parameters missing to process this layer. |
void |
processLayer()
This method is used to do the real job of this layer (ie. |
void |
prolog()
This method is used to retrieve the input parameters for this layer and it is called before processLayer(), epilog and render(). |
void |
render(IPortalComponentResponse response)
This method is used to produce the output of this layer. |
void |
setException(ApplicationIntegratorException e)
set the exception for this layer |
boolean |
stopProcessing()
Returns whether the layer processing should stop at this layer or not |
| Field Detail |
|---|
static final String PROPNAME_NEXT_LAYER
static final String PROPNAME_MANDATORY_PARAMETERS
static final String PROPNAME_OPTIONAL_PARAMETERS
| Method Detail |
|---|
void init(IPortalComponentRequest request,
IParameterConveyor conveyor,
int layerNo,
String layerName)
request - the Portal Component Requestconveyor - the Parameter Conveyor that will provide this layer with its parameterlayerNo - the number of this layer - i.e. the position in the layer stacklayerName - the (unique) id of this layerIParameterConveyorint getLayerNo()
init(IPortalComponentRequest, IParameterConveyor, int, String)String getLayerId()
init(IPortalComponentRequest, IParameterConveyor, int, String)String getNextLayer()
getLayerId()void prolog()
processLayer(), epilog and render().
processLayer(),
epilog(),
render(IPortalComponentResponse)void processLayer()
epilog and before render() and
processLayer().
prolog(),
epilog(),
render(IPortalComponentResponse)void epilog()
prolog and processLayer() and
before render().
prolog(),
processLayer(),
render(IPortalComponentResponse)void render(IPortalComponentResponse response)
prolog, processLayer() and epilog.
prolog(),
epilog(),
processLayer()void setException(ApplicationIntegratorException e)
boolean hasException()
getException()ApplicationIntegratorException getException()
null
if the processing was succesful.
hasException()boolean missingParameters()
Enumeration getMandatoryParameters()
getOptionalParameters()Enumeration getOptionalParameters()
getMandatoryParameters()Enumeration getValidValues(String parameter)
boolean isDebugMode()
boolean stopProcessing()
| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] EP-RUNTIME
|
[sap.com] tc/ep/appintegration/api
|
api
|
EP-PIN
|
|
SAP NetWeaver 7.30 Enterprise Portal (SP03) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||