public class SearchConfigurationAdapter extends AbstractLocalConfiguration<SearchConfiguration> implements SearchConfiguration
SearchConfiguration
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. |
SearchConfiguration |
merge(SearchConfiguration other)
Merge this
LocalConfiguration with another one. |
save
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
save
public SearchConfigurationAdapter(DocumentModel doc)
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
public List<String> filterAllowedContentViewNames(List<String> names)
SearchConfiguration
filterAllowedContentViewNames
in interface SearchConfiguration
names
- set of possible content views nameCopyright © 2015 Nuxeo SA. All rights reserved.