Liferay 7.0-ce-b4

com.liferay.portal.service.persistence.impl
Class UserFinderImpl

java.lang.Object
  extended by com.liferay.portal.service.persistence.impl.BasePersistenceImpl<User>
      extended by com.liferay.portal.service.persistence.impl.UserFinderBaseImpl
          extended by com.liferay.portal.service.persistence.impl.UserFinderImpl
All Implemented Interfaces:
SessionFactory, BasePersistence<User>, UserFinder

public class UserFinderImpl
extends UserFinderBaseImpl
implements UserFinder


Field Summary
static String COUNT_BY_SOCIAL_USERS
           
static String COUNT_BY_USER
           
static String FIND_BY_C_FN_MN_LN_SN_EA_S
           
static String FIND_BY_NO_ANNOUNCEMENTS_DELIVERIES
           
static String FIND_BY_NO_CONTACTS
           
static String FIND_BY_NO_GROUPS
           
static String FIND_BY_SOCIAL_USERS
           
static String FIND_BY_USERS_GROUPS
           
static String FIND_BY_USERS_ORGS
           
static String FIND_BY_USERS_ORGS_GROUP
           
static String FIND_BY_USERS_USER_GROUPS
           
static String JOIN_BY_ANNOUNCEMENTS_DELIVERY_EMAIL_OR_SMS
           
static String JOIN_BY_CONTACT_TWITTER_SN
           
static String JOIN_BY_GROUPS_ORGS
           
static String JOIN_BY_GROUPS_USER_GROUPS
           
static String JOIN_BY_NO_ORGANIZATIONS
           
static String JOIN_BY_SOCIAL_MUTUAL_RELATION
           
static String JOIN_BY_SOCIAL_MUTUAL_RELATION_TYPE
           
static String JOIN_BY_SOCIAL_RELATION
           
static String JOIN_BY_SOCIAL_RELATION_TYPE
           
static String JOIN_BY_USER_GROUP_ROLE
           
static String JOIN_BY_USERS_GROUPS
           
static String JOIN_BY_USERS_ORGS
           
static String JOIN_BY_USERS_ORGS_TREE
           
static String JOIN_BY_USERS_PASSWORD_POLICIES
           
static String JOIN_BY_USERS_ROLES
           
static String JOIN_BY_USERS_TEAMS
           
static String JOIN_BY_USERS_USER_GROUPS
           
 
Fields inherited from class com.liferay.portal.service.persistence.impl.UserFinderBaseImpl
userPersistence
 
Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
CAST_CLOB_TEXT_OPEN, COUNT_COLUMN_NAME, FINDER_ARGS_EMPTY, listeners, NULL_SAFE_STRING_COMPARATOR, ORDER_BY_ASC, ORDER_BY_ASC_HAS_NEXT, ORDER_BY_CLAUSE, ORDER_BY_DESC, ORDER_BY_DESC_HAS_NEXT, WHERE_AND, WHERE_GREATER_THAN, WHERE_GREATER_THAN_HAS_NEXT, WHERE_LESSER_THAN, WHERE_LESSER_THAN_HAS_NEXT, WHERE_OR
 
Constructor Summary
UserFinderImpl()
           
 
Method Summary
 int countByC_FN_MN_LN_SN_EA_S(long companyId, String[] firstNames, String[] middleNames, String[] lastNames, String[] screenNames, String[] emailAddresses, int status, LinkedHashMap<String,Object> params, boolean andOperator)
           
 int countByC_FN_MN_LN_SN_EA_S(long companyId, String firstName, String middleName, String lastName, String screenName, String emailAddress, int status, LinkedHashMap<String,Object> params, boolean andOperator)
           
 Map<Long,Integer> countByGroups(long companyId, int status, long[] groupIds)
           
 int countByKeywords(long companyId, String keywords, int status, LinkedHashMap<String,Object> params)
           
 int countBySocialUsers(long companyId, long userId, int socialRelationType, String socialRelationTypeComparator, int status)
           
 int countByUser(long userId, LinkedHashMap<String,Object> params)
           
protected  List<Long> doFindByC_FN_MN_LN_SN_EA_S(long companyId, String[] firstNames, String[] middleNames, String[] lastNames, String[] screenNames, String[] emailAddresses, int status, LinkedHashMap<String,Object> params, boolean andOperator, int start, int end, OrderByComparator<User> obc)
           
 List<User> findByC_FN_MN_LN_SN_EA_S(long companyId, String[] firstNames, String[] middleNames, String[] lastNames, String[] screenNames, String[] emailAddresses, int status, LinkedHashMap<String,Object> params, boolean andOperator, int start, int end, OrderByComparator<User> obc)
           
 List<User> findByC_FN_MN_LN_SN_EA_S(long companyId, String firstName, String middleName, String lastName, String screenName, String emailAddress, int status, LinkedHashMap<String,Object> params, boolean andOperator, int start, int end, OrderByComparator<User> obc)
           
 List<User> findByKeywords(long companyId, String keywords, int status, LinkedHashMap<String,Object> params, int start, int end, OrderByComparator<User> obc)
           
 List<User> findByNoAnnouncementsDeliveries(String type)
           
 List<User> findByNoContacts()
           
 List<User> findByNoGroups()
           
 List<User> findBySocialUsers(long companyId, long userId, int socialRelationType, String socialRelationTypeComparator, int status, int start, int end, OrderByComparator<User> obc)
           
