@Role
@RemoteServiceRelativePath(value="WikiService.gwtrpc")
public interface WikiService
extends com.google.gwt.user.client.rpc.RemoteService
NOTE: This component interface should be split in multiple domain specific interfaces. Don't add any more methods!
| Modifier and Type | Method and Description |
|---|---|
Attachment |
getAttachment(AttachmentReference attachmentReference)
Returns information about the referenced attachment.
|
List<Attachment> |
getAttachments(WikiPageReference documentReference)
Returns all the attachments from the referred page.
|
EntityConfig |
getEntityConfig(EntityReference origin,
ResourceReference destination)
Creates an entity link configuration object (URL, link reference) for a link with the specified origin and
destination.
|
List<Attachment> |
getImageAttachments(WikiPageReference documentReference)
Returns all the image attachments from the referred page.
|
List<WikiPage> |
getMatchingPages(String wikiName,
String keyword,
int start,
int count) |
List<String> |
getPageNames(String wikiName,
String spaceName) |
List<WikiPage> |
getRecentlyModifiedPages(String wikiName,
int start,
int count) |
List<String> |
getSpaceNames(String wikiName) |
String |
getUploadURL(WikiPageReference documentReference) |
List<String> |
getVirtualWikiNames() |
Boolean |
isMultiWiki()
Deprecated.
Multiwiki is on by default, starting with XWiki 5.0.
|
ResourceReference |
parseLinkReference(String linkReference,
EntityReference baseReference)
Parses the given link reference and extracts a reference to the linked resource.
|
@Deprecated Boolean isMultiWiki()
true if we are in a multiwiki environment, false otherwiseList<String> getVirtualWikiNames()
List<String> getSpaceNames(String wikiName)
wikiName - the name of the wiki to search for spaces. If this is null the current wiki will be usedList<String> getPageNames(String wikiName, String spaceName)
wikiName - the name of the wiki. Pass null if the current wiki should be used insteadspaceName - the name of the spaceList<WikiPage> getRecentlyModifiedPages(String wikiName, int start, int count)
wikiName - the name of the wiki where to look for modified pagesstart - the start index of the list of pages to returncount - the number of pages to returncount modified pages of the current user from the specified wiki, starting from
position startList<WikiPage> getMatchingPages(String wikiName, String keyword, int start, int count)
wikiName - the wiki where to run the searchstart - the start index of the list of pages to returncount - the number of pages to returnkeyword - the keyword to search the pages forcount pages whose full name or title match the keyword, starting from position startEntityConfig getEntityConfig(EntityReference origin, ResourceReference destination)
EntityConfig is relative to the link origin.origin - the origin of the linkdestination - the destination of the linkAttachment getAttachment(AttachmentReference attachmentReference)
attachmentReference - an attachment referenceAttachment containing the serialized reference and the access URL of the specified attachment,
or null in case the attachment was not foundList<Attachment> getImageAttachments(WikiPageReference documentReference)
documentReference - a reference to the document to get the images fromList<Attachment> getAttachments(WikiPageReference documentReference)
documentReference - a reference to the document to get the attachments fromString getUploadURL(WikiPageReference documentReference)
documentReference - a document referenceResourceReference parseLinkReference(String linkReference, EntityReference baseReference)
linkReference - a serialized link referencebaseReference - the entity reference used to resolve the linked resource referenceCopyright © 2004–2016 XWiki. All rights reserved.