Package org.ametys.web.content
Class WebContentViewProvider
java.lang.Object
org.ametys.cms.content.DefaultContentViewProvider
org.ametys.web.content.WebContentViewProvider
- All Implemented Interfaces:
ContentViewProvider,Component,Contextualizable,Serviceable
This implementation of a
ContentViewProvider looks first if the view has been defined (or overridden) in the current skin-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ContextThe contextprotected static final org.slf4j.LoggerThe logger.protected SiteManagerThe site managerprotected SkinsManagerThe skin managerFields inherited from class org.ametys.cms.content.DefaultContentViewProvider
_contentTypesHelperFields inherited from interface org.ametys.cms.content.ContentViewProvider
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcontextualize(Context context) Get the view for view resulting of the concatenation of views of the given content.voidservice(ServiceManager manager) Methods inherited from class org.ametys.cms.content.DefaultContentViewProvider
getViewWithFallbackMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ametys.cms.content.ContentViewProvider
getView, getViewWithFallback
-
Field Details
-
_LOGGER
The logger. -
_siteManager
The site manager -
_skinsManager
The skin manager -
_context
The context
-
-
Constructor Details
-
WebContentViewProvider
public WebContentViewProvider()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classDefaultContentViewProvider- Throws:
ServiceException
-
contextualize
- Specified by:
contextualizein interfaceContextualizable- Throws:
ContextException
-
getView
Description copied from interface:ContentViewProviderGet the view for view resulting of the concatenation of views of the given content.- Specified by:
getViewin interfaceContentViewProvider- Overrides:
getViewin classDefaultContentViewProvider- Parameters:
viewName- the name of the view to retrievecontentTypeIds- the identifiers of the content typesmixinIds- the identifiers of the mixins- Returns:
- The view or null if none matches.
-