com.jalios.jcmsplugin.virtualdesktop
Class DesktopUtil

java.lang.Object
  extended by com.jalios.jcmsplugin.virtualdesktop.DesktopUtil

public class DesktopUtil
extends Object

Static Util class for Desktop related task.

Since:
virtualdesktop-1.0
Version:
$Revision: 22471 $

Field Summary
static String EDIT_INLINE_DEFAULT_TEMPLATE_PATH
          Default template path for service edition.
static String SERVICE_ABILITY
          Portlet's service ability.
static String SERVICE_PREVIEW_ATTRIBUTE
          Request attribute indicating if the jsp is being executed as a service preview.
static String USAGE_BOX
          Template usage for portlets when portlet are being displayed in a virtual desktop.
static String USAGE_EDIT_INLINE
          Template usage for portlets when portlet are being edited in a virtual desktop.
 
Constructor Summary
DesktopUtil()
           
 
Method Summary
static TreeSet<generated.AbstractPortletSkinable> getServiceablePortletSet(JcmsJspContext jcmsContext)
          Retrieve a new set of all portlets which have the service ability.
static boolean isServicePreview(javax.servlet.http.HttpServletRequest request)
          Check if the current request state is a service preview execution.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERVICE_ABILITY

public static final String SERVICE_ABILITY
Portlet's service ability.

Since:
virtualdesktop-1.0
See Also:
Constant Field Values

USAGE_EDIT_INLINE

public static final String USAGE_EDIT_INLINE
Template usage for portlets when portlet are being edited in a virtual desktop.

Since:
virtualdesktop-1.0
See Also:
Constant Field Values

EDIT_INLINE_DEFAULT_TEMPLATE_PATH

public static final String EDIT_INLINE_DEFAULT_TEMPLATE_PATH
Default template path for service edition.

Since:
virtualdesktop-1.0
See Also:
Constant Field Values

USAGE_BOX

public static final String USAGE_BOX
Template usage for portlets when portlet are being displayed in a virtual desktop.

Since:
virtualdesktop-1.0
See Also:
Constant Field Values

SERVICE_PREVIEW_ATTRIBUTE

public static final String SERVICE_PREVIEW_ATTRIBUTE
Request attribute indicating if the jsp is being executed as a service preview.

Since:
virtualdesktop-1.0
See Also:
Constant Field Values
Constructor Detail

DesktopUtil

public DesktopUtil()
Method Detail

isServicePreview

public static boolean isServicePreview(javax.servlet.http.HttpServletRequest request)
Check if the current request state is a service preview execution.

Parameters:
request - the request to check
Returns:
true if the current state of the request is a service preview execution.
Since:
virtualdesktop-1.0
See Also:
SERVICE_PREVIEW_ATTRIBUTE

getServiceablePortletSet

public static TreeSet<generated.AbstractPortletSkinable> getServiceablePortletSet(JcmsJspContext jcmsContext)
Retrieve a new set of all portlets which have the service ability.

Parameters:
jcmsContext - current JcmsJspContext
Returns:
a new TreeSet of portlet sorted using their display title, never returns null.


Copyright © 2001-2007 Jalios SA. All Rights Reserved.