public class SocialWebEngineRoot extends ModuleRoot
Constructor and Description |
---|
SocialWebEngineRoot() |
Modifier and Type | Method and Description |
---|---|
Object |
createDocument(HttpServletRequest request)
Create the document given a post request where input item name is the
field name ("dc:title", ...) and "docRef" value is the target document
where to create the given document
|
Object |
createDocumentForm(String ref,
String docTypeId,
String lang)
Return the html form for creation of a document
|
Object |
deleteDocument(HttpServletRequest request)
Remove the document specified in request
|
Object |
documentList(HttpServletRequest request)
Main method that return a html snipped with the list of documents
specified in request.
|
String |
escape(String text) |
String |
escapePath(String text) |
Blob |
getAttachment(DocumentModel doc)
Returns the main blob for the given
doc , null if
there is no main file available. |
String |
getTranslatedLabel(String label) |
boolean |
hasAddChildrenRight(String docId)
Indicates if the current user has the right to Add Children to the
current Document
|
Object |
publishDocument(HttpServletRequest request) |
Object |
selectDocTypeToCreate(String ref,
String lang)
return a form to select a doctype the user wants to create
|
getLink, getSkinResource, handleError, setHttpHeaders, setHttpRequest, setUriInfo
disptachAdapter, isAdapter
checkGuard, dispose, getActiveAdapter, getAdapter, getContext, getFacets, getLinks, getModule, getName, getNext, getNextSegment, getPath, getPrevious, getTemplate, getTrailingPath, getType, getURL, getView, hasFacet, initialize, isInstanceOf, isRoot, newAdapter, newObject, redirect, setNext, setPrevious, setRoot, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
checkGuard, dispose, getActiveAdapter, getContext, getFacets, getLinks, getModule, getName, getNext, getNextSegment, getPath, getPrevious, getTemplate, getTrailingPath, getType, getURL, getView, hasFacet, initialize, isAdapter, isInstanceOf, isRoot, newAdapter, newObject, redirect, setNext, setPrevious, setRoot
getAdapter
public Object documentList(@Context HttpServletRequest request) throws Exception
parameters:
Exception
public Object publishDocument(@Context HttpServletRequest request) throws Exception
Exception
public Object deleteDocument(@Context HttpServletRequest request) throws Exception
Exception
public Object createDocumentForm(String ref, String docTypeId, String lang) throws Exception
Exception
public Object selectDocTypeToCreate(String ref, String lang) throws ClientException
ClientException
public Object createDocument(@Context HttpServletRequest request) throws Exception
Exception
public Blob getAttachment(DocumentModel doc) throws ClientException
doc
, null
if
there is no main file available.ClientException
public boolean hasAddChildrenRight(String docId)
docId
- the reference of the documentCopyright © 2011 Nuxeo SA. All Rights Reserved.