站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.6 API 英文版文档

WSRPUtils - JBOSS Portal 2.6 API 英文版文档


org.jboss.portal.wsrp
Class WSRPUtils

java.lang.Object
  extended byorg.jboss.portal.wsrp.WSRPUtils

public class WSRPUtils
extends java.lang.Object

Since:
2.4
Version:
$Revision: 5440 $
Author:
Chris Laprun

Field Summary
private static java.util.Map JSR168_WSRP_MODES
           
private static java.util.Map JSR168_WSRP_WINDOW_STATES
           
private static java.lang.String MODE
           
private static java.lang.String SET_OF_LOCALES
           
private static java.lang.String WINDOW_STATE
           
private static java.util.Map WSRP_JSR168_MODES
           
private static java.util.Map WSRP_JSR168_WINDOW_STATES
           
private static java.lang.String WSRP_MODE_NAME
           
private static java.lang.String WSRP_WINDOW_STATE_NAME
           
 
Constructor Summary
WSRPUtils()
           
 
Method Summary
static java.lang.String convertJSR168PortletModeNameToWSRPName(java.lang.String jsr168PortletModeName)
           
static java.lang.String convertJSR168WindowStateNameToWSRPName(java.lang.String jsr168WindowStateName)
           
static java.lang.String[] convertLocalesToRFC3066LanguageTagArray(java.util.List localesOrderedByPreference)
           
static java.lang.String convertRequestAuthTypeToWSRPAuthType(java.lang.String authType)
           
static PortletContext convertWSRPPortletContextToPortalPortletContext(org.jboss.portal.wsrp.core.PortletContext portletContext)
           
static Fault createFaultFrom(java.lang.Class faultClass, java.lang.Throwable cause)
           
static OperationFailedFault createOperationFailedFault(java.lang.Throwable cause)
          Create a new OperationFailedFault based on the specified cause.
static AccessMode getAccessModeFromStateChange(StateChange stateChange)
           
static Mode getJSR168PortletModeFromWSRPName(java.lang.String wsrpPortletModeName)
           
static WindowState getJSR168WindowStateFromWSRPName(java.lang.String wsrpWindowStateName)
           
static StateChange getStateChangeFromAccessMode(AccessMode accessMode)
           
static java.lang.String getWSRPNameFromJSR168PortletMode(Mode portletMode)
           
static java.lang.String getWSRPNameFromJSR168WindowState(WindowState windowState)
           
static java.lang.String getWSRPURLTypeFrom(PortletURL url)
           
static void throwMissingParametersFaultIfValueIsMissing(java.lang.Object valueToCheck, java.lang.String valueName, java.lang.String context)
           
static void throwOperationFailedFaultIfValueIsMissing(java.lang.Object valueToCheck, java.lang.String valueName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JSR168_WSRP_WINDOW_STATES

private static final java.util.Map JSR168_WSRP_WINDOW_STATES

WSRP_JSR168_WINDOW_STATES

private static final java.util.Map WSRP_JSR168_WINDOW_STATES

JSR168_WSRP_MODES

private static final java.util.Map JSR168_WSRP_MODES

WSRP_JSR168_MODES

private static final java.util.Map WSRP_JSR168_MODES

SET_OF_LOCALES

private static final java.lang.String SET_OF_LOCALES
See Also:
Constant Field Values

MODE

private static final java.lang.String MODE
See Also:
Constant Field Values

WSRP_MODE_NAME

private static final java.lang.String WSRP_MODE_NAME
See Also:
Constant Field Values

WSRP_WINDOW_STATE_NAME

private static final java.lang.String WSRP_WINDOW_STATE_NAME
See Also:
Constant Field Values

WINDOW_STATE

private static final java.lang.String WINDOW_STATE
See Also:
Constant Field Values
Constructor Detail

WSRPUtils

public WSRPUtils()
Method Detail

getJSR168WindowStateFromWSRPName

public static WindowState getJSR168WindowStateFromWSRPName(java.lang.String wsrpWindowStateName)

convertJSR168WindowStateNameToWSRPName

public static java.lang.String convertJSR168WindowStateNameToWSRPName(java.lang.String jsr168WindowStateName)

getWSRPNameFromJSR168WindowState

public static java.lang.String getWSRPNameFromJSR168WindowState(WindowState windowState)

getJSR168PortletModeFromWSRPName

public static Mode getJSR168PortletModeFromWSRPName(java.lang.String wsrpPortletModeName)

convertJSR168PortletModeNameToWSRPName

public static java.lang.String convertJSR168PortletModeNameToWSRPName(java.lang.String jsr168PortletModeName)

getWSRPNameFromJSR168PortletMode

public static java.lang.String getWSRPNameFromJSR168PortletMode(Mode portletMode)

getAccessModeFromStateChange

public static AccessMode getAccessModeFromStateChange(StateChange stateChange)

getStateChangeFromAccessMode

public static StateChange getStateChangeFromAccessMode(AccessMode accessMode)

getWSRPURLTypeFrom

public static java.lang.String getWSRPURLTypeFrom(PortletURL url)

convertRequestAuthTypeToWSRPAuthType

public static java.lang.String convertRequestAuthTypeToWSRPAuthType(java.lang.String authType)

convertLocalesToRFC3066LanguageTagArray

public static java.lang.String[] convertLocalesToRFC3066LanguageTagArray(java.util.List localesOrderedByPreference)

convertWSRPPortletContextToPortalPortletContext

public static PortletContext convertWSRPPortletContextToPortalPortletContext(org.jboss.portal.wsrp.core.PortletContext portletContext)

createOperationFailedFault

public static OperationFailedFault createOperationFailedFault(java.lang.Throwable cause)
Create a new OperationFailedFault based on the specified cause.

Parameters:
cause - the cause why the operation failed
Returns:
a new OperationFailedFault based on the specified cause.

createFaultFrom

public static Fault createFaultFrom(java.lang.Class faultClass,
                                    java.lang.Throwable cause)

throwMissingParametersFaultIfValueIsMissing

public static void throwMissingParametersFaultIfValueIsMissing(java.lang.Object valueToCheck,
                                                               java.lang.String valueName,
                                                               java.lang.String context)
                                                        throws MissingParametersFault
Throws:
MissingParametersFault

throwOperationFailedFaultIfValueIsMissing

public static void throwOperationFailedFaultIfValueIsMissing(java.lang.Object valueToCheck,
                                                             java.lang.String valueName)
                                                      throws OperationFailedFault
Throws:
OperationFailedFault