public interface WikiServiceAsync
WikiService with an additional
AsyncCallback parameter. This is specific to GWT's architecture.| Modifier and Type | Method and Description |
|---|---|
void |
getAttachment(AttachmentReference attachmentReference,
com.google.gwt.user.client.rpc.AsyncCallback<Attachment> async)
Returns information about the referenced attachment.
|
void |
getAttachments(WikiPageReference documentReference,
com.google.gwt.user.client.rpc.AsyncCallback<List<Attachment>> async)
Returns all the attachments from the referred page.
|
void |
getEntityConfig(EntityReference origin,
ResourceReference destination,
com.google.gwt.user.client.rpc.AsyncCallback<EntityConfig> async)
Creates an entity link configuration object (URL, reference) for a link with the specified origin and
destination.
|
void |
getImageAttachments(WikiPageReference documentReference,
com.google.gwt.user.client.rpc.AsyncCallback<List<Attachment>> async)
Returns all the image attachments from the referred page.
|
void |
getMatchingPages(String wikiName,
String keyword,
int start,
int count,
com.google.gwt.user.client.rpc.AsyncCallback<List<WikiPage>> async) |
void |
getPageNames(String wikiName,
String spaceName,
com.google.gwt.user.client.rpc.AsyncCallback<List<String>> async)
Returns the list of the page names from a given space and a given wiki.
|
void |
getRecentlyModifiedPages(String wikiName,
int start,
int count,
com.google.gwt.user.client.rpc.AsyncCallback<List<WikiPage>> async) |
void |
getSpaceNames(String wikiName,
com.google.gwt.user.client.rpc.AsyncCallback<List<String>> async)
Returns a list of all spaces names in the specified wiki.
|
void |
getUploadURL(WikiPageReference documentReference,
com.google.gwt.user.client.rpc.AsyncCallback<String> async)
Returns the URL to be used to upload an attachment to the specified document.
|
void |
getVirtualWikiNames(com.google.gwt.user.client.rpc.AsyncCallback<List<String>> async)
Returns a list containing the names of all wikis.
|
void |
isMultiWiki(com.google.gwt.user.client.rpc.AsyncCallback<Boolean> async)
Deprecated.
Multiwiki is on by default, starting with XWiki 5.0.
|
void |
parseLinkReference(String linkReferenceAsString,
EntityReference baseReference,
com.google.gwt.user.client.rpc.AsyncCallback<ResourceReference> async)
Parses the given link reference and extracts a reference to the linked resource.
|
@Deprecated void isMultiWiki(com.google.gwt.user.client.rpc.AsyncCallback<Boolean> async)
async - object used for asynchronous communication between server and clientvoid getVirtualWikiNames(com.google.gwt.user.client.rpc.AsyncCallback<List<String>> async)
async - async object used for asynchronous communication between server and clientvoid getSpaceNames(String wikiName, com.google.gwt.user.client.rpc.AsyncCallback<List<String>> async)
wikiName - the name of the wiki to search for spaces. If this is null the current wiki will be usedasync - object used for asynchronous communication between server and clientvoid getPageNames(String wikiName, String spaceName, com.google.gwt.user.client.rpc.AsyncCallback<List<String>> async)
wikiName - the name of the wiki. Pass null if the current wiki should be used insteadspaceName - the name of the spaceasync - object used for asynchronous communication between server and clientvoid getRecentlyModifiedPages(String wikiName, int start, int count, com.google.gwt.user.client.rpc.AsyncCallback<List<WikiPage>> async)
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 returnasync - object used for asynchronous communication between server and client, to return on success the
recently count modified pages of the current user, starting from position startvoid getMatchingPages(String wikiName, String keyword, int start, int count, com.google.gwt.user.client.rpc.AsyncCallback<List<WikiPage>> async)
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 forasync - object used for asynchronous communication between server and client, to return on success the
count pages whose full name or title match the keyword, starting from position startvoid getEntityConfig(EntityReference origin, ResourceReference destination, com.google.gwt.user.client.rpc.AsyncCallback<EntityConfig> async)
EntityConfig is relative to
the link origin.origin - the origin of the linkdestination - the destination of the linkasync - object used for asynchronous communication between server and client.void getAttachment(AttachmentReference attachmentReference, com.google.gwt.user.client.rpc.AsyncCallback<Attachment> async)
EntityReference#getFileName() name
will be cleaned to match the attachment names cleaning rules, and the returned attachment serialized reference
and access URL will be generated with the cleaned name.attachmentReference - an attachment referenceasync - object used for asynchronous communication between server and client, to return, on success, an
Attachment containing the serialized reference and the access URL of the specified attachment,
or null in case the attachment was not foundvoid getImageAttachments(WikiPageReference documentReference, com.google.gwt.user.client.rpc.AsyncCallback<List<Attachment>> async)
documentReference - a reference to the document to get the images fromasync - object used for asynchronous communication between server and clientvoid getAttachments(WikiPageReference documentReference, com.google.gwt.user.client.rpc.AsyncCallback<List<Attachment>> async)
documentReference - a reference to the document to get the attachments fromasync - object used for asynchronous communication between server and clientvoid getUploadURL(WikiPageReference documentReference, com.google.gwt.user.client.rpc.AsyncCallback<String> async)
documentReference - the document for which to retrieve the upload URLasync - object used for asynchronous communication between server and clientvoid parseLinkReference(String linkReferenceAsString, EntityReference baseReference, com.google.gwt.user.client.rpc.AsyncCallback<ResourceReference> async)
linkReferenceAsString - a serialized link referencebaseReference - the entity reference used to resolve the linked resource referenceasync - object used for asynchronous communication between server and clientCopyright © 2004–2016 XWiki. All rights reserved.