Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.theme.webwidgets.samples
Class LastDocuments

java.lang.Object
  extended by org.nuxeo.ecm.webengine.model.impl.AbstractResource<ResourceTypeImpl>
      extended by org.nuxeo.ecm.webengine.model.impl.DefaultObject
          extended by 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

Constructor Summary
LastDocuments()
           
 
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.DefaultObject
disptachAdapter, isAdapter
 
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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LastDocuments

public LastDocuments()
Method Detail

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

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.