Class PTPortletServices

Object
   |
   +--PTPortletServices

class PTPortletServices


Also known as the PCC, this is a utility class for event-handling multiplexing, and session variable storage. Allows multiple portlets to share the same global event-handlers and session variables.

Usage:	
 	document.PCC.RaiseEvent('mynamespace', 'submitsurvey');
	document.PCC.GetSessionState('mysessionstate');
	document.PCC.RegisterForEvent('mynamespace', 'submitsurvey', 'handleSubmitSurvey');
 

Defined in PTPortletServices.js


Field Summary
<static>  <final> Object VERSION
          
 
Constructor Summary
PTPortletServices ()
            PTPortletServices object constructor
 
Method Summary
 void ClearSessionState(sNamespaceURN, sName)
           Clear name/value pair from session state
 Boolean ClearWindowEvent(eventListenerID)
           Clears a window event
 Object GetSessionState(sNamespaceURN, sName)
           Retrieve name/value pair from session state
 Boolean IsEventRegistered(namespaceURN, eventName, sFunction)
           Checks to see if a given function signature has already been registered as a callback for a given namespace and event
 void PutSessionState(sNamespaceURN, sName, objValue)
           Store name/value pair in session state
 void RaiseEvent(sNamespaceURN, eventName, objEventArgs)
           Raise event, notifying PCC that an event occurred
 void RaiseWindowEvent(objEventArgs)
           Raise window event
 Number RegisterForEvent(namespaceURN, eventName, sFunction)
           Register an event with PCC
 Number RegisterForWindowEvent(eventName, sFunction)
           Register for window event
 Number RegisterOnceForEvent(namespaceURN, eventName, sFunction)
           Register an event with PCC, if and only if an identical event function has not already been registered for a given namespace and event
 Number RegisterOnceForWindowEvent(eventName, sFunction)
           Register a window event with PCC, if and only if an identical event function has not already been registered for a given namespace and event

Field Detail

VERSION

<static> <final> Object VERSION

Constructor Detail

PTPortletServices

PTPortletServices()

Method Detail

ClearSessionState

void ClearSessionState(sNamespaceURN, sName)

ClearWindowEvent

Boolean ClearWindowEvent(eventListenerID)

GetSessionState

Object GetSessionState(sNamespaceURN, sName)

IsEventRegistered

Boolean IsEventRegistered(namespaceURN, eventName, sFunction)

PutSessionState

void PutSessionState(sNamespaceURN, sName, objValue)

RaiseEvent

void RaiseEvent(sNamespaceURN, eventName, objEventArgs)

RaiseWindowEvent

void RaiseWindowEvent(objEventArgs)

RegisterForEvent

Number RegisterForEvent(namespaceURN, eventName, sFunction)

RegisterForWindowEvent

Number RegisterForWindowEvent(eventName, sFunction)

RegisterOnceForEvent

Number RegisterOnceForEvent(namespaceURN, eventName, sFunction)

RegisterOnceForWindowEvent

Number RegisterOnceForWindowEvent(eventName, sFunction)


Documentation generated by JSDoc on Wed Aug 24 10:17:38 2005