|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface WikiServiceAsync
Service interface used on the client. It should have all the methods from WikiService with an additional
AsyncCallback parameter. This is specific to GWT's architecture.
| 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<java.util.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<java.util.List<Attachment>> async)
Returns all the image attachments from the referred page. |
void |
getMatchingPages(java.lang.String keyword,
int start,
int count,
com.google.gwt.user.client.rpc.AsyncCallback<java.util.List<WikiPage>> async)
|
void |
getPageNames(java.lang.String wikiName,
java.lang.String spaceName,
com.google.gwt.user.client.rpc.AsyncCallback<java.util.List<java.lang.String>> async)
Returns the list of the page names from a given space and a given wiki. |
void |
getRecentlyModifiedPages(int start,
int count,
com.google.gwt.user.client.rpc.AsyncCallback<java.util.List<WikiPage>> async)
|
void |
getSpaceNames(java.lang.String wikiName,
com.google.gwt.user.client.rpc.AsyncCallback<java.util.List<java.lang.String>> async)
Returns a list of all spaces names in the specified wiki. |
void |
getUploadURL(WikiPageReference documentReference,
com.google.gwt.user.client.rpc.AsyncCallback<java.lang.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<java.util.List<java.lang.String>> async)
Returns a list containing the names of all wikis. |
void |
isMultiWiki(com.google.gwt.user.client.rpc.AsyncCallback<java.lang.Boolean> async)
Check if the current wiki is part of a multiwiki (i.e. |
void |
parseLinkReference(java.lang.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. |
| Method Detail |
|---|
void isMultiWiki(com.google.gwt.user.client.rpc.AsyncCallback<java.lang.Boolean> async)
async - object used for asynchronous communication between server and clientvoid getVirtualWikiNames(com.google.gwt.user.client.rpc.AsyncCallback<java.util.List<java.lang.String>> async)
async - async object used for asynchronous communication between server and client
void getSpaceNames(java.lang.String wikiName,
com.google.gwt.user.client.rpc.AsyncCallback<java.util.List<java.lang.String>> async)
wikiName - the name of the wiki to search for spaces. If this is null, the current wiki will be
used.async - object used for asynchronous communication between server and client
void getPageNames(java.lang.String wikiName,
java.lang.String spaceName,
com.google.gwt.user.client.rpc.AsyncCallback<java.util.List<java.lang.String>> async)
wikiName - the name of the wiki. Pass null if this should use the current wiki.spaceName - the name of the spaceasync - object used for asynchronous communication between server and client
void getRecentlyModifiedPages(int start,
int count,
com.google.gwt.user.client.rpc.AsyncCallback<java.util.List<WikiPage>> async)
start - 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
void getMatchingPages(java.lang.String keyword,
int start,
int count,
com.google.gwt.user.client.rpc.AsyncCallback<java.util.List<WikiPage>> async)
start - 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 start
void 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 found
void getImageAttachments(WikiPageReference documentReference,
com.google.gwt.user.client.rpc.AsyncCallback<java.util.List<Attachment>> async)
documentReference - a reference to the document to get the images fromasync - object used for asynchronous communication between server and client
void getAttachments(WikiPageReference documentReference,
com.google.gwt.user.client.rpc.AsyncCallback<java.util.List<Attachment>> async)
documentReference - a reference to the document to get the attachments fromasync - object used for asynchronous communication between server and client
void getUploadURL(WikiPageReference documentReference,
com.google.gwt.user.client.rpc.AsyncCallback<java.lang.String> async)
documentReference - the document for which to retrieve the upload URLasync - object used for asynchronous communication between server and client
void parseLinkReference(java.lang.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 client
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||