|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@Role @RemoteServiceRelativePath(value="WikiService.gwtrpc") public interface WikiService
The service interface used on the server.
NOTE: This component interface should be split in multiple domain specific interfaces. Don't add any more methods!
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
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 used
List<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 space
List<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 return
count modified pages of the current user from the specified wiki, starting from
position start
List<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 for
count pages whose full name or title match the keyword, starting from position start
EntityConfig getEntityConfig(EntityReference origin,
ResourceReference destination)
EntityConfig is relative to the link origin.
origin - the origin of the linkdestination - the destination of the link
Attachment getAttachment(AttachmentReference attachmentReference)
attachmentReference - an attachment reference
Attachment 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 from
List<Attachment> getAttachments(WikiPageReference documentReference)
documentReference - a reference to the document to get the attachments from
String getUploadURL(WikiPageReference documentReference)
documentReference - a document reference
ResourceReference parseLinkReference(String linkReference,
EntityReference baseReference)
linkReference - a serialized link referencebaseReference - the entity reference used to resolve the linked resource reference
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||