public class SearchConfigurationAdapter extends AbstractLocalConfiguration<SearchConfiguration> implements SearchConfiguration
SearchConfiguration
Modifier and Type | Field and Description |
---|---|
protected List<String> |
allowedContentViews |
protected boolean |
canMerge |
protected DocumentRef |
docRef |
Constructor and Description |
---|
SearchConfigurationAdapter(DocumentModel doc) |
Modifier and Type | Method and Description |
---|---|
boolean |
canMerge()
Returns
true if this LocalConfiguration accepted to be merged with a parent configuration,
false otherwise. |
List<String> |
filterAllowedContentViewNames(List<String> names)
Provide a filter to remove unauthorized content views name.
|
List<String> |
getAllowedContentViewNames()
Return a list of content views name that are denied with the local configuration
|
DocumentRef |
getDocumentRef()
Returns the related
DocumentRef of this local configuration. |
protected List<String> |
getList(DocumentModel doc,
String property) |
protected boolean |
isAllowedName(String name) |
SearchConfiguration |
merge(SearchConfiguration other)
Merge this
LocalConfiguration with another one. |
save
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
save
protected List<String> allowedContentViews
protected DocumentRef docRef
protected boolean canMerge
public SearchConfigurationAdapter(DocumentModel doc)
protected List<String> getList(DocumentModel doc, String property)
public DocumentRef getDocumentRef()
LocalConfiguration
DocumentRef
of this local configuration.getDocumentRef
in interface LocalConfiguration<SearchConfiguration>
public boolean canMerge()
LocalConfiguration
true
if this LocalConfiguration
accepted to be merged with a parent configuration,
false
otherwise.canMerge
in interface LocalConfiguration<SearchConfiguration>
canMerge
in class AbstractLocalConfiguration<SearchConfiguration>
public SearchConfiguration merge(SearchConfiguration other)
LocalConfiguration
LocalConfiguration
with another one.merge
in interface LocalConfiguration<SearchConfiguration>
merge
in class AbstractLocalConfiguration<SearchConfiguration>
public List<String> getAllowedContentViewNames()
SearchConfiguration
getAllowedContentViewNames
in interface SearchConfiguration
protected boolean isAllowedName(String name)
public List<String> filterAllowedContentViewNames(List<String> names)
SearchConfiguration
filterAllowedContentViewNames
in interface SearchConfiguration
names
- set of possible content views nameCopyright © 2018 Nuxeo. All rights reserved.