|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.stratelia.webactiv.beans.admin.dao.GroupSearchCriteriaForDAO
public class GroupSearchCriteriaForDAO
An implementation of the search criteria for user groups stored in a SQL data source and used by the DAOs. By default, the criterion are linked together by a conjonction operator. Nevertheless, you can explicitly specify it by using the GroupSearchCriteriaForDAO#and() method.
| Field Summary |
|---|
| Fields inherited from interface com.stratelia.webactiv.beans.admin.SearchCriteria |
|---|
ANY |
| Method Summary | |
|---|---|
GroupSearchCriteriaForDAO |
and()
Appends a criteria conjonction. |
List<String> |
getCriterionOnDomainIds()
|
Set<UserState> |
getCriterionOnUserStatesToExclude()
|
PaginationPage |
getPagination()
Gets the criterion on the pagination page to fetch. |
boolean |
isCriterionOnDomainIdSet()
|
boolean |
isEmpty()
Is this criteria empty? |
boolean |
isPaginationSet()
Is the pagination criterion set? |
static GroupSearchCriteriaForDAO |
newCriteria()
|
GroupSearchCriteriaForDAO |
onAccessLevels(UserAccessLevel... accessLevels)
Appends a criterion on the user access level for which the search must be constrained to. |
SearchCriteria |
onAsRootGroup()
|
SearchCriteria |
onComponentInstanceId(String instanceId)
Appends a criterion on the component instance for which the search must be constrained to. |
GroupSearchCriteriaForDAO |
onDomainId(String domainId)
Appends a criterion on the user domain for which the search must be constrained to. |
GroupSearchCriteriaForDAO |
onGroupIds(String... groupIds)
Appends a criterion on the user groups for which the search must be constrained to. |
GroupSearchCriteriaForDAO |
onMixedDomainOronDomainId(String domainId)
|
GroupSearchCriteriaForDAO |
onName(String name)
Appends a criterion on the resources name for which the search must be constrained to. |
SearchCriteria |
onPagination(PaginationPage page)
Appends a criteria on a resources pagination. |
SearchCriteria |
onResourceId(String resourceId)
Appends a criterion on a given component instance's resource for which the search must be constrained to. |
SearchCriteria |
onRoleNames(String... roleIds)
Appends a criterion on the user roles for which the search must be constrained to. |
SearchCriteria |
onSuperGroupId(String superGroupId)
|
SearchCriteria |
onUserIds(String... userIds)
Appends a criteria on the user profiles for which the search must be constrained to. |
SearchCriteria |
onUserStatesToExclude(UserState... userStates)
Appends a criteria on the user states that must exclude users from the result. |
GroupSearchCriteriaForDAO |
or()
Appends a criteria disjonction. |
String |
toSQLQuery(String fields)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static GroupSearchCriteriaForDAO newCriteria()
public GroupSearchCriteriaForDAO and()
SearchCriteria
and in interface SearchCriteriapublic GroupSearchCriteriaForDAO or()
SearchCriteria
or in interface SearchCriteriapublic GroupSearchCriteriaForDAO onName(String name)
SearchCriteria
onName in interface SearchCriterianame - a pattern on the name the resources to fetch must have.
public GroupSearchCriteriaForDAO onGroupIds(String... groupIds)
SearchCriteria
onGroupIds in interface SearchCriteriagroupIds - the unique identifiers of the groups.
public GroupSearchCriteriaForDAO onDomainId(String domainId)
SearchCriteria
onDomainId in interface SearchCriteriadomainId - the unique identifier of the user domain.
public GroupSearchCriteriaForDAO onAccessLevels(UserAccessLevel... accessLevels)
SearchCriteria
onAccessLevels in interface SearchCriteriaaccessLevels - the access levels aimed.
public SearchCriteria onUserStatesToExclude(UserState... userStates)
SearchCriteria
onUserStatesToExclude in interface SearchCriteriauserStates - the user states that exclude users from the result.
public GroupSearchCriteriaForDAO onMixedDomainOronDomainId(String domainId)
public SearchCriteria onUserIds(String... userIds)
SearchCriteria
onUserIds in interface SearchCriteriauserIds - the user identifiers.
public SearchCriteria onRoleNames(String... roleIds)
SearchCriteria
onRoleNames in interface SearchCriteriaroleIds - the name of the user roles on which the criterion has to be built.
public SearchCriteria onSuperGroupId(String superGroupId)
public SearchCriteria onAsRootGroup()
public String toSQLQuery(String fields)
public String toString()
toString in class Objectpublic boolean isEmpty()
SearchCriteria
isEmpty in interface SearchCriteriapublic boolean isCriterionOnDomainIdSet()
public List<String> getCriterionOnDomainIds()
public Set<UserState> getCriterionOnUserStatesToExclude()
public SearchCriteria onComponentInstanceId(String instanceId)
SearchCriteria
onComponentInstanceId in interface SearchCriteriainstanceId - the unique identifier of the component instance.
public SearchCriteria onResourceId(String resourceId)
SearchCriteria
onResourceId in interface SearchCriteriaresourceId - the unique identifier of the resource managed in the component instance. As
each resource is particular to a given Silverpeas component, the unique identifier is made up
of the resource type and of the resource identifier.
public SearchCriteria onPagination(PaginationPage page)
SearchCriteria
onPagination in interface SearchCriteriapage - the page of resources to fetch.
public PaginationPage getPagination()
public boolean isPaginationSet()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||