public class HistoryBean extends ViewBean
| Modifier and Type | Field and Description |
|---|---|
static String |
LEFT_PARAM
Parameter name for requesting a left version for a diff.
|
static String |
REVISION_PARAM
Parameter name for requesting a revision.
|
static String |
RIGHT_PARAM
Parameter name for requesting a right version for a diff.
|
static String |
VERSION_PARAM
Parameter name for version.
|
ACTION_PARAM, ACTION_URL_ENCODED, DISBLE_BREADCRUMBS_ENCODED, MAIN_PANEL, MAIN_URL_ENCODED, PAGE_NAME_PARAM, PAGE_URL_ENCODED, PAGENAME_URL_ENCODED, PANEL_PARAM, PANEL_URL_ENCODED, PARAM_BREADCRUMB_NAME, REALM_URL_ENCODED, SEARCH_URL_ENCODED| Constructor and Description |
|---|
HistoryBean() |
HistoryBean(uk.ac.cam.caret.sakai.rwiki.service.api.model.RWikiObject rwikiObject,
String defaultRealm)
Creates a HistoryBean using the rwikiObject to fill most of it's fields
|
HistoryBean(String pageName,
String defaultRealm,
int defaultInterestedRevision,
long time)
Creates a HistoryBean
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDiffToCurrentUrl()
Using the currently set interestedRevision returns an url that will
generate a diff to the current revision from the interested revision
|
String |
getDiffToPreviousUrl()
Using the currently set interestedRevision returns an url that will
generate a diff from that revision to it's previous revision.
|
int |
getInterestedRevision()
The currently set interestedRevision
|
String |
getRevertToRevisionUrl()
Using the currently set interestedRevision returns an url that will cause
a revert to that revision.
|
String |
getViewRevisionUrl()
Using the currently set interestedRevision returns an url that will
generate a view of that revision.
|
void |
setInterestedRevision(int interestedRevision)
Sets the currently interestedRevision
|
getActionUrl, getActionUrl, getActionUrl, getActionUrl, getActionUrl, getAnchor, getBaseAccessUrl, getEditCommentURL, getEditUrl, getEditUrl, getExportUrl, getHistoryUrl, getHistoryUrl, getInfoUrl, getInfoUrl, getListCommentsURL, getListPageChatURL, getListPresenceURL, getListSpaceChatURL, getLocalName, getLocalSpace, getNewCommentURL, getOpenPageChatURL, getOpenSpaceChatURL, getPageName, getPageSpace, getPageUrl, getPageUrl, getPageUrl, getPreferencesUrl, getPrintViewUrl, getPrintViewUrl, getPublicViewUrl, getPublicViewUrl, getRssAccessUrl, getSearch, getSearchUrl, getViewUrl, getViewUrl, setAnchor, setLocalSpace, setPageName, setSearch, urlEncodepublic static final String VERSION_PARAM
VersionException
public static final String LEFT_PARAM
public static final String RIGHT_PARAM
public static final String REVISION_PARAM
public HistoryBean()
public HistoryBean(uk.ac.cam.caret.sakai.rwiki.service.api.model.RWikiObject rwikiObject,
String defaultRealm)
rwikiObject - exemplardefaultRealm - the defaultRealmpublic String getDiffToCurrentUrl()
public String getDiffToPreviousUrl()
public String getViewRevisionUrl()
public String getRevertToRevisionUrl()
public int getInterestedRevision()
public void setInterestedRevision(int interestedRevision)
interestedRevision - to setCopyright © 2003-2014 Sakai Project. All Rights Reserved.