org.exoplatform.services.wsrp.utils
Class Modes
java.lang.Object
org.exoplatform.services.wsrp.utils.Modes
- All Implemented Interfaces:
- java.io.Serializable
public class Modes
- extends java.lang.Object
- implements java.io.Serializable
- See Also:
- Serialized Form
|
Constructor Summary |
Modes(java.lang.String value)
|
|
Method Summary |
static java.lang.String |
addPrefixWSRP(java.lang.String forAddWSRP)
|
static java.lang.String |
delAllPrefixesWSRP(java.lang.String forDelWSRP)
|
boolean |
equals(java.lang.Object obj)
|
static Modes |
fromString(java.lang.String value)
Returns the WSRP mode build from a string representation If a not supported
Mode is requested, null is returned |
static Modes |
fromValue(java.lang.String value)
Returns the WSRP mode build from a string representation If a not supported
Mode is requested, null is returned |
static javax.portlet.PortletMode |
getJsrPortletMode(java.lang.String mode)
This helper method maps portlet modes defined in wsrp to portlet modes
defined in the java portlet standard (JSR-168). |
java.lang.String |
getValue()
|
static java.lang.String |
getWSRPModeString(javax.portlet.PortletMode jsrPortletMode)
|
int |
hashCode()
|
java.lang.Object |
readResolve()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
_view_wsrp
public static final java.lang.String _view_wsrp
_edit_wsrp
public static final java.lang.String _edit_wsrp
_help_wsrp
public static final java.lang.String _help_wsrp
_preview_wsrp
public static final java.lang.String _preview_wsrp
- See Also:
- Constant Field Values
VIEW
public static final Modes VIEW
EDIT
public static final Modes EDIT
HELP
public static final Modes HELP
PREVIEW
public static final Modes PREVIEW
Modes
public Modes(java.lang.String value)
getValue
public java.lang.String getValue()
fromValue
public static Modes fromValue(java.lang.String value)
- Returns the WSRP mode build from a string representation If a not supported
Mode is requested, null is returned
- Parameters:
String - representation of the WSRP mode
- Returns:
- The WSRP
Mode represented by the passed string
fromString
public static Modes fromString(java.lang.String value)
- Returns the WSRP mode build from a string representation If a not supported
Mode is requested, null is returned
- Parameters:
String - representation of the WSRP mode
- Returns:
- The WSRP
Mode represented by the passed string
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
readResolve
public java.lang.Object readResolve()
throws java.io.ObjectStreamException
- Throws:
java.io.ObjectStreamException
getJsrPortletMode
public static javax.portlet.PortletMode getJsrPortletMode(java.lang.String mode)
- This helper method maps portlet modes defined in wsrp to portlet modes
defined in the java portlet standard (JSR-168). If the passed wsrp mode is
null or can not be mapped the VIEW mode is returned.
- Returns:
- The
javax.portlet.PortletMode which corresponds to
the given wsrp mode.
addPrefixWSRP
public static java.lang.String addPrefixWSRP(java.lang.String forAddWSRP)
getWSRPModeString
public static java.lang.String getWSRPModeString(javax.portlet.PortletMode jsrPortletMode)
delAllPrefixesWSRP
public static java.lang.String delAllPrefixesWSRP(java.lang.String forDelWSRP)
Copyright © 2011 eXo Platform SAS. All Rights Reserved.