|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@ComponentRole @RemoteServiceRelativePath(value="WikiService.gwtrpc") public interface WikiService
The service interface used on the server.
NOTE: This component interface should be split in multiple domain specific interfaces. Don't add any more methods!
| Method Summary | |
|---|---|
Attachment |
getAttachment(AttachmentReference attachmentReference)
Returns information about the referenced attachment. |
java.util.List<Attachment> |
getAttachments(WikiPageReference documentReference)
Returns all the attachments from the referred page. |
EntityConfig |
getEntityConfig(EntityReference origin,
ResourceReference destination)
Creates an entity link configuration object (URL, link reference) for a link with the specified origin and destination. |
java.util.List<Attachment> |
getImageAttachments(WikiPageReference documentReference)
Returns all the image attachments from the referred page. |
java.util.List<WikiPage> |
getMatchingPages(java.lang.String keyword,
int start,
int count)
|
java.util.List<java.lang.String> |
getPageNames(java.lang.String wikiName,
java.lang.String spaceName)
|
java.util.List<WikiPage> |
getRecentlyModifiedPages(int start,
int count)
|
java.util.List<java.lang.String> |
getSpaceNames(java.lang.String wikiName)
|
java.lang.String |
getUploadURL(WikiPageReference documentReference)
|
java.util.List<java.lang.String> |
getVirtualWikiNames()
|
java.lang.Boolean |
isMultiWiki()
Check if the current wiki is part of a multiwiki (i.e. |
ResourceReference |
parseLinkReference(java.lang.String linkReference,
EntityReference baseReference)
Parses the given link reference and extracts a reference to the linked resource. |
| Method Detail |
|---|
java.lang.Boolean isMultiWiki()
java.util.List<java.lang.String> getVirtualWikiNames()
java.util.List<java.lang.String> getSpaceNames(java.lang.String wikiName)
wikiName - the name of the wiki to search for spaces. If this is null, the current wiki will be
used.
java.util.List<java.lang.String> getPageNames(java.lang.String wikiName,
java.lang.String spaceName)
wikiName - the name of the wiki. Pass null if this should use the current wiki.spaceName - the name of the space
java.util.List<WikiPage> getRecentlyModifiedPages(int start,
int count)
start - the start index of the list of pages to returncount - the number of pages to return
count modified pages of the current user, starting from position start
java.util.List<WikiPage> getMatchingPages(java.lang.String keyword,
int start,
int count)
start - the start index of the list of pages to returncount - the number of pages to returnkeyword - the keyword to search the pages for
count pages whose full name or title match the keyword, starting from position start
EntityConfig getEntityConfig(EntityReference origin,
ResourceReference destination)
EntityConfig is relative to the link origin.
origin - the origin of the linkdestination - the destination of the link
Attachment getAttachment(AttachmentReference attachmentReference)
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 reference
Attachment containing the serialized reference and the access URL of the specified attachment,
or null in case the attachment was not foundjava.util.List<Attachment> getImageAttachments(WikiPageReference documentReference)
documentReference - a reference to the document to get the images from
java.util.List<Attachment> getAttachments(WikiPageReference documentReference)
documentReference - a reference to the document to get the attachments from
java.lang.String getUploadURL(WikiPageReference documentReference)
documentReference - a document reference
ResourceReference parseLinkReference(java.lang.String linkReference,
EntityReference baseReference)
linkReference - a serialized link referencebaseReference - the entity reference used to resolve the linked resource reference
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||