public abstract class AbstractPortalComponent extends Object implements IPortalComponent, IPortalComponentInit, IEventListenerComponent
IPortalComponent| Constructor and Description |
|---|
AbstractPortalComponent()
Constructor for the AbstractPortalComponent object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Called upon release of the component instance.
|
protected void |
doAbout(IPortalComponentRequest aRequest,
IPortalComponentResponse aResponse)
Provides an "about" information on the Portal Component.
|
protected void |
doAfterContent(IPortalComponentRequest request,
IEvent event)
Handles the AFTER_CONTENT event.
|
protected void |
doBeforeContent(IPortalComponentRequest request,
IEvent event)
Handles the BEFORE_CONTENT event.
|
protected void |
doComponentEvent(IPortalComponentRequest aRequest,
IPortalComponentEvent event)
Handles a server side component event.
|
protected abstract void |
doContent(IPortalComponentRequest aRequest,
IPortalComponentResponse aResponse)
Generates the content of the component.
|
protected void |
doEdit(IPortalComponentRequest aRequest,
IPortalComponentResponse aResponse)
Provides personalization dialog.
|
void |
doHandleEditData(IPortalComponentRequest request,
IPortalRequestEvent event)
Default handler upon personalization according to the convention, which is that
a personalization dialog presentation should use profile names as parameter
names and it should contain a field "save" if the parameter set should be saved
into the profile.
|
protected void |
doHelp(IPortalComponentRequest aRequest,
IPortalComponentResponse aResponse)
Provides a help information on the Portal Component.
|
protected void |
doOnNodeReady(IPortalComponentRequest request,
IEvent event)
Handles the POM_ON_NODE_READY event.
|
protected void |
doOnNodeRemove(IPortalComponentRequest request,
IEvent event)
Handles the ON_NODE_REMOVE_EVENT event.
|
protected void |
doOnPOMReady(IPortalComponentRequest request,
IEvent event)
Handles the ON_POM_READY_EVENT event.
|
protected void |
doPreview(IPortalComponentRequest aRequest,
IPortalComponentResponse aResponse)
Provides preview on the typical output provided by the Portal Component.
|
protected void |
doRefresh(IPortalComponentRequest aRequest,
IPortalComponentResponse aResponse)
Provides personalization dialog.
|
protected void |
doRequestEvent(IPortalComponentRequest aRequest,
IPortalRequestEvent event)
Handles a client raised event that is not handled in a specific event handler.
|
String |
getCacheDiscriminant(IPortalComponentRequest request)
Gets the cache discriminant.
|
CachingLevel |
getCachingLevel(IPortalComponentRequest request)
Method defined in ICachablePortalComponent.
|
void |
handleEvent(IPortalComponentRequest request,
IEvent event)
Distributes known events to more convenient event handlers or force default
handling.
|
boolean |
hasExpired(IPortalComponentRequest request,
long creationTime,
long currentTime)
method defined in ICachablePortalComponent.
|
void |
init()
Deprecated.
|
void |
init(IPortalComponentConfig config) |
void |
init(IPortalComponentInitContext context)
Invoked when this Portal Component is loaded for the first time in memory.
|
void |
service(IPortalComponentRequest aRequest,
IPortalComponentResponse aResponse)
Called by the PortalSessionManager to allow the component to respond to a
request.
|
public AbstractPortalComponent()
public void destroy()
destroy in interface IPortalComponentIPortalComponent.init()public void init()
init in interface IPortalComponentpublic void init(IPortalComponentInitContext context) throws PortalComponentException
init in interface IPortalComponentInitcontext - an instance of IPortalComponentInitContext providing initialization dataPortalComponentExceptionpublic void init(IPortalComponentConfig config) throws PortalComponentException
PortalComponentExceptionpublic void service(IPortalComponentRequest aRequest, IPortalComponentResponse aResponse) throws PortalComponentException
service in interface IPortalComponentaRequest - the PortalComponentRequest object that
contains the client's requestaResponse - the PortalComponentResponse object
that contains the server's responsePortalComponentException - is a wrapper of an exception cause by invocationprotected abstract void doContent(IPortalComponentRequest aRequest, IPortalComponentResponse aResponse)
aRequest - the PortalComponentRequest object that
contains the client's requestaResponse - the PortalComponentResponse object
that contains the server's responseprotected void doPreview(IPortalComponentRequest aRequest, IPortalComponentResponse aResponse)
aRequest - the PortalComponentRequest object that
contains the client's requestaResponse - the PortalComponentResponse object
that contains the server's responseprotected void doAbout(IPortalComponentRequest aRequest, IPortalComponentResponse aResponse)
aRequest - the PortalComponentRequest object that
contains the client's requestaResponse - the PortalComponentResponse object
that contains the server's responseprotected void doHelp(IPortalComponentRequest aRequest, IPortalComponentResponse aResponse)
aRequest - the PortalComponentRequest object that
contains the client's requestaResponse - the PortalComponentResponse object
that contains the server's responseprotected void doEdit(IPortalComponentRequest aRequest, IPortalComponentResponse aResponse)
There are three different ways to provide personalization.
AbtractPortalComponent.IPortalComponent in your profile using the IPortalComponentProfile.PROFILE_KEY_PERSONALIZATIONCLASS property.IPortalComponentProfile.PROFILE_KEY_PERSONALIZATIONLINK property in your
components profile.aRequest - the PortalComponentRequest object that
contains the client's requestaResponse - the PortalComponentResponse object
that contains the server's responseprotected void doRefresh(IPortalComponentRequest aRequest, IPortalComponentResponse aResponse)
There are three different ways to provide personalization.
AbtractPortalComponent.IPortalComponent in your profile using the IPortalComponentProfile.PROFILE_KEY_PERSONALIZATIONCLASS property.IPortalComponentProfile.PROFILE_KEY_PERSONALIZATIONLINK property in your
components profile.aRequest - the PortalComponentRequest object that
contains the client's requestaResponse - the PortalComponentResponse object
that contains the server's responsepublic void handleEvent(IPortalComponentRequest request, IEvent event)
handleEvent in interface IEventListenerComponentrequest - the Portal Component Request corresponding to this
componentevent - the event
public void handleEvent(IPortalComponentRequest request,
IEvent event) {
// do your event handling here...
....
// if you do not handle the event if (event not handled)
super.handleEvent(request,event);
}
protected void doOnNodeReady(IPortalComponentRequest request, IEvent event)
request - the PortalComponentRequest object that
contains the client's requestevent - the eventprotected void doOnNodeRemove(IPortalComponentRequest request, IEvent event)
request - the IPortalComponentRequest of the current request cycleevent - the ON_NODE_REMOVE_EVENT eventprotected void doOnPOMReady(IPortalComponentRequest request, IEvent event)
request - the IPortalComponentRequest of the current request cycleevent - the ON_POM_READY_EVENT eventprotected void doBeforeContent(IPortalComponentRequest request, IEvent event)
request - - The IPortalComponentRequest of the current request cycleevent - - BEFORE_CONTENT eventprotected void doAfterContent(IPortalComponentRequest request, IEvent event)
request - - The IPortalComponentRequest of the current request cycleevent - - The AFTER_CONTENT eventprotected void doRequestEvent(IPortalComponentRequest aRequest, IPortalRequestEvent event)
doXxx(IPortalComponentRequest, IPortalRequestEvent)
first. If that fails it will make a call to this method.
aRequest - the portal component requestevent - the portal request eventprotected void doComponentEvent(IPortalComponentRequest aRequest, IPortalComponentEvent event)
aRequest - -the IPortalComponentRequest of the current request cycleevent - - the IPortalComponentEvent handled on server sidepublic boolean hasExpired(IPortalComponentRequest request, long creationTime, long currentTime)
request - the portal request.creationTime - the creation time of this component.currentTime - the actual time when the content of this
component is requested by the runtime.public CachingLevel getCachingLevel(IPortalComponentRequest request)
request - - The IPortalComponentRequest of the current request cyclepublic String getCacheDiscriminant(IPortalComponentRequest request)
request - - The IPortalComponentRequest of the current request cyclepublic void doHandleEditData(IPortalComponentRequest request, IPortalRequestEvent event)
This default handler will try to delegate personalization to a delegation component.
request - - the IPortalComponentRequest of the current request cycleevent - - the IPortalRequestEvent event| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] EP-BASIS-API
|
[sap.com]
|
default
|
EP-PIN-PRT
|
[sap.com] EP-BASIS-API
|
[sap.com] tc/epbc/prt/api
|
api
|
EP-PIN
|
[sap.com] EP-BASIS-API
|
[sap.com] tc/epbc/prt/lib/api
|
api
|
EP-PIN
|
[sap.com] EP-RUNTIME
|
[sap.com] tc/ep/semantics/api
|
api
|
EP-PIN
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
Copyright 2021 SAP SE Complete Copyright Notice