public class WritePolicyEntryAdaptor extends Object implements EntryAdaptor
In any case, if the readonly flag of the adapted entry is already set to true, this value is kept unchanged.
| Constructor and Description |
|---|
WritePolicyEntryAdaptor() |
| Modifier and Type | Method and Description |
|---|---|
DocumentModel |
adapt(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.
|
public static final Log log
public DocumentModel adapt(Directory directory, DocumentModel entry) throws DirectoryException
EntryAdaptoradapt in interface EntryAdaptordirectory - the directory instance the entry is fetched fromentry - the entry to transformDirectoryException - if the adapting process fails unexpectedlypublic void setParameter(String name, String value)
EntryAdaptorsetParameter in interface EntryAdaptorCopyright © 2012 Nuxeo SA. All Rights Reserved.