|
||||||||||
| 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(java.lang.String wikiName,
java.lang.String spaceName,
java.lang.String pageName,
java.lang.String attachmentName,
com.google.gwt.user.client.rpc.AsyncCallback<Attachment> async)
Returns attachment information from the passed parameters, testing if the passed attachment exists. |
void |
getAttachments(java.lang.String wikiName,
java.lang.String spaceName,
java.lang.String pageName,
com.google.gwt.user.client.rpc.AsyncCallback<java.util.List<Attachment>> async)
Returns all the attachments from the referred page. |
void |
getImageAttachments(java.lang.String wikiName,
java.lang.String spaceName,
java.lang.String pageName,
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 |
getPageLink(java.lang.String wikiName,
java.lang.String spaceName,
java.lang.String pageName,
java.lang.String revision,
java.lang.String anchor,
com.google.gwt.user.client.rpc.AsyncCallback<LinkConfig> async)
Creates a page link (URL, reference) from the given parameters. |
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 |
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. |
| 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 getPageLink(java.lang.String wikiName,
java.lang.String spaceName,
java.lang.String pageName,
java.lang.String revision,
java.lang.String anchor,
com.google.gwt.user.client.rpc.AsyncCallback<LinkConfig> async)
wikiName - the name of the wiki to which to linkspaceName - the name of the space of the page. If this parameter is missing, it is replaced with the space
of the current document in the context.pageName - the name of the page to which to link to. If it's missing, it is replaced with "WebHome".revision - the value for the page revision to which to link to. If this is missing, the link is made to the
latest revision, the default view action for the document.anchor - the name of the anchor type.async - object used for asynchronous communication between server and client.
void getAttachment(java.lang.String wikiName,
java.lang.String spaceName,
java.lang.String pageName,
java.lang.String attachmentName,
com.google.gwt.user.client.rpc.AsyncCallback<Attachment> async)
attachmentName name will be cleaned to match the attachment names cleaning rules, and the attachment
reference and URL will be generated with the cleaned name. This function will be used as a method to test the
correct upload of a file to a page.
wikiName - the name of the wiki of the page the file is attached tospaceName - the name of the space of the page the file is attached topageName - the name of the page the file is attached toattachmentName - the uncleaned name of the attachment, which is to be cleaned on the serverasync - object used for asynchronous communication between server and client, to return, on success, an
Attachment containing the reference and the URL of the attachment, or null in case the
attachment was not found
void getImageAttachments(java.lang.String wikiName,
java.lang.String spaceName,
java.lang.String pageName,
com.google.gwt.user.client.rpc.AsyncCallback<java.util.List<Attachment>> async)
wikiName - the name of the wiki to get images fromspaceName - the name of the space to get image attachments frompageName - the name of the page to get image attachments fromasync - object used for asynchronous communication between server and client.
void getAttachments(java.lang.String wikiName,
java.lang.String spaceName,
java.lang.String pageName,
com.google.gwt.user.client.rpc.AsyncCallback<java.util.List<Attachment>> async)
wikiName - the name of the wiki to get attachments fromspaceName - the name of the space to get attachments frompageName - the name of the page to get attachments fromasync - 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 | |||||||||