Class OutgoingRefsContentAttachmentIndexer
- java.lang.Object
-
- org.ametys.cms.content.indexing.solr.content.attachment.impl.OutgoingRefsContentAttachmentIndexer
-
- All Implemented Interfaces:
ContentVisibleAttachmentIndexer
,Serviceable
public class OutgoingRefsContentAttachmentIndexer extends Object implements ContentVisibleAttachmentIndexer, Serviceable
AContentVisibleAttachmentIndexer
for attachments extracted from theOutgoingReferencesExtractor
component.
-
-
Field Summary
Fields Modifier and Type Field Description protected OutgoingReferencesExtractor
_outgoingReferencesExtractor
The outgoing references extractor
-
Constructor Summary
Constructors Constructor Description OutgoingRefsContentAttachmentIndexer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private boolean
_filterReferences(Map.Entry<String,List<String>> outgoingRefsEntry)
Collection<String>
getVisibleAttachmentIds(Content content)
Retrieves the ids of the visible content attachments to indexvoid
service(ServiceManager manager)
-
-
-
Field Detail
-
_outgoingReferencesExtractor
protected OutgoingReferencesExtractor _outgoingReferencesExtractor
The outgoing references extractor
-
-
Constructor Detail
-
OutgoingRefsContentAttachmentIndexer
public OutgoingRefsContentAttachmentIndexer()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
getVisibleAttachmentIds
public Collection<String> getVisibleAttachmentIds(Content content)
Description copied from interface:ContentVisibleAttachmentIndexer
Retrieves the ids of the visible content attachments to index- Specified by:
getVisibleAttachmentIds
in interfaceContentVisibleAttachmentIndexer
- Parameters:
content
- The content- Returns:
- the ids of the visible content attachments to index
-
_filterReferences
private boolean _filterReferences(Map.Entry<String,List<String>> outgoingRefsEntry)
-
-