|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.cms.taglibs.Resource
public class Resource
Field Summary | |
---|---|
static java.lang.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 java.lang.String |
getLocalContentNodeCollectionName()
Deprecated. |
static MultipartForm |
getPostedForm()
Deprecated. since 4.0 - use WebContext.getPostedForm() |
static java.lang.String |
getSelector()
Deprecated. since 4.0 - use SelectorUtil.getSelector() |
static java.lang.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(java.lang.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 |
---|
public static final java.lang.String MGNL_PREVIEW_ATTRIBUTE
InterceptFilter.MGNL_PREVIEW_ATTRIBUTE
or rather, use the methods on AggregationState.Constructor Detail |
---|
protected Resource()
Method Detail |
---|
public static Content getActivePage()
get Content object as requested from the URI
public static Content getCurrentActivePage()
get Content object as requested from the URI
public static Content getGlobalContentNode()
get ContentNode object as set by the "set" tag
public static Content getLocalContentNode()
get ContentNode object as passed to the include tag
public static java.lang.String getLocalContentNodeCollectionName()
public static MultipartForm getPostedForm()
this only works for forms which uses enctype=multipart/form-data
public static java.lang.String getSelector()
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.
public static java.lang.String getSelector(int index)
SelectorUtil.getSelector()
index
-
public static void removeGlobalContentNode()
removes ContentNode object in resources , scope:page
public static void removeLocalContentNode()
public static void removeLocalContentNodeCollectionName()
public static void restoreCurrentActivePage()
actpage
attribute (i.e. the one specified by the request URI).
public static void setCurrentActivePage(Content page)
actpage
attribute to page
public static void setGlobalContentNode(Content node)
set ContentNode object in resources, scope:page
node
- to be setpublic static void setLocalContentNode(Content node)
set ContentNode object in resources , scope:TAG
node
- to be setpublic static void setLocalContentNodeCollectionName(java.lang.String name)
public static boolean showPreview()
AggregationState.isPreviewMode
public static void setShowPreview(boolean showPreview)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |