Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.webengine.samples
Class UserObject

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.ecm.webengine.samples.UserObject
All Implemented Interfaces:
Resource, Adaptable

public class UserObject
extends DefaultObject

User object. You can see the @WebObject annotation that is defining a WebObject of type "User"

Author:
Bogdan Stefanescu

Constructor Summary
UserObject()
           
 
Method Summary
 Object doGet()
          Get the index view of the User object.
 Object doPut(String name)
          This method is not implemented but demonstrates how PUT requests can be used
 Object doRemove(String name)
          This method is not implemented but demonstrates how DELETE requests can be used
 String getDisplayName()
          Getter the variable displayName.
 
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

UserObject

public UserObject()
Method Detail

getDisplayName

public String getDisplayName()
Getter the variable displayName. Would be accessible from views with ${This.displayName}


doGet

public Object doGet()
Get the index view of the User object. The view file is located in skin/views/User so that it can be easily extended by a derived module. See extensibility sample.


doRemove

public Object doRemove(String name)
This method is not implemented but demonstrates how DELETE requests can be used


doPut

public Object doPut(String name)
This method is not implemented but demonstrates how PUT requests can be used


Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.