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.
Modifier and Type | Field and Description |
---|---|
protected String |
fieldName |
static org.apache.commons.logging.Log |
log |
protected Pattern |
pattern |
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 org.apache.commons.logging.Log log
public WritePolicyEntryAdaptor()
public DocumentModel adapt(Directory directory, DocumentModel entry) throws DirectoryException
EntryAdaptor
adapt
in interface EntryAdaptor
directory
- the directory instance the entry is fetched fromentry
- the entry to transformDirectoryException
- if the adapting process fails unexpectedlypublic void setParameter(String name, String value)
EntryAdaptor
setParameter
in interface EntryAdaptor
Copyright © 2017 Nuxeo. All rights reserved.