Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.webengine.samples
Class UserBuddiesObject

java.lang.Object
  extended by org.nuxeo.ecm.webengine.model.impl.AbstractResource<ResourceTypeImpl>
      extended by org.nuxeo.ecm.webengine.model.impl.DefaultAdapter
          extended by org.nuxeo.ecm.webengine.samples.UserBuddiesObject
All Implemented Interfaces:
AdapterResource, Resource, Adaptable

public class UserBuddiesObject
extends DefaultAdapter

UserBuddies object. You can see the @WebAdapter annotation that is defining a WebAdapter of type "UserBuddies" that applies to any User WebObject. The name used to access this adapter is the adapter name prefixed with a '@' character: @buddies

Author:
Bogdan Stefanescu

Constructor Summary
UserBuddiesObject()
           
 
Method Summary
 Object doGet()
          Get the index view.
 
Methods inherited from class org.nuxeo.ecm.webengine.model.impl.DefaultAdapter
disptachAdapter, getTarget, 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
 
Methods inherited from interface org.nuxeo.ecm.webengine.model.Resource
checkGuard, dispose, getActiveAdapter, getContext, getFacets, getLinks, getModule, getName, getNext, getNextSegment, getPath, getPrevious, getTemplate, getTrailingPath, getType, getURL, getView, hasFacet, initialize, isInstanceOf, isRoot, newAdapter, newObject, redirect, setNext, setPrevious, setRoot
 
Methods inherited from interface org.nuxeo.runtime.model.Adaptable
getAdapter
 

Constructor Detail

UserBuddiesObject

public UserBuddiesObject()
Method Detail

doGet

public Object doGet()
Get the index view. The view file name is computed as follows: index[-media_type_id].ftl First the skin/views/UserBuddies is searched for that file then the current directory. (The type of a module is the same as its name)


Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.