Class SearchCond
- java.lang.Object
-
- org.apache.syncope.core.persistence.api.dao.search.AbstractSearchCond
-
- org.apache.syncope.core.persistence.api.dao.search.SearchCond
-
- All Implemented Interfaces:
Serializable
public class SearchCond extends AbstractSearchCond
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SearchCond.Type
-
Constructor Summary
Constructors Constructor Description SearchCond()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
static SearchCond
getAnd(List<SearchCond> conditions)
static SearchCond
getAnd(SearchCond left, SearchCond right)
Optional<AnyTypeCond>
getAnyTypeCond()
<T extends AbstractSearchCond>
Optional<T>getLeaf(Class<T> clazz)
static SearchCond
getLeaf(AbstractSearchCond leaf)
SearchCond
getLeft()
static SearchCond
getNotLeaf(AbstractSearchCond leaf)
static SearchCond
getOr(List<SearchCond> conditions)
static SearchCond
getOr(SearchCond left, SearchCond right)
SearchCond
getRight()
SearchCond.Type
getType()
String
hasAnyTypeCond()
Not a simple getter: recursively scans the search condition tree.int
hashCode()
boolean
isValid()
String
toString()
-
-
-
Method Detail
-
getLeaf
public static SearchCond getLeaf(AbstractSearchCond leaf)
-
getNotLeaf
public static SearchCond getNotLeaf(AbstractSearchCond leaf)
-
getAnd
public static SearchCond getAnd(SearchCond left, SearchCond right)
-
getAnd
public static SearchCond getAnd(List<SearchCond> conditions)
-
getOr
public static SearchCond getOr(SearchCond left, SearchCond right)
-
getOr
public static SearchCond getOr(List<SearchCond> conditions)
-
getAnyTypeCond
public Optional<AnyTypeCond> getAnyTypeCond()
-
hasAnyTypeCond
public String hasAnyTypeCond()
Not a simple getter: recursively scans the search condition tree.- Returns:
- the AnyType key or
NULL
if no type condition was found
-
getLeaf
public <T extends AbstractSearchCond> Optional<T> getLeaf(Class<T> clazz)
-
getLeft
public SearchCond getLeft()
-
getRight
public SearchCond getRight()
-
getType
public SearchCond.Type getType()
-
isValid
public boolean isValid()
- Specified by:
isValid
in classAbstractSearchCond
-
-