Upgrading exteNd Director Applications

CHAPTER 2

Handling API Changes

The following table lists changes to the API between 5.0 and 5.2. These changes can generate compile errors or warnings upon project builds or rebuilds.

Class/Interface/Method/Field

Change

com.novell.afw.portlet.api.EbiPortletConsumerRegistry methods

Methods moved to base interface com.novell.afw.portlet.api.EbiConsumerRegistry.

com.novell.afw.portal.proxy.EbiProxyConstants.WSRP_CONTAINER_ENABLE_KEY

This field is no longer part of the public API. Consider using the WSRP_CONSUMER_ENABLE_KEY instead.

com.novell.afw.util.EboXmlUtil.addDirectiveToXSL

Return type changed.

Old signature:

  public static void addDirectiveToXSL(org.w3c.dom.Document xslDom, String directiveName, String attributeName, String attributeValue) throws javax.xml.transform.TransformerException

New signature:

  public static Node addDirectiveToXSL(Document xslDom, String directiveName, String attributeName, String attributeValue) throws TransformerException

com.novell.afw.util.EboXmlUtil.xslTransform

Return type changed.

Old signature:

  public static void xslTransform(org.w3c.dom.Document contentDom, javax.xml.transform.Transformer transformer, OutputStream out) throws javax.xml.transform.TransformerException, javax.xml.transform.TransformerConfigurationException, FileNotFoundException, IOException

New signature:

  public static String xslTransform(Document contentDom, Transformer transformer, OutputStream out) throws TransformerException, TransformerConfigurationException, FileNotFoundException, IOException

com.sssw.cm.api.EbiContentMgmtDelegate.checkoutDocument

Return type changed.

Old signature:

  public boolean checkoutDocument(EbiContext context, String docID) throws EboUnrecoverableSystemException, EboSecurityException, EboItemExistenceException

New signature:

  public EbiDocument checkoutDocument(EbiContext context, String docPath, boolean isDocID) throws EboUnrecoverableSystemException, EboSecurityException, EboItemExistenceException

com.sssw.fw.api.EbiConstants.

SECURITY_MGR

CACHE_MGR

USER_MGR

SESSION_MGR

PERSONALIZE_MGR

These fields are no longer part of the public API.

Consider using the replacements listed below:

com.sssw.fw.security.api.SECURITY_MGR

com.sssw.fw.cachemgr.api.CACHE_MGR

com.sssw.fw.usermgr.api.USER_MGR

com.sssw.fw.usermgr.api.PERSONALIZE_MGR

com.sssw.fw.resource.EboResourceListener

New modifier—Abstract

Old signature:

  public class EboResourceListener extends Object

New signature:

  public abstract class EboResourceListener 
  extends Object

com.sssw.fw.util.EboMisc.getElementValue

Removed from the public API. Consider using com.novell.afw.util.EboXmlUtil instead.

com.sssw.fw.util.crypto.EboBase64Crypto.decrypt

Exception changed

Old signature:

  public byte[] decrypt(byte[] data) throws Exception

New signature:

  public byte[] decrypt(byte[] data) throws com.sssw.fw.util.crypto.UnsupportedEncodingException

com.sssw.fw.util.crypto.EboBase64Crypto.encryptString

Exception changed

Old signature:

  public String encryptString(String data) throws Exception

New signature:

  public String encryptString(String data) throws com.sssw.fw.util.crypto.UnsupportedEncodingException

com.sssw.fw.util.crypto.EboBase64Crypto.decryptString

Exception changed

Old signature:

  public String decryptString(String data) throws Exception

New signature:

  public String decryptString(String data) throws com.sssw.fw.util.crypto.UnsupportedEncodingException

com.sssw.portal.util.EboPortalUrlHelper.addUtilityNode

Exception changed

Old signature:

  public static org.w3c.dom.Document addUtilityNode(EbiPortalContext context, org.w3c.dom.Document doc) throws Exception

New signature:

  public static Document addUtilityNode(EbiPortalContext context, Document doc) throws EboFactoryException

com.novell.afw.portal.api.EbiPortalAggregationController.RENDER_SYNCH_IN_MAIN_THREAD

This method is no longer part of the public API.

For more information    For more information, see the chapter on asynchronous portlet processing in the Portal Guide.

com.novell.afw.portal.api.EbiPortalAggregationController.setExecuteSynchronizedInCallingThread

This method is no longer part of the public API.

Consider using the following method instead:

  public void setForceSerialSynchRender(boolean flag)

For more information    For more information, see the chapter on asynchronous portlet processing in the Portal Guide.

com.novell.afw.portal.aggregation.EboPortalAggregationURLHelper.getPortalWirelessPageURI

Method parameters changed.

Old signature:

  public static String getPortalWirelessPageURI(EbiPortalContext portalContext) throws EboFactoryException

New signature:

  public static String getPortalWirelessPageURI(EbiPortalContext portalContext, boolean encode) throws EboFactoryException




Copyright © 2004-2005 Novell, Inc. All rights reserved. Copyright © 1997, 1998, 1999, 2000, 2001, 2002, 2003 SilverStream Software, LLC. All rights reserved.  more ...