|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xwiki.gwt.wysiwyg.client.wiki.WikiServiceAsyncCacheProxy
public class WikiServiceAsyncCacheProxy
Cache proxy for 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 Summary | |
|---|---|
WikiServiceAsyncCacheProxy(WikiServiceAsync service)
Creates a new cache proxy for the given service. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WikiServiceAsyncCacheProxy(WikiServiceAsync service)
service - the service to be cached.| Method Detail |
|---|
public void getPageNames(String wikiName,
String spaceName,
com.google.gwt.user.client.rpc.AsyncCallback<List<String>> async)
getPageNames 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 clientWikiServiceAsync.getPageNames(String, String, AsyncCallback)
public 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 start
public 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 start
public void getSpaceNames(String wikiName,
com.google.gwt.user.client.rpc.AsyncCallback<List<String>> async)
getSpaceNames 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 clientWikiServiceAsync.getSpaceNames(String, AsyncCallback)public void getVirtualWikiNames(com.google.gwt.user.client.rpc.AsyncCallback<List<String>> async)
getVirtualWikiNames in interface WikiServiceAsyncasync - async object used for asynchronous communication between server and clientWikiServiceAsync.getVirtualWikiNames(AsyncCallback)public void isMultiWiki(com.google.gwt.user.client.rpc.AsyncCallback<Boolean> async)
isMultiWiki in interface WikiServiceAsyncasync - object used for asynchronous communication between server and clientWikiServiceAsync.isMultiWiki(AsyncCallback)
public void getEntityConfig(EntityReference base,
ResourceReference target,
com.google.gwt.user.client.rpc.AsyncCallback<EntityConfig> async)
EntityConfig 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.WikiServiceAsync.getEntityConfig(EntityReference, ResourceReference, AsyncCallback)
public 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.
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 foundWikiServiceAsync.getAttachment(AttachmentReference, AsyncCallback)
public void getImageAttachments(WikiPageReference documentReference,
com.google.gwt.user.client.rpc.AsyncCallback<List<Attachment>> async)
getImageAttachments in interface WikiServiceAsyncdocumentReference - a reference to the document to get the images fromasync - object used for asynchronous communication between server and clientWikiServiceAsync.getImageAttachments(WikiPageReference, AsyncCallback)
public void getAttachments(WikiPageReference documentReference,
com.google.gwt.user.client.rpc.AsyncCallback<List<Attachment>> async)
getAttachments in interface WikiServiceAsyncdocumentReference - a reference to the document to get the attachments fromasync - object used for asynchronous communication between server and clientWikiServiceAsync.getAttachments(WikiPageReference, AsyncCallback)
public void getUploadURL(WikiPageReference documentReference,
com.google.gwt.user.client.rpc.AsyncCallback<String> async)
getUploadURL in interface WikiServiceAsyncdocumentReference - the document for which to retrieve the upload URLasync - object used for asynchronous communication between server and clientWikiServiceAsync.getUploadURL(WikiPageReference, AsyncCallback)
public void parseLinkReference(String linkReference,
EntityReference baseReference,
com.google.gwt.user.client.rpc.AsyncCallback<ResourceReference> async)
parseLinkReference 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 clientWikiServiceAsync.parseLinkReference(String, EntityReference, AsyncCallback)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||