public class KeywordSearchOptions extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static String |
TYPENAME_DOCUMENT |
static String |
TYPENAME_FOLDER |
Constructor and Description |
---|
KeywordSearchOptions()
Instantiates a new keyword search options.
|
KeywordSearchOptions(Folder folder,
boolean doesIncludeDescendants,
boolean doesIncludeContent,
boolean isExactMatch)
Base constructor for a KeywordSearchOptions.
|
Modifier and Type | Method and Description |
---|---|
boolean |
doesIncludeContent()
Determines whether the keyword search should search in the content as
well as the name, title and description properties.
|
boolean |
doesIncludeDescendants()
Determines whether the search should also search in child folders, only
applies if the search is restricted to a specific folder.
|
Folder |
getFolder()
Returns the folder the search should be restricted to, if null is
returned the whole repository is searched.
|
String |
getTypeName()
Returns the type name to use in the keyword search, “cmis:document” by
default.
|
boolean |
isExactMatch()
Determines whether the keyword search should only search for exact
matches.
|
void |
setDoesIncludeContent(boolean doesIncludeContent)
Specifies whether the search should include child folders.
|
void |
setExactMatch(boolean exactMatch)
Sets the exact match.
|
void |
setFolder(Folder inFolder)
Sets the folder.
|
void |
setIncludeDescendants(boolean includeDescendents)
Specifies whether the search should include child folders.
|
void |
setTypeName(String typeName)
Sets the type name to be used in the keyword search.
|
public static final String TYPENAME_DOCUMENT
public static final String TYPENAME_FOLDER
public KeywordSearchOptions()
public KeywordSearchOptions(Folder folder, boolean doesIncludeDescendants, boolean doesIncludeContent, boolean isExactMatch)
folder
- : Relative folder from where a search start. Default is
null.doesIncludeDescendants
- : Default is true.doesIncludeContent
- : Default is true.isExactMatch
- : Default is false.public Folder getFolder()
public void setFolder(Folder inFolder)
inFolder
- Sets the folder the the search should be restricted to.public boolean doesIncludeDescendants()
public void setIncludeDescendants(boolean includeDescendents)
includeDescendents
- the includeDescendents to setpublic boolean isExactMatch()
public void setExactMatch(boolean exactMatch)
exactMatch
- the new exact matchpublic boolean doesIncludeContent()
public void setDoesIncludeContent(boolean doesIncludeContent)
doesIncludeContent
- the new does include contentpublic String getTypeName()
public void setTypeName(String typeName)
Copyright © 2012-2018 Alfresco Software. All Rights Reserved.