public class WikiServiceAsyncCacheProxy extends Object implements WikiServiceAsync
WikiServiceAsync. This proxy is used to store on the client a set of values from the server
that cannot change without server restart, therefore without the reload of the page that holds the reference to the
WikiService.| Constructor and Description |
|---|
WikiServiceAsyncCacheProxy(WikiServiceAsync service)
Creates a new cache proxy for the given service.
|
| 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 base,
ResourceReference target,
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)
Checks if the editor is running in a multiwiki environment.
|
void |
parseLinkReference(String linkReference,
EntityReference baseReference,
com.google.gwt.user.client.rpc.AsyncCallback<ResourceReference> async)
Parses the given link reference and extracts a reference to the linked resource.
|
public WikiServiceAsyncCacheProxy(WikiServiceAsync service)
service - the service to be cached.public void getPageNames(String wikiName, String spaceName, com.google.gwt.user.client.rpc.AsyncCallback<List<String>> async)
WikiServiceAsyncgetPageNames in interface WikiServiceAsyncwikiName - 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 clientpublic void getRecentlyModifiedPages(String wikiName, int start, int count, com.google.gwt.user.client.rpc.AsyncCallback<List<WikiPage>> async)
getRecentlyModifiedPages in interface WikiServiceAsyncwikiName - 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 startpublic void getMatchingPages(String wikiName, String keyword, int start, int count, com.google.gwt.user.client.rpc.AsyncCallback<List<WikiPage>> async)
getMatchingPages in interface WikiServiceAsyncwikiName - the wiki where to run the searchkeyword - the keyword to search the pages forstart - 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
count pages whose full name or title match the keyword, starting from position startpublic void getSpaceNames(String wikiName, com.google.gwt.user.client.rpc.AsyncCallback<List<String>> async)
WikiServiceAsyncgetSpaceNames in interface WikiServiceAsyncwikiName - 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 clientpublic void getVirtualWikiNames(com.google.gwt.user.client.rpc.AsyncCallback<List<String>> async)
WikiServiceAsyncgetVirtualWikiNames in interface WikiServiceAsyncasync - async object used for asynchronous communication between server and clientpublic void isMultiWiki(com.google.gwt.user.client.rpc.AsyncCallback<Boolean> async)
WikiServiceAsyncisMultiWiki in interface WikiServiceAsyncasync - object used for asynchronous communication between server and clientpublic void getEntityConfig(EntityReference base, ResourceReference target, com.google.gwt.user.client.rpc.AsyncCallback<EntityConfig> async)
WikiServiceAsyncEntityConfig is relative to
the link origin.getEntityConfig in interface WikiServiceAsyncbase - the origin of the linktarget - the destination of the linkasync - object used for asynchronous communication between server and client.public void getAttachment(AttachmentReference attachmentReference, com.google.gwt.user.client.rpc.AsyncCallback<Attachment> async)
WikiServiceAsyncEntityReference#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.getAttachment in interface WikiServiceAsyncattachmentReference - 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 foundpublic void getImageAttachments(WikiPageReference documentReference, com.google.gwt.user.client.rpc.AsyncCallback<List<Attachment>> async)
WikiServiceAsyncgetImageAttachments in interface WikiServiceAsyncdocumentReference - a reference to the document to get the images fromasync - object used for asynchronous communication between server and clientpublic void getAttachments(WikiPageReference documentReference, com.google.gwt.user.client.rpc.AsyncCallback<List<Attachment>> async)
WikiServiceAsyncgetAttachments in interface WikiServiceAsyncdocumentReference - a reference to the document to get the attachments fromasync - object used for asynchronous communication between server and clientpublic void getUploadURL(WikiPageReference documentReference, com.google.gwt.user.client.rpc.AsyncCallback<String> async)
WikiServiceAsyncgetUploadURL in interface WikiServiceAsyncdocumentReference - the document for which to retrieve the upload URLasync - object used for asynchronous communication between server and clientpublic void parseLinkReference(String linkReference, EntityReference baseReference, com.google.gwt.user.client.rpc.AsyncCallback<ResourceReference> async)
WikiServiceAsyncparseLinkReference in interface WikiServiceAsynclinkReference - a serialized link referencebaseReference - the entity reference used to resolve the linked resource referenceasync - object used for asynchronous communication between server and clientCopyright © 2004–2017 XWiki. All rights reserved.