protected  String getJoin(LinkedHashMap<String,Object> params)
           
protected  String getJoin(String key, Object value)
           
protected  String getWhere(LinkedHashMap<String,Object> params)
           
protected  String getWhere(String key, Object value)
           
protected  String replaceJoinAndWhere(String sql, LinkedHashMap<String,Object> params)
           
protected  void setJoin(QueryPos qPos, LinkedHashMap<String,Object> params)
           
 
Methods inherited from class com.liferay.portal.service.persistence.impl.UserFinderBaseImpl
getBadColumnNames, getUserPersistence, setUserPersistence
 
Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
appendOrderByComparator, appendOrderByComparator, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getClassLoader, getColumnName, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, getTableColumnsMap, openNewSession, openSession, processException, registerListener, remove, remove, removeConjunction, removeImpl, setDataSource, setModelClass, setSessionFactory, unregisterListener, update, update, update, update, updateImpl, updateImpl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COUNT_BY_SOCIAL_USERS

public static final String COUNT_BY_SOCIAL_USERS

COUNT_BY_USER

public static final String COUNT_BY_USER

FIND_BY_NO_ANNOUNCEMENTS_DELIVERIES

public static final String FIND_BY_NO_ANNOUNCEMENTS_DELIVERIES

FIND_BY_NO_CONTACTS

public static final String FIND_BY_NO_CONTACTS

FIND_BY_NO_GROUPS

public static final String FIND_BY_NO_GROUPS

FIND_BY_SOCIAL_USERS

public static final String FIND_BY_SOCIAL_USERS

FIND_BY_USERS_GROUPS

public static final String FIND_BY_USERS_GROUPS

FIND_BY_USERS_ORGS

public static final String FIND_BY_USERS_ORGS

FIND_BY_USERS_ORGS_GROUP

public static final String FIND_BY_USERS_ORGS_GROUP

FIND_BY_USERS_USER_GROUPS

public static final String FIND_BY_USERS_USER_GROUPS

FIND_BY_C_FN_MN_LN_SN_EA_S

public static final String FIND_BY_C_FN_MN_LN_SN_EA_S

JOIN_BY_CONTACT_TWITTER_SN

public static final String JOIN_BY_CONTACT_TWITTER_SN

JOIN_BY_GROUPS_ORGS

public static final String JOIN_BY_GROUPS_ORGS

JOIN_BY_GROUPS_USER_GROUPS

public static final String JOIN_BY_GROUPS_USER_GROUPS

JOIN_BY_NO_ORGANIZATIONS

public static final String JOIN_BY_NO_ORGANIZATIONS

JOIN_BY_USER_GROUP_ROLE

public static final String JOIN_BY_USER_GROUP_ROLE

JOIN_BY_USERS_GROUPS

public static final String JOIN_BY_USERS_GROUPS

JOIN_BY_USERS_ORGS

public static final String JOIN_BY_USERS_ORGS

JOIN_BY_USERS_ORGS_TREE

public static final String JOIN_BY_USERS_ORGS_TREE

JOIN_BY_USERS_PASSWORD_POLICIES

public static final String JOIN_BY_USERS_PASSWORD_POLICIES

JOIN_BY_USERS_ROLES

public static final String JOIN_BY_USERS_ROLES

JOIN_BY_USERS_TEAMS

public static final String JOIN_BY_USERS_TEAMS

JOIN_BY_USERS_USER_GROUPS

public static final String JOIN_BY_USERS_USER_GROUPS

JOIN_BY_ANNOUNCEMENTS_DELIVERY_EMAIL_OR_SMS

public static final String JOIN_BY_ANNOUNCEMENTS_DELIVERY_EMAIL_OR_SMS

JOIN_BY_SOCIAL_MUTUAL_RELATION

public static final String JOIN_BY_SOCIAL_MUTUAL_RELATION

JOIN_BY_SOCIAL_MUTUAL_RELATION_TYPE

public static final String JOIN_BY_SOCIAL_MUTUAL_RELATION_TYPE

JOIN_BY_SOCIAL_RELATION

public static final String JOIN_BY_SOCIAL_RELATION

JOIN_BY_SOCIAL_RELATION_TYPE

public static final String JOIN_BY_SOCIAL_RELATION_TYPE
Constructor Detail

