|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PresentationContext
Representation of the PresentationContext. The presentation context provides the context in which webmanager jsps are executed and provides access to lots of information.
| Field Summary | |
|---|---|
static java.lang.String |
PRESENTATION_CONTEXT_KEY
The default location for the presentation context in the http request. |
| Method Summary | |
|---|---|
java.lang.Object |
getBaseObject()
Return object at the top of the stack. |
Page |
getBlock()
Return Last rendered block. |
java.lang.String |
getChannel()
Return the channel for this presentationcontext. |
Element |
getElement()
Return Element of this PresentationContext. |
ElementHolder |
getElementHolder()
Return the last elementHolder from the stack. |
Form |
getForm()
Return Form of this PresentationContext. |
java.lang.Object |
getInstance(int id,
java.lang.Class targetClass)
Return a wrapper of class targetClass for a particular object. |
Mailing |
getMailing()
Return Mailing of this PresentationContext. |
MediaItem |
getMediaItem()
Return MediaItem of this PresentationContext. |
MediaItemVersion |
getMediaItemVersion()
Return MediaItem metadata of this PresentationContext. |
Page |
getPage()
Return Page of this PresentationContext. |
PageModel |
getPageModel()
Return PageModel of this PresentationContext. |
PagePart |
getPagePart()
Return PagePart of this PresentationContext. |
PageVersion |
getPageVersion()
Return PageVersion of this PresentationContext. |
Form |
getParentForm()
Return ParentForm of this PresentationContext. |
Presentable |
getPresentable()
Return Presentable of this PresentationContext. |
Presentation |
getPresentation()
Return Presentation of this PresentationContext. |
java.lang.String |
getPresentationQs()
Return History of objects and thier presentation, separated by _ and #. |
ResourceEntity |
getResourceEntity()
Return ResourceEntity of this PresentationContext. |
ResourceInstance |
getResourceInstance()
Return ResourceInstance of this PresentationContext. |
Website |
getWebsite()
Return Website of this PresentationContext. |
boolean |
isAuthorized()
Return true if the user may view the page in the preview mode. |
boolean |
isDumpRequest()
Return true if the request is from the WebManager dumper. |
boolean |
isInlineRequest()
Return true if the user is using the webmanager inline editing mode. |
boolean |
isPreviewRequest()
Return true if the user is using the webmanager preview mode. |
boolean |
isSecureRequest()
Return true if the request is from https. |
boolean |
isTextVersionRequest()
Return true if a textversion is requested. |
boolean |
isWebsiteRequest()
Return true if the request is a website request (starting with /web). |
void |
pop()
Pop the top object and presentation. |
void |
push(java.lang.Object object,
Presentation presentation)
Add an object and a presentation to the stack. |
void |
restorePageVersion()
Undoes the last setPageVersion() call. |
void |
setMailing(Mailing mailing)
Return set the mailing. |
void |
setMediaItem(MediaItem mediaItem)
Return set the mediaItem. |
void |
setMediaItemVersion(MediaItemVersion mediaItem)
Return set the mediaItem. |
void |
setPageModel(PageModel pageModel)
Sets the pageModel for this PresentationContext. |
void |
setPageVersion(PageVersion pageVersion,
Presentation presentation)
Return set the pageVersion and page and adds the presentation to the stack. |
void |
setResourceReference(ResourceEntity resourceEntity,
ResourceInstance resourceInstance)
Return set the resourceEntity and resourceInstance. |
| Field Detail |
|---|
static final java.lang.String PRESENTATION_CONTEXT_KEY
| Method Detail |
|---|
void push(java.lang.Object object,
Presentation presentation)
object - presentation - void pop()
java.lang.Object getBaseObject()
java.lang.Object getInstance(int id,
java.lang.Class targetClass)
id - object idtargetClass - the wrapper class that should be instantiated.
PageVersion getPageVersion()
PageModel getPageModel()
Page getPage()
PagePart getPagePart()
Presentation getPresentation()
Presentable getPresentable()
ElementHolder getElementHolder()
Element getElement()
MediaItem getMediaItem()
MediaItemVersion getMediaItemVersion()
Website getWebsite()
Mailing getMailing()
ResourceInstance getResourceInstance()
ResourceEntity getResourceEntity()
Form getForm()
Page getBlock()
Form getParentForm()
java.lang.String getPresentationQs()
boolean isDumpRequest()
boolean isSecureRequest()
boolean isPreviewRequest()
boolean isInlineRequest()
java.lang.String getChannel()
boolean isWebsiteRequest()
boolean isTextVersionRequest()
boolean isAuthorized()
void setPageVersion(PageVersion pageVersion,
Presentation presentation)
void restorePageVersion()
void setPageModel(PageModel pageModel)
void setMediaItem(MediaItem mediaItem)
void setMediaItemVersion(MediaItemVersion mediaItem)
void setMailing(Mailing mailing)
void setResourceReference(ResourceEntity resourceEntity,
ResourceInstance resourceInstance)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||