org.jasig.portal.web.skin
Class ResourcesAggregationHelper

java.lang.Object
  extended by org.jasig.portal.web.skin.ResourcesAggregationHelper

@Service
public class ResourcesAggregationHelper
extends Object

Class to facilitate enabling/disabling Resources aggregation.

Author:
Nicholas Blair, npblair@wisc.edu

Field Summary
static String AGGREGATED_THEME_PARAMETER
          Name of System property used to toggle default/aggregated skin output.
static String DEFAULT_AGGREGATION_ENABLED
           
protected  org.apache.commons.logging.Log logger
           
 
Constructor Summary
ResourcesAggregationHelper()
           
 
Method Summary
 void disableAggregation()
          shortcut to setAggregationEnabled(boolean) with false.
 void enableAggregation()
          shortcut to setAggregationEnabled(boolean) with true.
 boolean isAggregationEnabled()
           
 void setAggregationEnabled(boolean enabled)
          Toggle resources aggregation (if and only if value parameter differs from current value).
 void setPortalRenderingPipeline(IPortalRenderingPipeline portalRenderingPipeline)
           
 void setResourcesElementsProvider(org.jasig.resource.aggr.util.ResourcesElementsProvider resourcesElementsProvider)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AGGREGATED_THEME_PARAMETER

public static final String AGGREGATED_THEME_PARAMETER
Name of System property used to toggle default/aggregated skin output.

See Also:
Constant Field Values

DEFAULT_AGGREGATION_ENABLED

public static final String DEFAULT_AGGREGATION_ENABLED

logger

protected final org.apache.commons.logging.Log logger
Constructor Detail

ResourcesAggregationHelper

public ResourcesAggregationHelper()
Method Detail

setPortalRenderingPipeline

public void setPortalRenderingPipeline(IPortalRenderingPipeline portalRenderingPipeline)
Parameters:
portalRenderingPipeline - the portalRenderingPipeline to set

setResourcesElementsProvider

public void setResourcesElementsProvider(org.jasig.resource.aggr.util.ResourcesElementsProvider resourcesElementsProvider)

isAggregationEnabled

public boolean isAggregationEnabled()
Returns:
true if aggregation is currently enabled.

setAggregationEnabled

public void setAggregationEnabled(boolean enabled)
Toggle resources aggregation (if and only if value parameter differs from current value).


enableAggregation

public void enableAggregation()
shortcut to setAggregationEnabled(boolean) with true.


disableAggregation

public void disableAggregation()
shortcut to setAggregationEnabled(boolean) with false.



Copyright © 2010 Jasig. All Rights Reserved.