Class Search<C extends Containerable>
- java.lang.Object
-
- com.evolveum.midpoint.web.component.search.Search<C>
-
- All Implemented Interfaces:
DebugDumpable
,Serializable
public class Search<C extends Containerable> extends Object implements Serializable, DebugDumpable
- Author:
- Viliam Repan (lazyman)
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Search.PanelType
-
Field Summary
Fields Modifier and Type Field Description static String
F_ADVANCED_ERROR
static String
F_ADVANCED_QUERY
static String
F_AVAILABLE_DEFINITIONS
static String
F_COLLECTION
static String
F_COMPOSITED_SPECIAL_ITEMS
static String
F_DSL_QUERY
static String
F_FULL_TEXT
static String
F_ITEMS
static String
F_OID
static String
F_SPECIAL_ITEMS
static String
F_TYPE
-
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
-
Constructor Summary
Constructors Constructor Description Search(ContainerTypeSearchItem<C> typeSearchItem, List<SearchItemDefinition> allDefinitions)
Search(ContainerTypeSearchItem<C> typeSearchItem, List<SearchItemDefinition> allDefinitions, boolean isFullTextSearchEnabled, SearchBoxModeType searchBoxModeType, List<SearchBoxModeType> allowedSearchType, boolean isOidSearchenabled)
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDumpLazily, debugDumpLazily
-
-
-
-
Field Detail
-
F_AVAILABLE_DEFINITIONS
public static final String F_AVAILABLE_DEFINITIONS
- See Also:
- Constant Field Values
-
F_ITEMS
public static final String F_ITEMS
- See Also:
- Constant Field Values
-
F_SPECIAL_ITEMS
public static final String F_SPECIAL_ITEMS
- See Also:
- Constant Field Values
-
F_COMPOSITED_SPECIAL_ITEMS
public static final String F_COMPOSITED_SPECIAL_ITEMS
- See Also:
- Constant Field Values
-
F_ADVANCED_QUERY
public static final String F_ADVANCED_QUERY
- See Also:
- Constant Field Values
-
F_DSL_QUERY
public static final String F_DSL_QUERY
- See Also:
- Constant Field Values
-
F_ADVANCED_ERROR
public static final String F_ADVANCED_ERROR
- See Also:
- Constant Field Values
-
F_FULL_TEXT
public static final String F_FULL_TEXT
- See Also:
- Constant Field Values
-
F_OID
public static final String F_OID
- See Also:
- Constant Field Values
-
F_COLLECTION
public static final String F_COLLECTION
- See Also:
- Constant Field Values
-
F_TYPE
public static final String F_TYPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Search
public Search(ContainerTypeSearchItem<C> typeSearchItem, List<SearchItemDefinition> allDefinitions)
-
Search
public Search(ContainerTypeSearchItem<C> typeSearchItem, List<SearchItemDefinition> allDefinitions, boolean isFullTextSearchEnabled, SearchBoxModeType searchBoxModeType, List<SearchBoxModeType> allowedSearchType, boolean isOidSearchenabled)
-
-
Method Detail
-
getItems
public List<SearchItem> getItems()
-
getSpecialItems
public List<SearchItem> getSpecialItems()
-
getCompositedSpecialItem
public SearchItem getCompositedSpecialItem()
-
setSpecialItems
public void setSpecialItems(List<SearchItem> specialItems)
-
addSpecialItem
public void addSpecialItem(SearchItem item)
-
addCompositedSpecialItem
public void addCompositedSpecialItem(SearchItem item)
-
setCollectionSearchItem
public void setCollectionSearchItem(ObjectCollectionSearchItem objectCollectionSearchItem)
-
getCollectionSearchItem
public ObjectCollectionSearchItem getCollectionSearchItem()
-
isCollectionItemVisible
public boolean isCollectionItemVisible()
-
setCollectionItemVisible
public void setCollectionItemVisible(boolean collectionItemVisible)
-
getPropertyItems
public List<PropertySearchItem> getPropertyItems()
-
getFilterItems
public List<FilterSearchItem> getFilterItems()
-
getAvailableDefinitions
public List<SearchItemDefinition> getAvailableDefinitions()
-
getAllDefinitions
public List<SearchItemDefinition> getAllDefinitions()
-
addItem
public SearchItem addItem(ItemDefinition def)
-
addItem
public SearchItem addItem(SearchItemType predefinedFilter)
-
addItem
public SearchItem addItem(SearchItemDefinition def)
-
addItemToAllDefinitions
public void addItemToAllDefinitions(SearchItemDefinition itemDef)
-
delete
public void delete(SearchItem item)
-
getType
public ContainerTypeSearchItem<C> getType()
-
createObjectQuery
public ObjectQuery createObjectQuery(PageBase pageBase)
-
createObjectQuery
public ObjectQuery createObjectQuery(VariablesMap variables, PageBase pageBase)
-
createObjectQuery
public ObjectQuery createObjectQuery(VariablesMap variables, PageBase pageBase, ObjectQuery customizeContentQuery)
-
getFilterVariables
public VariablesMap getFilterVariables(VariablesMap defaultVariables, PageBase pageBase)
-
isShowAdvanced
public boolean isShowAdvanced()
-
getAdvancedQuery
public String getAdvancedQuery()
-
setAdvancedQuery
public void setAdvancedQuery(String advancedQuery)
-
getDslQuery
public String getDslQuery()
-
setDslQuery
public void setDslQuery(String dslQuery)
-
getFullText
public String getFullText()
-
setFullText
public void setFullText(String fullText)
-
isAdvancedQueryValid
public boolean isAdvancedQueryValid(PrismContext ctx)
-
getSearchType
public SearchBoxModeType getSearchType()
-
setSearchType
public void setSearchType(SearchBoxModeType searchType)
-
isFullTextSearchEnabled
public boolean isFullTextSearchEnabled()
-
setFullTextSearchEnabled
public void setFullTextSearchEnabled(boolean fullTextSearchEnabled)
-
isCanConfigure
public boolean isCanConfigure()
-
setCanConfigure
public void setCanConfigure(boolean canConfigure)
-
findPropertySearchItem
public PropertySearchItem findPropertySearchItem(ItemPath path)
-
findSpecialItem
public SearchItem findSpecialItem(ItemPath path)
-
getAdvancedError
public String getAdvancedError()
-
debugDump
public String debugDump()
Description copied from interface:DebugDumpable
Show the content of the object intended for diagnostics by system administrator. The out put should be suitable to use in system logs at "debug" level. It may be multi-line, but in that case it should be well indented and quite terse. As it is intended to be used by system administrator, it should not use any developer terms such as class names, exceptions or stack traces.- Specified by:
debugDump
in interfaceDebugDumpable
- Returns:
- content of the object intended for diagnostics by system administrator.
-
debugDump
public String debugDump(int indent)
- Specified by:
debugDump
in interfaceDebugDumpable
-
isTypeChanged
public boolean isTypeChanged()
-
searchWasReload
public void searchWasReload()
-
getOid
public String getOid()
-
setOid
public void setOid(String oid)
-
isOidSearchEnabled
public boolean isOidSearchEnabled()
-
isOidSearchMode
public boolean isOidSearchMode()
-
isAllowedSearchMode
public boolean isAllowedSearchMode(SearchBoxModeType searchBoxModeType)
-
getAllowedSearchType
public List<SearchBoxModeType> getAllowedSearchType()
-
-