public class RenderBean extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
PERMISSION_PROBLEM |
| Constructor and Description |
|---|
RenderBean(uk.ac.cam.caret.sakai.rwiki.service.api.model.RWikiObject rwo,
ToolRenderService toolRenderService,
uk.ac.cam.caret.sakai.rwiki.service.api.RWikiObjectService objectService,
boolean withBreadcrumbs)
Create new RenderBean from given RWikiObject
|
RenderBean(String name,
String defaultRealm,
ToolRenderService toolRenderService,
uk.ac.cam.caret.sakai.rwiki.service.api.RWikiObjectService objectService,
boolean withBreadcrumbs)
Create new RenderBean and get the chosen RWikiObject
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
getCanEdit() |
boolean |
getCanRead() |
String |
getCommentLevel() |
String |
getCommentPageLink() |
List |
getComments()
returns a list of comments that are render beans
|
String |
getEditCommentURL() |
String |
getEditUrl()
Returns an url that generate a view string to the current rwikiObject
|
boolean |
getExists()
Returns true if the underlying page exists.
|
boolean |
getHasContent()
Returns true if the page has content and it has length
|
String |
getListCommentsURL() |
String |
getListPageChatURL() |
String |
getListPresenceURL() |
String |
getListSpaceChatURL() |
String |
getLocalisedPageName()
The localised name of the rwikiObject
|
Integer |
getLocalisedPageNameLength()
The localised name of the rwikiObject
|
String |
getNewCommentURL() |
uk.ac.cam.caret.sakai.rwiki.service.api.RWikiObjectService |
getObjectService()
Get the RWikiObjectService
|
String |
getOpenPageChatURL() |
String |
getOpenSpaceChatURL() |
String |
getPreviewPage() |
String |
getPrintRenderedPage()
Render the current RWikiObject with print links
|
String |
getPublicRenderedPage()
Render the current RWikiObject with public links
|
String |
getRenderedPage()
Render the current RWikiObject
|
uk.ac.cam.caret.sakai.rwiki.service.api.model.RWikiObject |
getRwikiObject()
The current RWikiObject
|
ToolRenderService |
getToolRenderService()
Get the ToolRenderService
|
String |
printRenderedPage()
Render the current RWikiObject with print links
|
String |
printRenderPage(String name,
String defaultRealm,
boolean withBreadcrumbs)
Render the rwikiObject as a print page represented by the given name and
realm
|
String |
publicRenderedPage()
Render the current RWikiObject with public links
|
String |
publicRenderPage(String name,
String defaultRealm,
boolean withBreadcrumbs)
Render the rwikiObject as a public page represented by the given name and
realm
|
String |
renderPage()
Render the current RWikiObject
|
String |
renderPage(String name,
String defaultRealm)
Render the rwikiObject represented by the given name and realm
|
void |
setCanEdit(boolean canEdit) |
void |
setCanRead(boolean canRead) |
void |
setObjectService(uk.ac.cam.caret.sakai.rwiki.service.api.RWikiObjectService objectService)
Set the RWikiObjectService for this bean.
|
void |
setPreviewContent(String previewContent) |
void |
setRenderService(ToolRenderService toolRenderService)
Set the ToolRenderService for this bean.
|
public static final String PERMISSION_PROBLEM
public RenderBean(uk.ac.cam.caret.sakai.rwiki.service.api.model.RWikiObject rwo,
ToolRenderService toolRenderService,
uk.ac.cam.caret.sakai.rwiki.service.api.RWikiObjectService objectService,
boolean withBreadcrumbs)
rwo - the current RWikiObjectuser - the current usertoolRenderService - the ToolRenderServiceobjectService - the RWikiObjectServicepublic RenderBean(String name, String defaultRealm, ToolRenderService toolRenderService, uk.ac.cam.caret.sakai.rwiki.service.api.RWikiObjectService objectService, boolean withBreadcrumbs)
name - the name of the RWikiObject to renderuser - the current userdefaultRealm - the defaultRealm to globalise the name withtoolRenderService - the ToolRenderServiceobjectService - the RWikiObjectServicepublic uk.ac.cam.caret.sakai.rwiki.service.api.RWikiObjectService getObjectService()
public void setObjectService(uk.ac.cam.caret.sakai.rwiki.service.api.RWikiObjectService objectService)
objectService - The RWikiObjectService to use.public ToolRenderService getToolRenderService()
public void setRenderService(ToolRenderService toolRenderService)
toolRenderService - the ToolRenderService to use.public String getPreviewPage()
public String getRenderedPage()
public String getPublicRenderedPage()
public String getPrintRenderedPage()
public String renderPage()
public String publicRenderedPage()
public String printRenderedPage()
public String renderPage(String name, String defaultRealm)
name - a possible non-globalised namedefaultRealm - the default realm of that should be globalised againstpublic String publicRenderPage(String name, String defaultRealm, boolean withBreadcrumbs)
name - a possible non-globalised namedefaultRealm - the default space of that should be globalised againstpublic String printRenderPage(String name, String defaultRealm, boolean withBreadcrumbs)
name - a possible non-globalised namedefaultRealm - the default space of that should be globalised againstpublic uk.ac.cam.caret.sakai.rwiki.service.api.model.RWikiObject getRwikiObject()
public String getLocalisedPageName()
public Integer getLocalisedPageNameLength()
public String getEditUrl()
public boolean getExists()
public boolean getHasContent()
public List getComments()
public String getCommentPageLink()
public boolean getCanEdit()
public void setCanEdit(boolean canEdit)
canEdit - The canEdit to set.public boolean getCanRead()
public void setCanRead(boolean canRead)
canRead - The canRead to set.public String getListCommentsURL()
public String getNewCommentURL()
public String getEditCommentURL()
public String getCommentLevel()
public String getListPresenceURL()
public String getOpenPageChatURL()
public String getOpenSpaceChatURL()
public String getListPageChatURL()
public String getListSpaceChatURL()
public void setPreviewContent(String previewContent)
previewContent - the previewContent to setCopyright © 2003-2014 Sakai Project. All Rights Reserved.