Package org.nuxeo.ecm.directory
Interface EntryAdaptor
- All Known Implementing Classes:
WritePolicyEntryAdaptor
public interface EntryAdaptor
Interface to be used by Directory implementations to perform arbitrary "fetch-time" adaptations on the entry fields
and the readonly flag.
-
Method Summary
Modifier and TypeMethodDescriptionadapt
(Directory directory, DocumentModel entry) Apply an arbitrary transformation of the fetched entry.void
setParameter
(String name, String value) Allow the directory initialization process to configure the adaptor by providing String valued parameters.
-
Method Details
-
setParameter
Allow the directory initialization process to configure the adaptor by providing String valued parameters. -
adapt
Apply an arbitrary transformation of the fetched entry.- Parameters:
directory
- the directory instance the entry is fetched fromentry
- the entry to transform- Returns:
- the adapted entry
-