|
||||||||||
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
A utility class.
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 info.magnolia.cms.core.Content |
getActivePage()
Deprecated. use AggregationState |
static info.magnolia.cms.core.Content |
getCurrentActivePage()
Deprecated. get Content object as requested from the URI. |
static info.magnolia.cms.core.Content |
getGlobalContentNode()
Deprecated. get ContentNode object as set by the "set" tag. |
static info.magnolia.cms.core.Content |
getLocalContentNode()
Deprecated. get ContentNode object as passed to the include tag. |
static java.lang.String |
getLocalContentNodeCollectionName()
Deprecated. |
static info.magnolia.cms.beans.runtime.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(info.magnolia.cms.core.Content page)
Deprecated. since 4.0 - use AggregationState. |
static void |
setGlobalContentNode(info.magnolia.cms.core.Content node)
Deprecated. set ContentNode object in resources, scope:page. |
static void |
setLocalContentNode(info.magnolia.cms.core.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 info.magnolia.cms.core.Content getActivePage()
get Content object as requested from the URI.
public static info.magnolia.cms.core.Content getCurrentActivePage()
get Content object as requested from the URI.
public static info.magnolia.cms.core.Content getGlobalContentNode()
get ContentNode object as set by the "set" tag.
public static info.magnolia.cms.core.Content getLocalContentNode()
get ContentNode object as passed to the include tag.
public static java.lang.String getLocalContentNodeCollectionName()
public static info.magnolia.cms.beans.runtime.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(info.magnolia.cms.core.Content page)
actpage
attribute to page
.
public static void setGlobalContentNode(info.magnolia.cms.core.Content node)
set ContentNode object in resources, scope:page.
node
- to be setpublic static void setLocalContentNode(info.magnolia.cms.core.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 |