public class DBMemberQueryUtil
extends java.lang.Object
Constructor and Description |
---|
DBMemberQueryUtil() |
Modifier and Type | Method and Description |
---|---|
static org.hibernate.criterion.Criterion |
getGroupCriterion(java.util.Collection<Group> groups)
Retrieve an Hibernate Criterion to retrieve DBMember in
at least one of the specified groups and any of its descendant.
|
static org.hibernate.criterion.Criterion |
getGroupCriterion(java.util.Collection<Group> groups,
boolean includeGrpDescendant)
Retrieve an Hibernate Criterion to retrieve DBMember in
at least one of the specified groups.
|
static org.hibernate.criterion.Criterion |
getLdapAccountCriterion(java.lang.Boolean ldapAccount)
Retrieve an Hibernate Criterion to retrieve DBMember who are ldapAccount or not.
|
static org.hibernate.criterion.Criterion |
getLdapSyncCriterion(java.lang.Boolean ldapSyncEnabled)
Retrieve an Hibernate Criterion to retrieve DBMember who should be synchronized with LDAP.
|
static org.hibernate.criterion.Criterion |
getLdapSynchronizedCriterion(Group group)
Return an Hibernate criterion suitable to find DBMember to synchronized with LDAP.
|
static org.hibernate.criterion.Criterion |
getTextCriterion(java.lang.String text)
Retrieve an Hibernate Criterion to retrieve DBMember matching
specified text.
|
static org.hibernate.criterion.Criterion |
getUsageCriterion(int usage)
Retrieve an Hibernate Criterion to retrieve DBMember of the specified usage.
|
static org.hibernate.criterion.Criterion |
getWorkspaceCriterion(Workspace ws)
Retrieve an Hibernate Criterion to retrieve DBMember in
at least one of the specified groups.
|
public static org.hibernate.criterion.Criterion getTextCriterion(java.lang.String text)
text
- text to searchpublic static org.hibernate.criterion.Criterion getGroupCriterion(java.util.Collection<Group> groups)
groups
- a Collection of Grouppublic static org.hibernate.criterion.Criterion getGroupCriterion(java.util.Collection<Group> groups, boolean includeGrpDescendant)
groups
- a Collection of GroupincludeGrpDescendant
- true to search for member in all descendant of the specified groups, false to search for member explicitely declared in one of the specified grouppublic static org.hibernate.criterion.Criterion getWorkspaceCriterion(Workspace ws)
ws
- a Workspace to matchpublic static org.hibernate.criterion.Criterion getUsageCriterion(int usage)
usage
- a usage to matchpublic static org.hibernate.criterion.Criterion getLdapAccountCriterion(java.lang.Boolean ldapAccount)
ldapAccount
- null to return a null Criterion, TRUE to retrieve a criterion for LDAP account only, FALSE to retrieve non LDAP account only.public static org.hibernate.criterion.Criterion getLdapSyncCriterion(java.lang.Boolean ldapSyncEnabled)
ldapSyncEnabled
- null to return a null Criterion, TRUE to retrieve a criterion for DBMember to synchronized with LDAP, FALSE to retrieve DBMember for which LDAP synchronized is disabled.public static org.hibernate.criterion.Criterion getLdapSynchronizedCriterion(Group group)
That is, DBMember mathing ALL the following criterion :
group
- an optionnal group (may be null)Copyright © 2001-2018 Jalios SA. All Rights Reserved.