public class ViewBean extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ACTION_PARAM
Parameter name for the parameter indicating what action is required
|
protected static String |
ACTION_URL_ENCODED |
protected static String |
DISBLE_BREADCRUMBS_ENCODED |
static String |
MAIN_PANEL
Value of the parameter panel that indicates the main panel
|
protected static String |
MAIN_URL_ENCODED |
static String |
PAGE_NAME_PARAM
Parameter name for the paramater indicating which pageName to view, edit
etc.
|
protected static String |
PAGE_URL_ENCODED |
protected static String |
PAGENAME_URL_ENCODED |
static String |
PANEL_PARAM
Parameter name for the parameter indicating which panel to use
|
protected static String |
PANEL_URL_ENCODED |
static String |
PARAM_BREADCRUMB_NAME
Parameter name for the paramater indicating which pageName to view, edit
etc.
|
protected static String |
REALM_URL_ENCODED |
protected static String |
SEARCH_URL_ENCODED |
| Constructor and Description |
|---|
ViewBean()
Simple constructor that creates an empty view bean.
|
ViewBean(String name,
String defaultSpace)
Creates a ViewBean and set's the interested page name and local space
|
| Modifier and Type | Method and Description |
|---|---|
String |
getActionUrl(String pageName,
WikiPageAction action,
boolean breadcrumbs)
Given a WikiPageAction return an url to the requested page (with
breadcrumbs on or off) for performing that action.
|
String |
getActionUrl(String pageName,
WikiPageAction action,
Map parameters)
Given a WikiPageAction return an url to the requested page with the
additional parameters being set.
|
String |
getActionUrl(WikiPageAction action)
Given a WikiPageAction return an url to the current page for performing
that action.
|
String |
getActionUrl(WikiPageAction action,
boolean breadcrumbs)
Given a WikiPageAction return an url to the current page (with
breadcrumbs on or off) for performing that action.
|
String |
getActionUrl(WikiPageAction action,
Map parameters)
Given a WikiPageAction return an url to the current page with the
additional parameters being set.
|
String |
getAnchor()
Get the current anchor name
|
String |
getBaseAccessUrl() |
String |
getEditCommentURL() |
String |
getEditUrl()
Returns a string representation of an url to edit the current page
|
String |
getEditUrl(String name)
Returns a string representation of an url to edit the passed in page.
|
String |
getExportUrl()
Returns a public view URL with no breadcrumbs
|
String |
getHistoryUrl() |
String |
getHistoryUrl(String name) |
String |
getInfoUrl()
Returns a string representation of an url to view information about the
current page
|
String |
getInfoUrl(String name)
Returns a string representation of an url to view information about the
passed in page
|
String |
getListCommentsURL() |
String |
getListPageChatURL() |
String |
getListPresenceURL() |
String |
getListSpaceChatURL() |
String |
getLocalName()
The page name localised against the localSpace
|
String |
getLocalSpace()
The localSpace
|
String |
getNewCommentURL() |
String |
getOpenPageChatURL() |
String |
getOpenSpaceChatURL() |
String |
getPageName()
The Globalised Page Name
|
String |
getPageSpace()
The space of that the page is in
|
protected String |
getPageUrl(String pageName,
String action)
Given a page name and an action return an url that represents it.
|
protected String |
getPageUrl(String pageName,
String action,
boolean withBreadcrumbs)
Given a page name and an action return an url that represents it.
|
protected String |
getPageUrl(String pageName,
String action,
Map params) |
String |
getPreferencesUrl() |
String |
getPrintViewUrl()
Returns a print view URL with no breadcrumbs
|
String |
getPrintViewUrl(boolean withBreadcrumbs)
Returns a string representation of an url to perma view the current page
|
String |
getPublicViewUrl()
Returns a public view URL with no breadcrumbs
|
String |
getPublicViewUrl(boolean withBreadcrumbs)
Returns a string representation of an url to perma view the current page
|
String |
getRssAccessUrl() |
String |
getSearch()
The current search criteria XXX This shouldn't be here!
|
protected String |
getSearchUrl()
Creates an appropriate url for searching for the given criteria.
|
String |
getViewUrl()
Returns a string representation of an url to view the current page
|
String |
getViewUrl(String name)
Returns a string representation of an url to view the passed in page
|
void |
setAnchor(String anchor)
Set the current anchor
|
void |
setLocalSpace(String localSpace)
Set the localSpace
|
void |
setPageName(String pageName)
Set the globalised page name
|
void |
setSearch(String search)
Set the current search criteria XXX This shouldn't be here!
|
static String |
urlEncode(String toEncode)
Takes a string to encode and encodes it as a UTF-8 URL-Encoded string.
|
public static final String PANEL_PARAM
public static final String MAIN_PANEL
public static final String ACTION_PARAM
public static final String PAGE_NAME_PARAM
public static final String PARAM_BREADCRUMB_NAME
protected static final String PAGENAME_URL_ENCODED
protected static final String DISBLE_BREADCRUMBS_ENCODED
protected static final String ACTION_URL_ENCODED
protected static final String PANEL_URL_ENCODED
protected static final String MAIN_URL_ENCODED
protected static final String SEARCH_URL_ENCODED
protected static final String PAGE_URL_ENCODED
protected static final String REALM_URL_ENCODED
public ViewBean()
public String getExportUrl()
public String getPublicViewUrl()
public String getPublicViewUrl(boolean withBreadcrumbs)
public String getViewUrl()
public String getViewUrl(String name)
name - possibly non-globalised name to viewpublic String getEditUrl()
public String getEditUrl(String name)
name - possibly non-globalised namepublic String getInfoUrl()
public String getInfoUrl(String name)
name - possibly non-globalised namepublic String getHistoryUrl()
public String getActionUrl(WikiPageAction action)
action - WikiPageAction to performpublic String getActionUrl(WikiPageAction action, boolean breadcrumbs)
action - WikiPageAction to performbreadcrumbs - false if breadcrumbs should be disabledpublic String getActionUrl(String pageName, WikiPageAction action, boolean breadcrumbs)
action - WikiPageAction to performbreadcrumbs - false if breadcrumbs should be disabledpublic String getActionUrl(WikiPageAction action, Map parameters)
action - WikiPageAction to performparameters - Additional query parameters to attachpublic String getActionUrl(String pageName, WikiPageAction action, Map parameters)
pageName - globalised pagename to perform action onaction - WikiPageAction to performparameters - Additional query parameters to attachprotected String getPageUrl(String pageName, String action)
pageName - globalised pagename to perform action onaction - name of action to performprotected String getPageUrl(String pageName, String action, boolean withBreadcrumbs)
pageName - globalised pagename to perform action onaction - name of action to performwithBreadcrumbs - if false, breadcrumb disable is propagatedprotected String getSearchUrl()
public String getPageName()
public void setPageName(String pageName)
pageName - globalised page namepublic String getLocalName()
public String getLocalSpace()
public void setLocalSpace(String localSpace)
localSpace - the new localSpacepublic String getPageSpace()
public static String urlEncode(String toEncode)
toEncode - string to encode.public void setAnchor(String anchor)
anchor - anchor to setpublic String getAnchor()
public String getSearch()
public void setSearch(String search)
search - the search criteriapublic String getNewCommentURL()
public String getEditCommentURL()
public String getListCommentsURL()
public String getListPresenceURL()
public String getOpenPageChatURL()
public String getOpenSpaceChatURL()
public String getListPageChatURL()
public String getListSpaceChatURL()
public String getBaseAccessUrl()
public String getRssAccessUrl()
public String getPreferencesUrl()
public String getPrintViewUrl()
public String getPrintViewUrl(boolean withBreadcrumbs)
Copyright © 2003-2014 Sakai Project. All Rights Reserved.