public class ComponentPresentationFactoryImpl extends BaseFactory implements ComponentPresentationFactory
| Modifier and Type | Field and Description |
|---|---|
protected ComponentPresentationProvider |
componentPresentationProvider |
protected List<DataBinder> |
dataBinders |
cacheProvider, processors| Constructor and Description |
|---|
ComponentPresentationFactoryImpl() |
| Modifier and Type | Method and Description |
|---|---|
ComponentPresentation |
getComponentPresentation(String componentURI) |
ComponentPresentation |
getComponentPresentation(String componentURI,
RequestContext context) |
ComponentPresentation |
getComponentPresentation(String componentURI,
String viewOrTemplateURI) |
ComponentPresentation |
getComponentPresentation(String componentURI,
String templateURI,
RequestContext context)
Get the component by the component uri and template uri.
|
ComponentPresentationProvider |
getComponentPresentationProvider() |
List<DataBinder> |
getDataBinders() |
protected DataBinder |
selectDataBinder(String source)
Method finds the relevant databinder for given source by calling canDeserialize() on them.
|
void |
setComponentPresentationProvider(ComponentPresentationProvider componentPresentationProvider) |
void |
setDataBinders(List<DataBinder> dataBinder) |
executeProcessors, getProcessors, setCacheProvider, setProcessorsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecuteProcessorsgetProcessors, setCacheProvider, setProcessorsprotected ComponentPresentationProvider componentPresentationProvider
protected List<DataBinder> dataBinders
protected DataBinder selectDataBinder(String source) throws FactoryException
source - FactoryExceptionpublic ComponentPresentation getComponentPresentation(String componentURI, String templateURI, RequestContext context) throws FactoryException
getComponentPresentation in interface ComponentPresentationFactoryFactoryException - if no item found NotAuthorizedException if the user is not authorized to get the componentpublic ComponentPresentationProvider getComponentPresentationProvider()
public void setComponentPresentationProvider(ComponentPresentationProvider componentPresentationProvider)
public List<DataBinder> getDataBinders()
public void setDataBinders(List<DataBinder> dataBinder)
public ComponentPresentation getComponentPresentation(String componentURI) throws FactoryException
getComponentPresentation in interface ComponentPresentationFactoryFactoryExceptionpublic ComponentPresentation getComponentPresentation(String componentURI, String viewOrTemplateURI) throws FactoryException
getComponentPresentation in interface ComponentPresentationFactoryFactoryExceptionpublic ComponentPresentation getComponentPresentation(String componentURI, RequestContext context) throws FactoryException
getComponentPresentation in interface ComponentPresentationFactoryFactoryExceptionCopyright © 2017. All rights reserved.