info.magnolia.cms.taglibs
Class Resource

java.lang.Object
  extended by info.magnolia.cms.taglibs.Resource
Direct Known Subclasses:
Resource

Deprecated. since 4.0 - should not be used. AggregationState should be usable as a replacement in most cases.

public class Resource
extends Object

A utility class.

Version:
1.1
Author:
Sameer Charles

Field Summary
static String MGNL_PREVIEW_ATTRIBUTE
          Deprecated. since 4.0 - use InterceptFilter.MGNL_PREVIEW_ATTRIBUTE or rather, use the methods on AggregationState.
 
Constructor Summary
protected Resource()
          Deprecated. Utility class, don't instantiate.
 
Method Summary
static Content getActivePage()
          Deprecated. use AggregationState
static Content getCurrentActivePage()
          Deprecated.  get Content object as requested from the URI.
static Content getGlobalContentNode()
          Deprecated.  get ContentNode object as set by the "set" tag.
static Content getLocalContentNode()
          Deprecated.  get ContentNode object as passed to the include tag.
static String getLocalContentNodeCollectionName()
          Deprecated.  
static MultipartForm getPostedForm()
          Deprecated. since 4.0 - use WebContext.getPostedForm()
static String getSelector()
          Deprecated. since 4.0 - use SelectorUtil.getSelector()
static String getSelector(int index)
          Deprecated. since 4.0 - use SelectorUtil.getSelector()
static void removeGlobalContentNode()
          Deprecated. not used
static void removeLocalContentNode()
          Deprecated. removes ContentNode object in resources , scope:TAG.
static void removeLocalContentNodeCollectionName()
          Deprecated.  
static void restoreCurrentActivePage()
          Deprecated. Restores the request's original actpage attribute (i.e.
static void setCurrentActivePage(Content page)
          Deprecated. since 4.0 - use AggregationState.
static void setGlobalContentNode(Content node)
          Deprecated.  set ContentNode object in resources, scope:page.
static void setLocalContentNode(Content node)
          Deprecated.  set ContentNode object in resources , scope:TAG.
static void setLocalContentNodeCollectionName(String name)
          Deprecated.  
static void setShowPreview(boolean showPreview)
          Deprecated. use AggregationState
static boolean showPreview()
          Deprecated. use AggregationState.isPreviewMode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MGNL_PREVIEW_ATTRIBUTE

public static final String MGNL_PREVIEW_ATTRIBUTE
Deprecated. since 4.0 - use InterceptFilter.MGNL_PREVIEW_ATTRIBUTE or rather, use the methods on AggregationState.
See Also:
Constant Field Values
Constructor Detail

Resource

protected Resource()
Deprecated. 
Utility class, don't instantiate.

Method Detail

getActivePage

public static Content getActivePage()
Deprecated. use AggregationState

get Content object as requested from the URI.

Returns:
currently active page, as requested from the URI

getCurrentActivePage

public static Content getCurrentActivePage()
Deprecated. 

get Content object as requested from the URI.

Returns:
currently active page, as requested from the URI

getGlobalContentNode

public static Content getGlobalContentNode()
Deprecated. 

get ContentNode object as set by the "set" tag.

Returns:
ContentNode , global container specific to the current JSP/Servlet page

getLocalContentNode

public static Content getLocalContentNode()
Deprecated. 

get ContentNode object as passed to the include tag.

Returns:
ContentNode , local container specific to the current JSP/Servlet paragraph

getLocalContentNodeCollectionName

public static String getLocalContentNodeCollectionName()
Deprecated. 

getPostedForm

public static MultipartForm getPostedForm()
Deprecated. since 4.0 - use WebContext.getPostedForm()

this only works for forms which uses enctype=multipart/form-data.

Returns:
initialised multipart form object with the posted data

getSelector

public static String getSelector()
Deprecated. since 4.0 - use SelectorUtil.getSelector()

get selector as requested from the URI. The selector is the part between the handle and the extension. selector("http://server/a.x.1.f.4.html") = "x.1.f.4"

Warning - this might change in the future - see MAGNOLIA-2343 for details.

Returns:
selector String as requested from the URI

getSelector

public static String getSelector(int index)
Deprecated. since 4.0 - use SelectorUtil.getSelector()

Get the selector by index Warning - this might change in the future - see MAGNOLIA-2343 for details.

Parameters:
index -
Returns:
the selector value

removeGlobalContentNode

public static void removeGlobalContentNode()
Deprecated. not used

removes ContentNode object in resources , scope:page.


removeLocalContentNode

public static void removeLocalContentNode()
Deprecated. 
removes ContentNode object in resources , scope:TAG.


removeLocalContentNodeCollectionName

public static void removeLocalContentNodeCollectionName()
Deprecated. 

restoreCurrentActivePage

public static void restoreCurrentActivePage()
Deprecated. 
Restores the request's original actpage attribute (i.e. the one specified by the request URI).


setCurrentActivePage

public static void setCurrentActivePage(Content page)
Deprecated. since 4.0 - use AggregationState.

Set the request's actpage attribute to page.


setGlobalContentNode

public static void setGlobalContentNode(Content node)
Deprecated. 

set ContentNode object in resources, scope:page.

Parameters:
node - to be set

setLocalContentNode

public static void setLocalContentNode(Content node)
Deprecated. 

set ContentNode object in resources , scope:TAG.

Parameters:
node - to be set

setLocalContentNodeCollectionName

public static void setLocalContentNodeCollectionName(String name)
Deprecated. 

showPreview

public static boolean showPreview()
Deprecated. use AggregationState.isPreviewMode

Check for preview mode.

Returns:
boolean , true if preview is enabled

setShowPreview

public static void setShowPreview(boolean showPreview)
Deprecated. use AggregationState



Copyright © 2003-2011 Magnolia International Ltd.. All Rights Reserved.