com.jalios.jcmsplugin.virtualdesktop
Class DesktopPortalPolicyFilter

java.lang.Object
  extended by com.jalios.jcms.policy.AbstractPolicyFilter
      extended by com.jalios.jcms.policy.BasicPortalPolicyFilter
          extended by com.jalios.jcmsplugin.virtualdesktop.DesktopPortalPolicyFilter
All Implemented Interfaces:
PluginComponent, PolicyFilter, PortalPolicyFilter, Comparable

public class DesktopPortalPolicyFilter
extends BasicPortalPolicyFilter

PortalPolicyFilter used to override portlets' fields values with services' fields values during service/portlet display.

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

Field Summary
 
Fields inherited from class com.jalios.jcms.policy.BasicPortalPolicyFilter
REVISION
 
Fields inherited from class com.jalios.jcms.policy.AbstractPolicyFilter
order
 
Constructor Summary
DesktopPortalPolicyFilter()
           
 
Method Summary
 Object getFieldValue(JcmsJspContext ctxt, String fieldName, Data data, Object computedValue)
          Returns an alternate value for the given field and given Data.
 int getIntFieldValue(JcmsJspContext ctxt, String fieldName, Data data, int computedValue)
          Returns an alternate value for the given int field and given Data.
 
Methods inherited from class com.jalios.jcms.policy.BasicPortalPolicyFilter
checkCategory, checkCtxCategories, checkDisplay, checkDisplay, checkDisplay, checkDisplayContext, checkPermalink, checkPortal, checkPublication, checkRedirect, checkWorkingCategories, checkWorkspace, filterDisplayContext, getDescriptiveURLText, init, initHeaders, initJavaScriptCodeSet, initJavaScriptSet, setupHeaders
 
Methods inherited from class com.jalios.jcms.policy.AbstractPolicyFilter
compareTo, equals, getOrder, setOrder
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

DesktopPortalPolicyFilter

public DesktopPortalPolicyFilter()
Method Detail

getFieldValue

public Object getFieldValue(JcmsJspContext ctxt,
                            String fieldName,
                            Data data,
                            Object computedValue)
Description copied from interface: PortalPolicyFilter
Returns an alternate value for the given field and given Data. The return value might be a String id of a Storable that might be resolved. The original value can be retrieve by calling Data.getFieldValue(String)

Specified by:
getFieldValue in interface PortalPolicyFilter
Overrides:
getFieldValue in class BasicPortalPolicyFilter
Parameters:
ctxt - the JCmsJspContext
fieldName - the name of the called field
data - the Data object to work with
computedValue - the already computed value (using extra data)
Returns:
Object the alternate value
See Also:
PortalPolicyFilter.getFieldValue(JcmsJspContext, String, Data, Object)

getIntFieldValue

public int getIntFieldValue(JcmsJspContext ctxt,
                            String fieldName,
                            Data data,
                            int computedValue)
Description copied from interface: PortalPolicyFilter
Returns an alternate value for the given int field and given Data. The original value can be retrieve by calling Data.getIntFieldValue(String)

Specified by:
getIntFieldValue in interface PortalPolicyFilter
Overrides:
getIntFieldValue in class BasicPortalPolicyFilter
Parameters:
ctxt - the JCmsJspContext
fieldName - the name of the called field
data - the Data object to work with
computedValue - the already computed value (using extra data)
Returns:
int the alternate value
See Also:
PortalPolicyFilter.getIntFieldValue(JcmsJspContext, String, Data, int)


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