Class PageReturnable
java.lang.Object
org.ametys.web.frontoffice.search.metamodel.impl.PageReturnable
- All Implemented Interfaces:
Returnable
,Configurable
,Serviceable
Returnable
for Page
s-
Field Summary
Modifier and TypeFieldDescriptionprotected static final String
The prefix for the ids of facets and sortsprotected ContentHelper
The helper to handler contentsprotected Returnable
The content returnableprotected ContentTypesHelper
The helper to handler content typesprotected I18nizableText
The labelprotected ServiceManager
The service manager.protected ReturnableSaxer
The saxerprotected SiteManager
The sites managerstatic final String
Avalon Role -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(Configuration configuration) filterReturnedDocumentQuery
(Collection<ContextQueriesWrapper> contextQueriesWrappers, AdditionalParameterValueMap additionalParameterValues) Returns the query to execute in order to filter returned objects (according to their type) during the search.getFacets
(AdditionalParameterValueMap additionalParameterValues) Gets the facetsgetId()
Gets the id of the extensiongetLabel()
Gets the label of the type of resultgetSaxer
(Collection<Returnable> allReturnables, AdditionalParameterValueMap additionalParameterValues) Returns thesaxer
responsible to SAX hits of this Returnable.getSorts
(AdditionalParameterValueMap additionalParameterValues) Gets the sortsboolean
Returnstrue
if the type must be selected by defaultvoid
service
(ServiceManager manager) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ametys.web.frontoffice.search.metamodel.Returnable
additionalServiceParameters, relationsWith
-
Field Details
-
ROLE
Avalon Role -
__PREFIX_ID
The prefix for the ids of facets and sorts- See Also:
-
_siteManager
The sites manager -
_contentReturnable
The content returnable -
_contentTypesHelper
The helper to handler content types -
_contentHelper
The helper to handler contents -
_manager
The service manager. -
_label
The label -
_saxer
The saxer
-
-
Constructor Details
-
PageReturnable
public PageReturnable()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
configure
- Specified by:
configure
in interfaceConfigurable
- Throws:
ConfigurationException
-
getId
Description copied from interface:Returnable
Gets the id of the extension- Specified by:
getId
in interfaceReturnable
- Returns:
- the id of the extension
-
getLabel
Description copied from interface:Returnable
Gets the label of the type of result- Specified by:
getLabel
in interfaceReturnable
- Returns:
- the label of the type of result
-
selectedByDefault
Description copied from interface:Returnable
Returnstrue
if the type must be selected by default- Specified by:
selectedByDefault
in interfaceReturnable
- Returns:
true
if the type must be selected by default
-
filterReturnedDocumentQuery
public Query filterReturnedDocumentQuery(Collection<ContextQueriesWrapper> contextQueriesWrappers, AdditionalParameterValueMap additionalParameterValues) Description copied from interface:Returnable
Returns the query to execute in order to filter returned objects (according to their type) during the search.
It should callContextQueriesWrapper#getQuery
in order to make aJoinQuery
on interesting parts ofContextQueriesWrapper
s and then constructs anAndQuery
composed of aDocumentTypeQuery
and the result of the call.- Specified by:
filterReturnedDocumentQuery
in interfaceReturnable
- Parameters:
contextQueriesWrappers
- The contextqueries
additionalParameterValues
- The additional parameter values- Returns:
- the query to execute in order to filter returned objects (according to their type) during the search.
-
getSaxer
public ReturnableSaxer getSaxer(Collection<Returnable> allReturnables, AdditionalParameterValueMap additionalParameterValues) Description copied from interface:Returnable
Returns thesaxer
responsible to SAX hits of this Returnable.- Specified by:
getSaxer
in interfaceReturnable
- Parameters:
allReturnables
- AllReturnable
s (including this)additionalParameterValues
- The additional parameter values- Returns:
- the
saxer
responsible to SAX hits of this Returnable.
-
getFacets
Description copied from interface:Returnable
Gets the facets- Specified by:
getFacets
in interfaceReturnable
- Parameters:
additionalParameterValues
- The additional parameter values- Returns:
- the facets
-
getSorts
Description copied from interface:Returnable
Gets the sorts- Specified by:
getSorts
in interfaceReturnable
- Parameters:
additionalParameterValues
- The additional parameter values- Returns:
- the sorts
-