com.ibm.websphere.personalization.transformation
Class PznTransformationModel

java.lang.Object
  extended by com.ibm.websphere.personalization.transformation.PznTransformationModel
All Implemented Interfaces:
com.ibm.portal.runtime.RuntimeLocatorProvider

public abstract class PznTransformationModel
extends java.lang.Object
implements com.ibm.portal.runtime.RuntimeLocatorProvider

When visibility rule caching is enabled, visibility rules are only executed once per session. If that rule is encountered later in the session, the original results of the rule execution are used. This class can be used to clear the results of those previous execution.

Visibility rule caching can be enabled or disabled by setting rulesEngine.attributeBasedAdmin.enableCaching to true or false in PersonalizationService.properties.


Constructor Summary
PznTransformationModel()
           
 
Method Summary
protected abstract  com.ibm.portal.runtime.RuntimeLocator getBaseRuntimeLocator()
           
 com.ibm.portal.runtime.RuntimeLocator getRuntimeLocator()
           
 void invalidate()
          Clears the results of all visibility rules executed by this PznTransformationModel
static void invalidate(javax.servlet.http.HttpServletRequest request)
          Clears the results of all visibility rules run in a session
static void invalidate(javax.servlet.http.HttpServletRequest request, java.lang.String rule)
          Clears the results of a visibiliity rule
 void invalidate(ObjectID object)
          Invalidates the results of the visibilty rule assigned to a page or portlet
static void invalidate(org.apache.jetspeed.portlet.PortletRequest request)
          Clears the results of all visibility rules run in a session
static void invalidate(javax.portlet.PortletRequest request)
          Clears the results of all visibility rules run in a session
static void invalidate(org.apache.jetspeed.portlet.PortletRequest request, java.lang.String rule)
          Clears the results of a visibility rule run in a session
static void invalidate(javax.portlet.PortletRequest request, java.lang.String rule)
          Clears the results of a visibility rule run in a session
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PznTransformationModel

public PznTransformationModel()
Method Detail

invalidate

public static void invalidate(org.apache.jetspeed.portlet.PortletRequest request)
Clears the results of all visibility rules run in a session

Parameters:
request - A request created during the session to be cleared

invalidate

public static void invalidate(javax.portlet.PortletRequest request)
Clears the results of all visibility rules run in a session

Parameters:
request - A request created during the session to be cleared

invalidate

public static void invalidate(javax.servlet.http.HttpServletRequest request)
Clears the results of all visibility rules run in a session

Parameters:
request - A request created during the session to be cleared

invalidate

public static void invalidate(org.apache.jetspeed.portlet.PortletRequest request,
                              java.lang.String rule)
                       throws PersonalizationException
Clears the results of a visibility rule run in a session

Parameters:
request - A request created during the session to be cleared
rule - The full path to the rule to be cleared
Throws:
PersonalizationException

invalidate

public static void invalidate(javax.portlet.PortletRequest request,
                              java.lang.String rule)
                       throws PersonalizationException
Clears the results of a visibility rule run in a session

Parameters:
request - A request created during the session to be cleared
rule - The full path to the rule to be cleared
Throws:
PersonalizationException

invalidate

public static void invalidate(javax.servlet.http.HttpServletRequest request,
                              java.lang.String rule)
                       throws PersonalizationException
Clears the results of a visibiliity rule

Parameters:
request - A request created during the session to be cleared
rule - The full path to the rule to be cleared
Throws:
PersonalizationException

invalidate

public void invalidate(ObjectID object)
Invalidates the results of the visibilty rule assigned to a page or portlet

Parameters:
object - The ObjectID of the page or portlet the rule is assigned to

invalidate

public void invalidate()
Clears the results of all visibility rules executed by this PznTransformationModel


getBaseRuntimeLocator

protected abstract com.ibm.portal.runtime.RuntimeLocator getBaseRuntimeLocator()

getRuntimeLocator

public com.ibm.portal.runtime.RuntimeLocator getRuntimeLocator()
Specified by:
getRuntimeLocator in interface com.ibm.portal.runtime.RuntimeLocatorProvider