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. |
saveclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsaveprotected List<String> allowedContentViews
protected DocumentRef docRef
protected boolean canMerge
public SearchConfigurationAdapter(DocumentModel doc)
protected List<String> getList(DocumentModel doc, String property)
public DocumentRef getDocumentRef()
LocalConfigurationDocumentRef of this local configuration.getDocumentRef in interface LocalConfiguration<SearchConfiguration>public boolean canMerge()
LocalConfigurationtrue 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)
LocalConfigurationLocalConfiguration with another one.merge in interface LocalConfiguration<SearchConfiguration>merge in class AbstractLocalConfiguration<SearchConfiguration>public List<String> getAllowedContentViewNames()
SearchConfigurationgetAllowedContentViewNames in interface SearchConfigurationprotected boolean isAllowedName(String name)
public List<String> filterAllowedContentViewNames(List<String> names)
SearchConfigurationfilterAllowedContentViewNames in interface SearchConfigurationnames - set of possible content views nameCopyright © 2018 Nuxeo. All rights reserved.