Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.platform.contentview.jsf
Class ContentViewServiceImpl

java.lang.Object
  extended by org.nuxeo.runtime.model.DefaultComponent
      extended by org.nuxeo.ecm.platform.contentview.jsf.ContentViewServiceImpl
All Implemented Interfaces:
java.io.Serializable, ContentViewService, Adaptable, Component, Extensible

public class ContentViewServiceImpl
extends DefaultComponent
implements ContentViewService

Since:
5.4
Author:
Anahide Tchertchian
See Also:
Serialized Form

Field Summary
static java.lang.String CONTENT_VIEW_EP
           
 
Constructor Summary
ContentViewServiceImpl()
           
 
Method Summary
<T> T
getAdapter(java.lang.Class<T> adapter)
          Returns an object which is an instance of the given class associated with this object.
 ContentView getContentView(java.lang.String name)
          Returns the content view with given name, or null if not found.
 java.util.Set<java.lang.String> getContentViewNames()
          Returns all the registered content view names, or an empty set if no content view is registered.
 java.util.Set<java.lang.String> getContentViewNames(java.lang.String flag)
          Returns all the registered content view names with given flag declared on their definition
 PageProvider<?> getPageProvider(java.lang.String name, java.util.List<SortInfo> sortInfos, java.lang.Long pageSize, java.lang.Long currentPage, java.lang.Object... parameters)
          Returns the page provider computed from the content view with given name.
 void registerContribution(java.lang.Object contribution, java.lang.String extensionPoint, ComponentInstance contributor)
           
 java.util.Map<java.lang.String,java.io.Serializable> resolvePageProviderProperties(java.util.Map<java.lang.String,java.lang.String> stringProps)
           
 void unregisterContribution(java.lang.Object contribution, java.lang.String extensionPoint, ComponentInstance contributor)
           
 
Methods inherited from class org.nuxeo.runtime.model.DefaultComponent
activate, deactivate, registerExtension, unregisterExtension
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONTENT_VIEW_EP

public static final java.lang.String CONTENT_VIEW_EP
See Also:
Constant Field Values
Constructor Detail

ContentViewServiceImpl

public ContentViewServiceImpl()
Method Detail

getContentView

public ContentView getContentView(java.lang.String name)
                           throws ClientException
Description copied from interface: ContentViewService
Returns the content view with given name, or null if not found.

Specified by:
getContentView in interface ContentViewService
Throws:
ClientException

getContentViewNames

public java.util.Set<java.lang.String> getContentViewNames()
Description copied from interface: ContentViewService
Returns all the registered content view names, or an empty set if no content view is registered.

Specified by:
getContentViewNames in interface ContentViewService

getContentViewNames

public java.util.Set<java.lang.String> getContentViewNames(java.lang.String flag)
Description copied from interface: ContentViewService
Returns all the registered content view names with given flag declared on their definition

Specified by:
getContentViewNames in interface ContentViewService

getPageProvider

public PageProvider<?> getPageProvider(java.lang.String name,
                                       java.util.List<SortInfo> sortInfos,
                                       java.lang.Long pageSize,
                                       java.lang.Long currentPage,
                                       java.lang.Object... parameters)
                                throws ClientException
Description copied from interface: ContentViewService
Returns the page provider computed from the content view with given name. Its properties are resolved using current FacesContext instance if they are EL Expressions.

If not null, parameters sortInfos and pageSize will override information computed in the XML file. If not null, currentPage will override default current page (0).

Specified by:
getPageProvider in interface ContentViewService
Throws:
ClientException

resolvePageProviderProperties

public java.util.Map<java.lang.String,java.io.Serializable> resolvePageProviderProperties(java.util.Map<java.lang.String,java.lang.String> stringProps)
                                                                                   throws ClientException
Throws:
ClientException

getAdapter

public <T> T getAdapter(java.lang.Class<T> adapter)
Description copied from interface: Adaptable
Returns an object which is an instance of the given class associated with this object. Returns null if no such object can be found.

Specified by:
getAdapter in interface Adaptable
Overrides:
getAdapter in class DefaultComponent
Parameters:
adapter - the adapter class to look up
Returns:
a object castable to the given class, or null if this object does not have an adapter for the given class

registerContribution

public void registerContribution(java.lang.Object contribution,
                                 java.lang.String extensionPoint,
                                 ComponentInstance contributor)
                          throws java.lang.Exception
Overrides:
registerContribution in class DefaultComponent
Throws:
java.lang.Exception

unregisterContribution

public void unregisterContribution(java.lang.Object contribution,
                                   java.lang.String extensionPoint,
                                   ComponentInstance contributor)
                            throws java.lang.Exception
Overrides:
unregisterContribution in class DefaultComponent
Throws:
java.lang.Exception

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.