public class DBMemberQueryUtil
extends java.lang.Object
Constructor and Description |
---|
DBMemberQueryUtil() |
Modifier and Type | Method and Description |
---|---|
static org.hibernate.criterion.Criterion |
getEnabledCriterion(java.lang.Boolean enabled)
Retrieve an Hibernate Criterion to retrieve DBMember enabled or disabled.
|
static org.hibernate.criterion.Criterion |
getExternalAuthCriterion(java.lang.Boolean externalAuth)
Retrieve an Hibernate Criterion to search for enabled account suppoting either all authentication or external authentication only.
|
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 |
getGroupOffCriterion(java.util.Collection<Group> groups)
Retrieve an Hibernate Criterion to retrieve DBMember which are
not in any of the specified groups and any of its descendant.
|
static org.hibernate.criterion.Criterion |
getGuestCriterion(java.lang.Boolean isGuest)
Retrieve an Hibernate Criterion to retrieve DBMember guest or not guest.
|
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 getGroupOffCriterion(java.util.Collection<Group> groups)
groups
- a Collection of Group to excludepublic 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 getEnabledCriterion(java.lang.Boolean enabled)
enabled
- TRUE to search for enabled DBMember, FALSE to search for disabled Member, null to return null criterionpublic static org.hibernate.criterion.Criterion getExternalAuthCriterion(java.lang.Boolean externalAuth)
externalAuth
- TRUE to search for enabled DBMember account supporting only external authentication, FALSE to search for enabled DBMember account supporting all authentication (local password and external), null to return null criterion.public static org.hibernate.criterion.Criterion getGuestCriterion(java.lang.Boolean isGuest)
isGuest
- TRUE to search for guests DBMember, FALSE to search for non guests Member, null to return null criterionpublic 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 optional group (may be null)Copyright © 2001-2022 Jalios SA. All Rights Reserved.