public class OCAuthoritySearchCriteria
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
AUTHORITY_TYPE_GROUP |
static java.lang.String |
AUTHORITY_TYPE_USER |
static java.lang.String |
ORDER_TYPE_ASC |
static java.lang.String |
ORDER_TYPE_DESC |
Modifier and Type | Method and Description |
---|---|
static OCAuthoritySearchCriteria |
createSearchCriteria(java.lang.String authorityType,
OCAuthoritySearchCriterion criterion,
java.lang.String orderType,
java.lang.String childOfAuthority,
java.lang.String authorityHasChild)
Static factory method that returns a new, validated OCAuthoritySearchCriteria bean instance.
|
java.lang.String |
getAuthorityHasChild() |
java.lang.String |
getAuthorityType() |
java.lang.String |
getChildOfAuthority() |
OCAuthoritySearchCriterion |
getCriterion() |
java.lang.String |
getOrderType() |
void |
setAuthorityHasChild(java.lang.String authorityHasChild) |
void |
setAuthorityType(java.lang.String authorityType) |
void |
setChildOfAuthority(java.lang.String childOfAuthority) |
void |
setCriterion(OCAuthoritySearchCriterion criterion) |
void |
setOrderType(java.lang.String orderType) |
static void |
validate(OCAuthoritySearchCriteria criteria) |
public static final java.lang.String AUTHORITY_TYPE_USER
public static final java.lang.String AUTHORITY_TYPE_GROUP
public static final java.lang.String ORDER_TYPE_ASC
public static final java.lang.String ORDER_TYPE_DESC
public static OCAuthoritySearchCriteria createSearchCriteria(java.lang.String authorityType, OCAuthoritySearchCriterion criterion, java.lang.String orderType, java.lang.String childOfAuthority, java.lang.String authorityHasChild)
authorityType
- - Which type of authority to search on. Cannot be null, AUTHORITY_TYPE_USER
("user") or AUTHORITY_TYPE_GROUP
("group")criterion
- - Define criterion to search on. Can be null, see OCAuthoritySearchCriterion
orderType
- - Define how to sort results. Can be null, if supplied, must be either ORDER_TYPE_ASC
("asc") or ORDER_TYPE_DESC
("desc")childOfAuthority
- - Filter results on whether or not authorities are children of the supplied authority. For instance, if you are searching for users who are a member of a group, supply the group name here. Can be null.authorityHasChild
- - NOT CURRENTLY SUPPORTED, PASS NULL IN. Filter results on whether or not this authority has the specified authority as a child. Can be null.java.lang.IllegalArgumentException
public static void validate(OCAuthoritySearchCriteria criteria)
criteria
- java.lang.IllegalArgumentException
public java.lang.String getAuthorityType()
public void setAuthorityType(java.lang.String authorityType)
authorityType
- the authorityType to setpublic OCAuthoritySearchCriterion getCriterion()
public void setCriterion(OCAuthoritySearchCriterion criterion)
criterion
- the criterion to setpublic java.lang.String getOrderType()
public void setOrderType(java.lang.String orderType)
orderType
- the orderType to setpublic java.lang.String getChildOfAuthority()
public void setChildOfAuthority(java.lang.String childOfAuthority)
childOfAuthority
- the childOfAuthority to setpublic java.lang.String getAuthorityHasChild()
public void setAuthorityHasChild(java.lang.String authorityHasChild)
authorityHasChild
- the authorityHasChild to set