Class TickerManager
java.lang.Object
de.uplanet.lucy.server.auxiliaries.TickerManager
Velocity context class to access an
RssProvider
.-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Ticker-URL propertyurn:schemas-unitedplanet-de:portlet:ticker:url
.static final String
Time-to-live propertyurn:schemas-unitedplanet-de:portlet:ticker:ttl
.static final String
Transformation propertyurn:schemas-unitedplanet-de:portlet:ticker:transform
.static final String
Transformation propertyurn:schemas-unitedplanet-de:portlet:ticker:transform:parameters
. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetTickerContent
(de.uplanet.lucy.server.portlet.velocity.IVelocityPortlet p_portlet, Object[] p_params) Get the content of a ticker that is associated with a portlet.getTickerContent
(de.uplanet.lucy.server.portlet.velocity.IVelocityPortlet p_portlet, String p_strParam, Object p_oValue) Get the content of a ticker that is associated with a portlet.getTickerContent
(de.uplanet.lucy.server.portlet.velocity.IVelocityPortlet p_portlet, List<Object> p_params) Get the content of a ticker that is associated with a portlet.getTickerContent
(String p_strUrl, String p_strTransform, int p_lTimeToLive, Object[] p_params) Get the content of a ticker.getTickerContent
(String p_strUrl, String p_strTransform, int p_lTimeToLive, String p_strParam, Object p_oValue) Get the content of a ticker.getTickerContent
(String p_strUrl, String p_strTransform, int p_lTimeToLive, List<Object> p_params) Get the content of a ticker.
-
Field Details
-
PROP_TIME_TO_LIVE
Time-to-live propertyurn:schemas-unitedplanet-de:portlet:ticker:ttl
.- See Also:
-
PROP_TICKER_URL
Ticker-URL propertyurn:schemas-unitedplanet-de:portlet:ticker:url
.- See Also:
-
PROP_TRANSFORM
Transformation propertyurn:schemas-unitedplanet-de:portlet:ticker:transform
.- See Also:
-
PROP_TRANSFORM_PARAMS
Transformation propertyurn:schemas-unitedplanet-de:portlet:ticker:transform:parameters
.- See Also:
-
-
Constructor Details
-
TickerManager
public TickerManager()
-
-
Method Details
-
getTickerContent
public String getTickerContent(de.uplanet.lucy.server.portlet.velocity.IVelocityPortlet p_portlet, String p_strParam, Object p_oValue) Get the content of a ticker that is associated with a portlet.- Parameters:
p_portlet
- The ticker portlet.p_strParam
- The name of the transformation parameter.p_oValue
- The value of the transformation parameter.- Returns:
- The ticker content.
-
getTickerContent
public String getTickerContent(de.uplanet.lucy.server.portlet.velocity.IVelocityPortlet p_portlet, List<Object> p_params) Get the content of a ticker that is associated with a portlet.- Parameters:
p_portlet
- The ticker portlet.p_params
- The transformation parameters as a list of alternating names and values .- Returns:
- The ticker content.
-
getTickerContent
public String getTickerContent(de.uplanet.lucy.server.portlet.velocity.IVelocityPortlet p_portlet, Object[] p_params) Get the content of a ticker that is associated with a portlet.- Parameters:
p_portlet
- The ticker portlet.p_params
- The transformation parameters as alternating names and values.- Returns:
- The ticker content.
-
getTickerContent
public String getTickerContent(String p_strUrl, String p_strTransform, int p_lTimeToLive, String p_strParam, Object p_oValue) Get the content of a ticker.- Parameters:
p_strUrl
- The ticker URL.p_strTransform
- The transformation to be used.p_lTimeToLive
- The time for which the transformed content should be cached.p_strParam
- The name of the transformation parameter.p_oValue
- The value of the transformation parameter.- Returns:
- The transformed content.
-
getTickerContent
public String getTickerContent(String p_strUrl, String p_strTransform, int p_lTimeToLive, List<Object> p_params) Get the content of a ticker.- Parameters:
p_strUrl
- The ticker URL.p_strTransform
- The transformation to be used.p_lTimeToLive
- The time for which the transformed content should be cached.p_params
- The transformation parameters as a list of alternating names and values .- Returns:
- The transformed content.
-
getTickerContent
public String getTickerContent(String p_strUrl, String p_strTransform, int p_lTimeToLive, Object[] p_params) Get the content of a ticker.- Parameters:
p_strUrl
- The ticker URL.p_strTransform
- The transformation to be used.p_lTimeToLive
- The time for which the transformed content should be cached.p_params
- The transformation parameters as alternating names and values .- Returns:
- The transformed content.
-