public class WSRPUtils extends Object
Modifier and Type | Field and Description |
---|---|
static long |
MILISSECONDS_IN_A_DAY |
static String[] |
WSRP_PORTLET_MODES
Array of strings containing the default possible portletModes to be used with WSRP.
|
static String[] |
WSRP_WINDOWS_STATES
Array of strings containing the default possible windowStates to be used with WSRP.
|
Constructor and Description |
---|
WSRPUtils() |
Modifier and Type | Method and Description |
---|---|
static com.sun.portal.wsrp.common.stubs.v2.Lifetime |
convertLeasetimeToLifetime(com.sun.portal.wsrp.common.LeaseTime leasetime)
Converts a
LeaseTime into a Lifetime . |
static com.sun.portal.wsrp.common.LeaseTime |
convertLifetimeToLeaseTime(com.sun.portal.wsrp.common.stubs.v2.Lifetime lifetime)
Converts a
Lifetime into a LeaseTime . |
static Date |
dateFromXMLGregorianCalendar(XMLGregorianCalendar calendar)
Converts a XMLGregorianCalendar into a Date object.
|
static long |
fromXMLGregorianCalendar(XMLGregorianCalendar calendar)
Converts a XMLGregorianCalendar into a date, in milliseconds.
|
static Map<String,String[]> |
getMapFromString(String paramString)
Adjustment for 'com.sun.portal.wsrp.common.Util'.
|
static String |
join(List<? extends CharSequence> s,
String delimiter)
Joins a list into a String with its values separated by the delimiter.
|
static com.sun.portal.wsrp.common.stubs.v2.Lifetime |
lifetimeTerminationTimeFromDate(Date date)
Creates a Lifetime object and sets its termination time converting the Date instance to a XMLGregorianCalendar.
|
static Date |
lifetimeTerminationTimeToDate(com.sun.portal.wsrp.common.stubs.v2.Lifetime lifetime)
Creates a Date object getting the terminationTime from a Lifetime object.
|
static XMLGregorianCalendar |
toXMLGregorianCalendar(Date date)
Converts a date, into a XMLGregorianCalendar.
|
static XMLGregorianCalendar |
toXMLGregorianCalendar(long date)
Converts a date, in milliseconds, into a XMLGregorianCalendar.
|
public static final String[] WSRP_WINDOWS_STATES
public static final String[] WSRP_PORTLET_MODES
public static final long MILISSECONDS_IN_A_DAY
public static XMLGregorianCalendar toXMLGregorianCalendar(long date)
long
- representing the desired date.public static XMLGregorianCalendar toXMLGregorianCalendar(Date date)
date
- to be converted.public static long fromXMLGregorianCalendar(XMLGregorianCalendar calendar)
calendar
- XMLGregorianCalendar format of the date.public static Date dateFromXMLGregorianCalendar(XMLGregorianCalendar calendar)
calendar
- XMLGregorianCalendar format of the date.public static String join(List<? extends CharSequence> s, String delimiter)
list
- of CharSequence to join into a single string.delimiter
- used to join the CharSequences.public static com.sun.portal.wsrp.common.stubs.v2.Lifetime lifetimeTerminationTimeFromDate(Date date)
date
- an instance of Date.public static Date lifetimeTerminationTimeToDate(com.sun.portal.wsrp.common.stubs.v2.Lifetime lifetime)
lifetime
- an instance of Lifetime.public static com.sun.portal.wsrp.common.stubs.v2.Lifetime convertLeasetimeToLifetime(com.sun.portal.wsrp.common.LeaseTime leasetime)
LeaseTime
into a Lifetime
. The attribute refreshDuration will not be filled in the Lifetime.leasetime
- LeaseTime to be converted into a lifetime.public static com.sun.portal.wsrp.common.LeaseTime convertLifetimeToLeaseTime(com.sun.portal.wsrp.common.stubs.v2.Lifetime lifetime)
Lifetime
into a LeaseTime
.lifetime
- Lifetime to be converted.LumisXP 12.0.0.190809 - Copyright © 2006–2019 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.