UserFinderImpl

public UserFinderImpl()
Method Detail

countByGroups

public Map<Long,Integer> countByGroups(long companyId,
                                       int status,
                                       long[] groupIds)
Specified by:
countByGroups in interface UserFinder

countBySocialUsers

public int countBySocialUsers(long companyId,
                              long userId,
                              int socialRelationType,
                              String socialRelationTypeComparator,
                              int status)
Specified by:
countBySocialUsers in interface UserFinder

countByUser

public int countByUser(long userId,
                       LinkedHashMap<String,Object> params)
Specified by:
countByUser in interface UserFinder

countByKeywords

public int countByKeywords(long companyId,
                           String keywords,
                           int status,
                           LinkedHashMap<String,Object> params)
Specified by:
countByKeywords in interface UserFinder

countByC_FN_MN_LN_SN_EA_S

public int countByC_FN_MN_LN_SN_EA_S(long companyId,
                                     String firstName,
                                     String middleName,
                                     String lastName,
                                     String screenName,
                                     String emailAddress,
                                     int status,
                                     LinkedHashMap<String,Object> params,
                                     boolean andOperator)
Specified by:
countByC_FN_MN_LN_SN_EA_S in interface UserFinder

countByC_FN_MN_LN_SN_EA_S

public int countByC_FN_MN_LN_SN_EA_S(long companyId,
                                     String[] firstNames,
                                     String[] middleNames,
                                     String[] lastNames,
                                     String[] screenNames,
                                     String[] emailAddresses,
                                     int status,
                                     LinkedHashMap<String,Object> params,
                                     boolean andOperator)
Specified by:
countByC_FN_MN_LN_SN_EA_S in interface UserFinder

findByKeywords

public List<User> findByKeywords(long companyId,
                                 String keywords,
                                 int status,
                                 LinkedHashMap<String,Object> params,
                                 int start,
                                 int end,
                                 OrderByComparator<User> obc)
Specified by:
findByKeywords in interface UserFinder

findByNoAnnouncementsDeliveries

public List<User> findByNoAnnouncementsDeliveries(String type)
Specified by:
findByNoAnnouncementsDeliveries in interface UserFinder

findByNoContacts

public List<User> findByNoContacts()
Specified by:
findByNoContacts in interface UserFinder

findByNoGroups

public List<User> findByNoGroups()
Specified by:
findByNoGroups in interface UserFinder

findBySocialUsers

public List<User> findBySocialUsers(long companyId,
                                    long userId,
                                    int socialRelationType,
                                    String socialRelationTypeComparator,
                                    int status,
                                    int start,
                                    int end,
                                    OrderByComparator<User> obc)
Specified by:
findBySocialUsers in interface UserFinder

findByC_FN_MN_LN_SN_EA_S

public List<User> findByC_FN_MN_LN_SN_EA_S(long companyId,
                                           String firstName,
                                           String middleName,
                                           String lastName,
                                           String screenName,
                                           String emailAddress,
                                           int status,
                                           LinkedHashMap<String,Object> params,
                                           boolean andOperator,
                                           int start,
                                           int end,
                                           OrderByComparator<User> obc)
Specified by:
findByC_FN_MN_LN_SN_EA_S in interface UserFinder

findByC_FN_MN_LN_SN_EA_S

public List<User> findByC_FN_MN_LN_SN_EA_S(long companyId,
                                           String[] firstNames,
                                           String[] middleNames,
                                           String[] lastNames,
                                           String[] screenNames,
                                           String[] emailAddresses,
                                           int status,
                                           LinkedHashMap<String,Object> params,
                                           boolean andOperator,
                                           int start,
                                           int end,
                                           OrderByComparator<User> obc)
Specified by:
findByC_FN_MN_LN_SN_EA_S in interface UserFinder

doFindByC_FN_MN_LN_SN_EA_S

protected List<Long> doFindByC_FN_MN_LN_SN_EA_S(long companyId,
                                                String[] firstNames,
                                                String[] middleNames,
                                                String[] lastNames,
                                                String[] screenNames,
                                                String[] emailAddresses,
                                                int status,
                                                LinkedHashMap<String,Object> params,
                                                boolean andOperator,
                                                int start,
                                                int end,
                                                OrderByComparator<User> obc)

getJoin

protected String getJoin(LinkedHashMap<String,Object> params)

getJoin

protected String getJoin(String key,
                         Object value)

getWhere

protected String getWhere(LinkedHashMap<String,Object> params)

getWhere

protected String getWhere(String key,
                          Object value)

replaceJoinAndWhere

protected String replaceJoinAndWhere(String sql,
                                     LinkedHashMap<String,Object> params)

setJoin

protected void setJoin(QueryPos qPos,
                       LinkedHashMap<String,Object> params)

Liferay 7.0-ce-b4