|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.wiki.service.impl.WikiRestServiceImpl
public class WikiRestServiceImpl
Created by The eXo Platform SAS Author : viet nguyen viet.nguyen@exoplatform.com Jun 20, 2010
| Constructor Summary | |
|---|---|
WikiRestServiceImpl(WikiService wikiService,
org.exoplatform.wiki.rendering.RenderingService renderingService)
|
|
| Method Summary | |
|---|---|
Attachment |
createAttachment(ObjectFactory objectFactory,
URI baseUri,
AttachmentImpl pageAttachment,
String xwikiRelativeUrl,
String xwikiAbsoluteUrl)
|
Page |
createPage(ObjectFactory objectFactory,
URI baseUri,
URI self,
PageImpl doc)
|
PageSummary |
createPageSummary(ObjectFactory objectFactory,
URI baseUri,
PageImpl doc)
|
Space |
createSpace(ObjectFactory objectFactory,
URI baseUri,
String wikiName,
String spaceName,
Page home)
|
Attachments |
getAttachments(javax.ws.rs.core.UriInfo uriInfo,
String wikiType,
String wikiOwner,
String pageId,
Integer start,
Integer number)
|
javax.ws.rs.core.Response |
getHelpSyntaxPage(String syntaxId,
String portalUrl)
Return the help syntax page. |
javax.ws.rs.core.Response |
getImage(javax.ws.rs.core.UriInfo uriInfo,
String wikiType,
String wikiOwner,
String pageId,
String imageId,
Integer width)
|
Spaces |
getLastVisitedSpaces(javax.ws.rs.core.UriInfo uriInfo,
Integer offset,
Integer limit)
|
Page |
getPage(javax.ws.rs.core.UriInfo uriInfo,
String wikiType,
String wikiOwner,
String pageId)
|
Pages |
getPages(javax.ws.rs.core.UriInfo uriInfo,
String wikiType,
String wikiOwner,
Integer start,
Integer number,
String parentFilterExpression)
|
javax.ws.rs.core.Response |
getRelated(String path)
|
Space |
getSpace(javax.ws.rs.core.UriInfo uriInfo,
String wikiType,
String wikiOwner)
|
Spaces |
getSpaces(javax.ws.rs.core.UriInfo uriInfo,
String wikiType,
Integer start,
Integer number)
|
javax.ws.rs.core.Response |
getTreeData(String type,
String path,
String currentPath,
Boolean showExcerpt,
String depth)
|
javax.ws.rs.core.Response |
getWikiPageContent(String sessionKey,
String wikiContextKey,
boolean isMarkup,
String data)
|
javax.ws.rs.core.Response |
removeDraft(String draftName)
Remove the draft |
javax.ws.rs.core.Response |
saveDraft(String wikiType,
String wikiOwner,
String pageId,
String pageRevision,
String lastDraftName,
boolean isNewPage,
long clientTime,
String title,
String content,
String isMarkup)
Save draft title and content for a page specified by the given page params |
javax.ws.rs.core.Response |
searchAccessibleSpaces(String keyword)
|
javax.ws.rs.core.Response |
searchData(String keyword,
String wikiType,
String wikiOwner)
|
javax.ws.rs.core.Response |
upload(String wikiType,
String wikiOwner,
String pageId)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WikiRestServiceImpl(WikiService wikiService,
org.exoplatform.wiki.rendering.RenderingService renderingService)
| Method Detail |
|---|
public javax.ws.rs.core.Response getWikiPageContent(String sessionKey,
String wikiContextKey,
boolean isMarkup,
String data)
getWikiPageContent in interface WikiRestServicesessionKey - key is used to retrieve the editor input value from the session.isMarkup - if true then markup content is returned else html content is returned
public javax.ws.rs.core.Response upload(String wikiType,
String wikiOwner,
String pageId)
public javax.ws.rs.core.Response getTreeData(String type,
String path,
String currentPath,
Boolean showExcerpt,
String depth)
public javax.ws.rs.core.Response getRelated(String path)
public Spaces getSpaces(@Context
javax.ws.rs.core.UriInfo uriInfo,
String wikiType,
Integer start,
Integer number)
public Spaces getLastVisitedSpaces(@Context
javax.ws.rs.core.UriInfo uriInfo,
Integer offset,
Integer limit)
public Space getSpace(@Context
javax.ws.rs.core.UriInfo uriInfo,
String wikiType,
String wikiOwner)
public Pages getPages(@Context
javax.ws.rs.core.UriInfo uriInfo,
String wikiType,
String wikiOwner,
Integer start,
Integer number,
String parentFilterExpression)
public Page getPage(@Context
javax.ws.rs.core.UriInfo uriInfo,
String wikiType,
String wikiOwner,
String pageId)
public Attachments getAttachments(@Context
javax.ws.rs.core.UriInfo uriInfo,
String wikiType,
String wikiOwner,
String pageId,
Integer start,
Integer number)
public javax.ws.rs.core.Response searchData(String keyword,
String wikiType,
String wikiOwner)
throws Exception
Exception
public javax.ws.rs.core.Response getImage(@Context
javax.ws.rs.core.UriInfo uriInfo,
String wikiType,
String wikiOwner,
String pageId,
String imageId,
Integer width)
public Space createSpace(ObjectFactory objectFactory,
URI baseUri,
String wikiName,
String spaceName,
Page home)
public Page createPage(ObjectFactory objectFactory,
URI baseUri,
URI self,
PageImpl doc)
throws Exception
Exception
public PageSummary createPageSummary(ObjectFactory objectFactory,
URI baseUri,
PageImpl doc)
throws IllegalArgumentException,
javax.ws.rs.core.UriBuilderException,
Exception
IllegalArgumentException
javax.ws.rs.core.UriBuilderException
Exception
public Attachment createAttachment(ObjectFactory objectFactory,
URI baseUri,
AttachmentImpl pageAttachment,
String xwikiRelativeUrl,
String xwikiAbsoluteUrl)
throws Exception
Exception
public javax.ws.rs.core.Response getHelpSyntaxPage(String syntaxId,
String portalUrl)
syntaxId - The id of syntax to show in help pageportalUrl - The current portal url
public javax.ws.rs.core.Response searchAccessibleSpaces(String keyword)
public javax.ws.rs.core.Response saveDraft(String wikiType,
String wikiOwner,
String pageId,
String pageRevision,
String lastDraftName,
boolean isNewPage,
long clientTime,
String title,
String content,
String isMarkup)
wikiType - type of wiki to save draftwikiOwner - owner of wiki to save draftpageId - name of page to save draftpageRevision - the target revision of target pagelastDraftName - name of the draft page of last saved draft requestisNewPage - The draft for new page or nottitle - draft titlecontent - draft contentisMarkup - content is markup or html. True if is markup.
Response with status HTTPStatus.ACCEPTED if saving process is performed successfully
with status HTTPStatus.INTERNAL_ERROR if there is any unknown error in the saving processpublic javax.ws.rs.core.Response removeDraft(String draftName)
draftName - The name of draft to remove
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||