com.plumtree.uiinfrastructure.application.startup.messages
Class RecommendationHelper

java.lang.Object
  extended by com.plumtree.uiinfrastructure.application.startup.messages.RecommendationHelper

public class RecommendationHelper
extends java.lang.Object

Processes array of recommendations to arrive at a set of reasonable suggestions best tailored to match the user's situation.

Author:
DavidP

Constructor Summary
RecommendationHelper()
           
 
Method Summary
static java.lang.String ConvertExceptionToRecommendation(XPException te)
          Returns a recommendation string for an exception
static java.lang.String ConvertExceptionToRecommendationFromShortName(java.lang.String exceptionName, java.lang.String messageStr, java.lang.String secondLine, XPException te)
          Returns a recommendation string for an exception's shortname, more reusable
static java.lang.String ConvertExceptionToShortString(XPException te, boolean getMessage, boolean getSecondLine)
          Converts exception to a short reasonable string
static java.lang.String ConvertStackTraceToShortString(java.lang.String stackTrace, boolean getSecondLine)
          Converts stack trace string to a short reasonable string
static XPArrayList getList(int taskstepid, Platform platformid, PT_STARTUP_RESULTCODES retval, StartupTaskMessage[] m_diag)
          Implements lookup method that locates the most appropriate recommendation(s)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RecommendationHelper

public RecommendationHelper()
Method Detail

getList

public static XPArrayList getList(int taskstepid,
                                  Platform platformid,
                                  PT_STARTUP_RESULTCODES retval,
                                  StartupTaskMessage[] m_diag)
Implements lookup method that locates the most appropriate recommendation(s)

Parameters:
taskstepid -
platformid -
retval -
m_diag -
Returns:

ConvertExceptionToShortString

public static final java.lang.String ConvertExceptionToShortString(XPException te,
                                                                   boolean getMessage,
                                                                   boolean getSecondLine)
Converts exception to a short reasonable string

Parameters:
te -
Returns:

ConvertStackTraceToShortString

public static final java.lang.String ConvertStackTraceToShortString(java.lang.String stackTrace,
                                                                    boolean getSecondLine)
Converts stack trace string to a short reasonable string

Parameters:
te -
Returns:

ConvertExceptionToRecommendation

public static final java.lang.String ConvertExceptionToRecommendation(XPException te)
Returns a recommendation string for an exception

Parameters:
te -
Returns:

ConvertExceptionToRecommendationFromShortName

public static final java.lang.String ConvertExceptionToRecommendationFromShortName(java.lang.String exceptionName,
                                                                                   java.lang.String messageStr,
                                                                                   java.lang.String secondLine,
                                                                                   XPException te)
Returns a recommendation string for an exception's shortname, more reusable

Parameters:
te -
Returns:



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