1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portal.service.persistence;
24  
25  /**
26   * <a href="UserFinderUtil.java.html"><b><i>View Source</i></b></a>
27   *
28   * @author Brian Wing Shun Chan
29   *
30   */
31  public class UserFinderUtil {
32      public static int countByKeywords(long companyId,
33          java.lang.String keywords, java.lang.Boolean active,
34          java.util.LinkedHashMap<String, Object> params)
35          throws com.liferay.portal.SystemException {
36          return getFinder().countByKeywords(companyId, keywords, active, params);
37      }
38  
39      public static int countByC_FN_MN_LN_SN_EA_A(long companyId,
40          java.lang.String firstName, java.lang.String middleName,
41          java.lang.String lastName, java.lang.String screenName,
42          java.lang.String emailAddress, java.lang.Boolean active,
43          java.util.LinkedHashMap<String, Object> params, boolean andOperator)
44          throws com.liferay.portal.SystemException {
45          return getFinder()
46                     .countByC_FN_MN_LN_SN_EA_A(companyId, firstName, middleName,
47              lastName, screenName, emailAddress, active, params, andOperator);
48      }
49  
50      public static int countByC_FN_MN_LN_SN_EA_A(long companyId,
51          java.lang.String[] firstNames, java.lang.String[] middleNames,
52          java.lang.String[] lastNames, java.lang.String[] screenNames,
53          java.lang.String[] emailAddresses, java.lang.Boolean active,
54          java.util.LinkedHashMap<String, Object> params, boolean andOperator)
55          throws com.liferay.portal.SystemException {
56          return getFinder()
57                     .countByC_FN_MN_LN_SN_EA_A(companyId, firstNames,
58              middleNames, lastNames, screenNames, emailAddresses, active,
59              params, andOperator);
60      }
61  
62      public static java.util.List<com.liferay.portal.model.User> findByKeywords(
63          long companyId, java.lang.String keywords, java.lang.Boolean active,
64          java.util.LinkedHashMap<String, Object> params, int start, int end,
65          com.liferay.portal.kernel.util.OrderByComparator obc)
66          throws com.liferay.portal.SystemException {
67          return getFinder()
68                     .findByKeywords(companyId, keywords, active, params, start,
69              end, obc);
70      }
71  
72      public static java.util.List<com.liferay.portal.model.User> findByNoAnnouncementsDeliveries(
73          java.lang.String type) throws com.liferay.portal.SystemException {
74          return getFinder().findByNoAnnouncementsDeliveries(type);
75      }
76  
77      public static java.util.List<com.liferay.portal.model.User> findByNoContacts()
78          throws com.liferay.portal.SystemException {
79          return getFinder().findByNoContacts();
80      }
81  
82      public static java.util.List<com.liferay.portal.model.User> findByNoGroups()
83          throws com.liferay.portal.SystemException {
84          return getFinder().findByNoGroups();
85      }
86  
87      public static java.util.List<com.liferay.portal.model.User> findByC_FN_MN_LN_SN_EA_A(
88          long companyId, java.lang.String firstName,
89          java.lang.String middleName, java.lang.String lastName,
90          java.lang.String screenName, java.lang.String emailAddress,
91          java.lang.Boolean active,
92          java.util.LinkedHashMap<String, Object> params, boolean andOperator,
93          int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
94          throws com.liferay.portal.SystemException {
95          return getFinder()
96                     .findByC_FN_MN_LN_SN_EA_A(companyId, firstName, middleName,
97              lastName, screenName, emailAddress, active, params, andOperator,
98              start, end, obc);
99      }
100 
101     public static java.util.List<com.liferay.portal.model.User> findByC_FN_MN_LN_SN_EA_A(
102         long companyId, java.lang.String[] firstNames,
103         java.lang.String[] middleNames, java.lang.String[] lastNames,
104         java.lang.String[] screenNames, java.lang.String[] emailAddresses,
105         java.lang.Boolean active,
106         java.util.LinkedHashMap<String, Object> params, boolean andOperator,
107         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
108         throws com.liferay.portal.SystemException {
109         return getFinder()
110                    .findByC_FN_MN_LN_SN_EA_A(companyId, firstNames,
111             middleNames, lastNames, screenNames, emailAddresses, active,
112             params, andOperator, start, end, obc);
113     }
114 
115     public static UserFinder getFinder() {
116         return _finder;
117     }
118 
119     public void setFinder(UserFinder finder) {
120         _finder = finder;
121     }
122 
123     private static UserFinder _finder;
124 }