org.nuxeo.theme.webwidgets.samples
Class LastDocuments
java.lang.Object
org.nuxeo.ecm.webengine.model.impl.AbstractResource<ResourceTypeImpl>
org.nuxeo.ecm.webengine.model.impl.DefaultObject
org.nuxeo.theme.webwidgets.samples.LastDocuments
- All Implemented Interfaces:
- Resource, Adaptable
public class LastDocuments
- extends DefaultObject
Provide JSON data for the WebWidget "Last Created Documents"
- Author:
- Nicolas Ulrich
Method Summary |
Object |
doGet(int nb_docs,
String path)
Return JSon data that contains a list of document properties (url, title,
date of creation and author). |
Methods inherited from class org.nuxeo.ecm.webengine.model.impl.AbstractResource |
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 |
LastDocuments
public LastDocuments()
doGet
public Object doGet(int nb_docs,
String path)
throws Exception
- Return JSon data that contains a list of document properties (url, title,
date of creation and author). This list is used by the WebWidget
"Last Created Documents"
- Parameters:
nb_docs
- number of elements to return
- Returns:
- JSon data
- Throws:
Exception
Copyright © 2011 Nuxeo SAS. All Rights Reserved.