|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SearchCriteria
Criteria to use in a search of resources managed and exposed in Silverpeas (like user profiles or user groups).
Field Summary | |
---|---|
static String[] |
ANY
The whatever value to be used as criterion value if you don't care of a given criterion. |
Method Summary | |
---|---|
SearchCriteria |
and()
Appends a criteria conjonction. |
boolean |
isEmpty()
Is this criteria empty? |
SearchCriteria |
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. |
SearchCriteria |
onDomainId(String domainId)
Appends a criterion on the user domain for which the search must be constrained to. |
SearchCriteria |
onGroupIds(String... groupIds)
Appends a criterion on the user groups for which the search must be constrained to. |
SearchCriteria |
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... roleNames)
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. |
SearchCriteria |
onUserStatesToExclude(UserState... userStates)
Appends a criteria on the user states that must exclude users from the result. |
SearchCriteria |
or()
Appends a criteria disjonction. |
Field Detail |
---|
static final String[] ANY
Method Detail |
---|
SearchCriteria and()
SearchCriteria onComponentInstanceId(String instanceId)
instanceId
- the unique identifier of the component instance.
SearchCriteria onResourceId(String resourceId)
resourceId
- 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.
SearchCriteria onDomainId(String domainId)
domainId
- the unique identifier of the user domain.
SearchCriteria onGroupIds(String... groupIds)
groupIds
- the unique identifiers of the groups.
SearchCriteria onAccessLevels(UserAccessLevel... accessLevels)
accessLevels
- the access levels aimed.
SearchCriteria onName(String name)
name
- a pattern on the name the resources to fetch must have.
SearchCriteria onRoleNames(String... roleNames)
roleNames
- the name of the user roles on which the criterion has to be built.
SearchCriteria onUserIds(String... userIds)
userIds
- the user identifiers.
SearchCriteria onUserStatesToExclude(UserState... userStates)
userStates
- the user states that exclude users from the result.
SearchCriteria onPagination(PaginationPage page)
page
- the page of resources to fetch.
SearchCriteria or()
boolean isEmpty()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |