|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sapportals.portal.prt.component.AbstractPortalComponent
This class provides the base implementation of the IPortalComponent. this class should be subclassed by portalcomponents
IPortalComponent| Constructor Summary | |
AbstractPortalComponent()
Constructor for the AbstractPortalComponent object. |
|
| Method Summary | |
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AbstractPortalComponent()
| Method Detail |
public void destroy()
destroy in interface IPortalComponentIPortalComponent.init()public void init()
init in interface IPortalComponent
public void init(IPortalComponentInitContext context)
throws PortalComponentException
init in interface IPortalComponentInitPortalComponentException
public void init(IPortalComponentConfig config)
throws PortalComponentException
PortalComponentException
public 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 response
PortalComponentException
protected 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 response
protected void doPreview(IPortalComponentRequest aRequest,
IPortalComponentResponse aResponse)
aRequest - the PortalComponentRequest object that
contains the client's requestaResponse - the PortalComponentResponse object
that contains the server's response
protected void doAbout(IPortalComponentRequest aRequest,
IPortalComponentResponse aResponse)
aRequest - the PortalComponentRequest object that
contains the client's requestaResponse - the PortalComponentResponse object
that contains the server's response
protected void doHelp(IPortalComponentRequest aRequest,
IPortalComponentResponse aResponse)
aRequest - the PortalComponentRequest object that
contains the client's requestaResponse - the PortalComponentResponse object
that contains the server's response
protected 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 response
protected 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 response
public 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 ()
super.handleEvent(request,event);
}
protected void doOnNodeReady(IPortalComponentRequest request,
IEvent event)
request - the PortalComponentRequest object that
contains the client's requestevent - the event
protected void doOnNodeRemove(IPortalComponentRequest request,
IEvent event)
request - event -
protected void doOnPOMReady(IPortalComponentRequest request,
IEvent event)
request - event -
protected void doBeforeContent(IPortalComponentRequest request,
IEvent event)
request - event -
protected void doAfterContent(IPortalComponentRequest request,
IEvent event)
request - event -
protected 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 event
protected void doComponentEvent(IPortalComponentRequest aRequest,
IPortalComponentEvent event)
aRequest - event -
public boolean hasExpired(IPortalComponentRequest request,
long creationTime,
long currentTime)
request - creationTime - currentTime - public CachingLevel getCachingLevel(IPortalComponentRequest request)
request - public String getCacheDiscriminant(IPortalComponentRequest request)
request -
public void doHandleEditData(IPortalComponentRequest request,
IPortalRequestEvent event)
This default handler will try to delegate personalization to a delegation component.
request - event -
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||