|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.stratelia.webactiv.beans.admin.dao.UserSearchCriteriaForDAO
public class UserSearchCriteriaForDAO
An implementation of the search criteria for user details 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 UserSearchCriteriaForDAO#and() method.
| Field Summary |
|---|
| Fields inherited from interface com.stratelia.webactiv.beans.admin.SearchCriteria |
|---|
ANY |
| Method Summary | |
|---|---|
UserSearchCriteriaForDAO |
and()
Appends a criteria conjonction. |
PaginationPage |
getPagination()
Gets the criterion on the pagination page to fetch. |
boolean |
isEmpty()
Is this criteria empty? |
boolean |
isPaginationSet()
Is the pagination criterion set? |
static UserSearchCriteriaForDAO |
newCriteria()
|
UserSearchCriteriaForDAO |
onAccessLevels(UserAccessLevel... accessLevels)
Appends a criterion on the user access level for which the search must be constrained to. |
SearchCriteria |
onComponentInstanceId(String instanceId)
Appends a criterion on the component instance for which the search must be constrained to. |
UserSearchCriteriaForDAO |
onDomainId(String domainId)
Appends a criterion on the user domain for which the search must be constrained to. |
UserSearchCriteriaForDAO |
onGroupIds(String... groupIds)
Appends a criterion on the user groups for which the search must be constrained to. |
UserSearchCriteriaForDAO |
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 |
onUserIds(String... userIds)
Appends a criteria on the user profiles for which the search must be constrained to. |
UserSearchCriteriaForDAO |
onUserStatesToExclude(UserState... userStates)
Appends a criteria on the user states that must exclude users from the result. |
UserSearchCriteriaForDAO |
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 UserSearchCriteriaForDAO newCriteria()
public UserSearchCriteriaForDAO and()
SearchCriteria
and in interface SearchCriteriapublic UserSearchCriteriaForDAO or()
SearchCriteria
or in interface SearchCriteriapublic UserSearchCriteriaForDAO onName(String name)
SearchCriteria
onName in interface SearchCriterianame - a pattern on the name the resources to fetch must have.
public UserSearchCriteriaForDAO onGroupIds(String... groupIds)
SearchCriteria
onGroupIds in interface SearchCriteriagroupIds - the unique identifiers of the groups.
public UserSearchCriteriaForDAO onAccessLevels(UserAccessLevel... accessLevels)
SearchCriteria
onAccessLevels in interface SearchCriteriaaccessLevels - the access levels aimed.
public UserSearchCriteriaForDAO onDomainId(String domainId)
SearchCriteria
onDomainId in interface SearchCriteriadomainId - the unique identifier of the user domain.
public SearchCriteria onUserIds(String... userIds)
SearchCriteria
onUserIds in interface SearchCriteriauserIds - the user identifiers.
public UserSearchCriteriaForDAO onUserStatesToExclude(UserState... userStates)
SearchCriteria
onUserStatesToExclude in interface SearchCriteriauserStates - the user states that exclude users from the result.
public String toSQLQuery(String fields)
public String toString()
toString in class Objectpublic boolean isEmpty()
SearchCriteria
isEmpty in interface SearchCriteriapublic 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 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 | |||||||||