com.plumtree.portaluiinfrastructure.helpers
Class PublisherHelperService

java.lang.Object
  extended by com.plumtree.portaluiinfrastructure.helpers.PublisherHelperService
All Implemented Interfaces:
IPublisherHelper

public class PublisherHelperService
extends java.lang.Object
implements IPublisherHelper


Field Summary
static java.lang.String PUBLISHER_WEB_SERVICE_UUID
          This is used to lookup the Collab web service instance.
protected static int TIMEOUT
          The timeout for caching the web service data, in seconds.
 
Method Summary
static IPublisherHelper getInstance()
           
 int GetWebServiceID(IPTSession _session)
           
 boolean IsPublisherInstalled(IPTSession _session)
           
protected  void LoadPublisherWebService(IPTSession _session)
          Load the Publisher web service, if installed.
static void setTestInstance(IPublisherHelper testHelper)
          Unit tests should use this method to overwrite/teardown existing helper singleton.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PUBLISHER_WEB_SERVICE_UUID

public static final java.lang.String PUBLISHER_WEB_SERVICE_UUID
This is used to lookup the Collab web service instance. "Notification Gateway Entry" is the actual name of web service I grabbed this UUID from, when you install the collaboration.pte.

See Also:
Constant Field Values

TIMEOUT

protected static final int TIMEOUT
The timeout for caching the web service data, in seconds.

See Also:
Constant Field Values
Method Detail

getInstance

public static IPublisherHelper getInstance()
Returns:
The singleton PT config helper.

setTestInstance

public static void setTestInstance(IPublisherHelper testHelper)
Unit tests should use this method to overwrite/teardown existing helper singleton. DO NOT USE for production code. NOTE: When finished with a unit test, this should be set back to null so as not to interfere with other tests.


LoadPublisherWebService

protected void LoadPublisherWebService(IPTSession _session)
Load the Publisher web service, if installed. This handles cache timeouts and lazy initialization.


IsPublisherInstalled

public boolean IsPublisherInstalled(IPTSession _session)
Specified by:
IsPublisherInstalled in interface IPublisherHelper
Parameters:
_session - the current user session.
Returns:
whether or not Publisher is installed.

GetWebServiceID

public int GetWebServiceID(IPTSession _session)
Specified by:
GetWebServiceID in interface IPublisherHelper
Parameters:
_session - the current user session.
Returns:
the ID of the Web Service ID. -1 if it is not installed.



Copyright © 2002,2003,2004,2005 Plumtree Software, Inc., All Rights Reserved.