|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nuxeo.runtime.model.DefaultComponent org.nuxeo.ecm.platform.contentview.jsf.ContentViewServiceImpl
public class ContentViewServiceImpl
Field Summary | |
---|---|
static java.lang.String |
CONTENT_VIEW_EP
|
Constructor Summary | |
---|---|
ContentViewServiceImpl()
|
Method Summary | ||
---|---|---|
|
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 |
---|
public static final java.lang.String CONTENT_VIEW_EP
Constructor Detail |
---|
public ContentViewServiceImpl()
Method Detail |
---|
public ContentView getContentView(java.lang.String name) throws ClientException
ContentViewService
getContentView
in interface ContentViewService
ClientException
public java.util.Set<java.lang.String> getContentViewNames()
ContentViewService
getContentViewNames
in interface ContentViewService
public java.util.Set<java.lang.String> getContentViewNames(java.lang.String flag)
ContentViewService
getContentViewNames
in interface ContentViewService
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
ContentViewService
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).
getPageProvider
in interface ContentViewService
ClientException
public java.util.Map<java.lang.String,java.io.Serializable> resolvePageProviderProperties(java.util.Map<java.lang.String,java.lang.String> stringProps) throws ClientException
ClientException
public <T> T getAdapter(java.lang.Class<T> adapter)
Adaptable
null
if
no such object can be found.
getAdapter
in interface Adaptable
getAdapter
in class DefaultComponent
adapter
- the adapter class to look up
null
if this object does not
have an adapter for the given classpublic void registerContribution(java.lang.Object contribution, java.lang.String extensionPoint, ComponentInstance contributor) throws java.lang.Exception
registerContribution
in class DefaultComponent
java.lang.Exception
public void unregisterContribution(java.lang.Object contribution, java.lang.String extensionPoint, ComponentInstance contributor) throws java.lang.Exception
unregisterContribution
in class DefaultComponent
java.lang.Exception
|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |