public interface RWikiObjectService extends EntityProducer, EntityTransferrer, ContextObserver
| Modifier and Type | Field and Description |
|---|---|
static String |
APPLICATION_ID
The type string for this application: should not change over time as it may be stored in various parts of persistent entities.
|
static String |
EVENT_RESOURCE_ADD
Name of the event when creating a resource.
|
static String |
EVENT_RESOURCE_READ
Name of the event when reading a resource.
|
static String |
EVENT_RESOURCE_REMOVE
Name of the event when removing a resource.
|
static String |
EVENT_RESOURCE_WRITE
Name of the event when writing a resource.
|
static String |
REFERENCE_LABEL
This string starts the references to resources in this service.
|
static String |
REFERENCE_ROOT
This string starts the references to resources in this service.
|
static String |
SMALL_CHANGE_IN_THREAD |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkAdmin(RWikiObject rwo)
check for admin permission
|
boolean |
checkRead(RWikiObject rwo)
Check for read permission
|
boolean |
checkUpdate(RWikiObject rwo)
check for update permission
|
List |
createListProxy(List commentsList,
ObjectProxy lop)
Create a list proxy based on the List and Object Proxy
|
RWikiObject |
createNewRWikiCurrentObject()
Creates a new rwiki Current Object according to the implementation
|
RWikiPermissions |
createNewRWikiPermissionsImpl()
Creates a new RWiki Permissions Bean
|
String |
createReference(String pageName)
generates a valid entity reference from the page name
|
boolean |
exists(String name,
String space)
Does the page exist
|
List |
findAllChangedSince(Date time,
String basepath)
Find all the changes under this point and under since the time specified
|
List |
findAllPageNames()
Find all pages in the database just reture
|
List |
findChangedSince(Date since,
String realm)
A list of pages that have changed since (current versions)
|
List |
findReferencingPages(String name)
Finds pages that reference the given page name
|
List |
findRWikiHistoryObjects(RWikiObject reference)
get a list of all previous versions as RWikiHistoryObjects
|
List |
findRWikiHistoryObjectsInReverse(RWikiObject rwo)
Finds the history objects sorted in reverse order
|
List |
findRWikiSubPages(String globalParentPageName)
get list of subpages of the supplied page.
|
PageLinkRenderer |
getComponentPageLinkRender(String pageSpace,
boolean withBreadCrumb)
gets a component page link renderer
|
Entity |
getEntity(RWikiObject rwo)
fetches the entity based on the RWikiObject
|
Map |
getHandlers()
A Map containing EntityHandlers for the Service, Each entity handler
handles a subtype
|
Reference |
getReference(RWikiObject rwo)
Fetches the Reference Object from the Entity manager based on the
RWikiObject
|
RWikiHistoryObject |
getRWikiHistoryObject(RWikiObject refernceObject,
int revision)
Get a previous version
|
RWikiCurrentObject |
getRWikiObject(RWikiObject reference)
Gets the object based on the ID.
|
RWikiCurrentObject |
getRWikiObject(String name,
String realm)
Gets the current object
|
RWikiCurrentObject |
getRWikiObject(String name,
String realm,
RWikiObject ignore,
String templateName)
Gets the current object using a named template if it does not exist
|
void |
revert(String name,
String realm,
Date version,
int revision)
Revert current revision to a named revision, creates a new revision
|
List |
search(String criteria,
String realm)
Search on current objects
|
void |
update(String name,
String realm,
Date version,
RWikiPermissions permissions)
Update the name page's permissions
|
void |
update(String name,
String realm,
Date version,
String content)
Update the name page, no permissions
|
void |
update(String name,
String realm,
Date version,
String content,
RWikiPermissions permissions)
Update the named page, with permissions
|
void |
updateNewComment(String name,
String realm,
Date version,
String content)
Updates and creates a new comment on the page
|
archive, getEntity, getEntityAuthzGroups, getEntityDescription, getEntityResourceProperties, getEntityUrl, getHttpAccess, getLabel, merge, parseEntityReference, willArchiveMergemyToolIds, transferCopyEntities, transferCopyEntitiescontextCreated, contextDeleted, contextUpdated, myToolIdsstatic final String APPLICATION_ID
static final String REFERENCE_ROOT
static final String REFERENCE_LABEL
static final String EVENT_RESOURCE_ADD
static final String EVENT_RESOURCE_READ
static final String EVENT_RESOURCE_WRITE
static final String EVENT_RESOURCE_REMOVE
static final String SMALL_CHANGE_IN_THREAD
RWikiCurrentObject getRWikiObject(String name, String realm) throws PermissionException
name - realm - PermissionExceptionRWikiCurrentObject getRWikiObject(String name, String realm, RWikiObject ignore, String templateName) throws PermissionException
name - realm - the page space the page is in, used to localise and globalise the
nametemplateName - PermissionExceptionRWikiCurrentObject getRWikiObject(RWikiObject reference)
reference - the reference objectList search(String criteria, String realm) throws PermissionException
criteria - realm - PermissionExceptionvoid update(String name, String realm, Date version, String content, RWikiPermissions permissions) throws PermissionException, VersionException
name - realm - version - content - permissions - PermissionExceptionVersionExceptionvoid update(String name, String realm, Date version, String content) throws PermissionException, VersionException
name - realm - version - content - PermissionExceptionVersionExceptionvoid update(String name, String realm, Date version, RWikiPermissions permissions) throws PermissionException, VersionException
name - realm - version - permissions - PermissionExceptionVersionExceptionboolean exists(String name, String space)
name - A possibly non-globalised page namespace - Default space to globalise toList findChangedSince(Date since, String realm)
since - realm - List findReferencingPages(String name)
name - void revert(String name, String realm, Date version, int revision)
name - realm - version - revision - RWikiHistoryObject getRWikiHistoryObject(RWikiObject refernceObject, int revision)
referenceObject - the Rwiki object whore rwikiobjectid field will be used to locate
the revisionrevision - List findRWikiHistoryObjects(RWikiObject reference)
id - List findRWikiHistoryObjectsInReverse(RWikiObject rwo)
rwo - List findRWikiSubPages(String globalParentPageName)
globalParentPageName - is the page on which we want to find sub pages. THIS IS A GLOBAL
NAME. DONT CONFUSE WITH A LOCAL NAMEvoid updateNewComment(String name, String realm, Date version, String content) throws PermissionException, VersionException
name - realm - version - content - PermissionExceptionVersionExceptionList createListProxy(List commentsList, ObjectProxy lop)
commentsList - lop - RWikiObject createNewRWikiCurrentObject()
RWikiPermissions createNewRWikiPermissionsImpl()
Entity getEntity(RWikiObject rwo)
rwo - Reference getReference(RWikiObject rwo)
rwo - Map getHandlers()
List findAllChangedSince(Date time, String basepath)
time - the time after which to consider changesbasepath - the base pathboolean checkRead(RWikiObject rwo)
rwo - boolean checkUpdate(RWikiObject rwo)
rwo - boolean checkAdmin(RWikiObject rwo)
rwo - List findAllPageNames()
String createReference(String pageName)
pageName - PageLinkRenderer getComponentPageLinkRender(String pageSpace, boolean withBreadCrumb)
pageSpace - Copyright © 2003–2016 Sakai Project. All rights reserved.