001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portal.service.persistence;
022:
023: /**
024: * <a href="UserFinderUtil.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public class UserFinderUtil {
030: public static int countByKeywords(long companyId,
031: java.lang.String keywords, java.lang.Boolean active,
032: java.util.LinkedHashMap params)
033: throws com.liferay.portal.SystemException {
034: return getFinder().countByKeywords(companyId, keywords, active,
035: params);
036: }
037:
038: public static int countByC_FN_MN_LN_SN_EA_A(long companyId,
039: java.lang.String firstName, java.lang.String middleName,
040: java.lang.String lastName, java.lang.String screenName,
041: java.lang.String emailAddress, java.lang.Boolean active,
042: java.util.LinkedHashMap params, boolean andOperator)
043: throws com.liferay.portal.SystemException {
044: return getFinder().countByC_FN_MN_LN_SN_EA_A(companyId,
045: firstName, middleName, lastName, screenName,
046: emailAddress, active, params, andOperator);
047: }
048:
049: public static int countByC_FN_MN_LN_SN_EA_A(long companyId,
050: java.lang.String[] firstNames,
051: java.lang.String[] middleNames,
052: java.lang.String[] lastNames,
053: java.lang.String[] screenNames,
054: java.lang.String[] emailAddresses,
055: java.lang.Boolean active, java.util.LinkedHashMap params,
056: boolean andOperator)
057: throws com.liferay.portal.SystemException {
058: return getFinder().countByC_FN_MN_LN_SN_EA_A(companyId,
059: firstNames, middleNames, lastNames, screenNames,
060: emailAddresses, active, params, andOperator);
061: }
062:
063: public static java.util.List findByKeywords(long companyId,
064: java.lang.String keywords, java.lang.Boolean active,
065: java.util.LinkedHashMap params, int begin, int end,
066: com.liferay.portal.kernel.util.OrderByComparator obc)
067: throws com.liferay.portal.SystemException {
068: return getFinder().findByKeywords(companyId, keywords, active,
069: params, begin, end, obc);
070: }
071:
072: public static java.util.List findByC_FN_MN_LN_SN_EA_A(
073: long companyId, java.lang.String firstName,
074: java.lang.String middleName, java.lang.String lastName,
075: java.lang.String screenName, java.lang.String emailAddress,
076: java.lang.Boolean active, java.util.LinkedHashMap params,
077: boolean andOperator, int begin, int end,
078: com.liferay.portal.kernel.util.OrderByComparator obc)
079: throws com.liferay.portal.SystemException {
080: return getFinder().findByC_FN_MN_LN_SN_EA_A(companyId,
081: firstName, middleName, lastName, screenName,
082: emailAddress, active, params, andOperator, begin, end,
083: obc);
084: }
085:
086: public static java.util.List findByC_FN_MN_LN_SN_EA_A(
087: long companyId, java.lang.String[] firstNames,
088: java.lang.String[] middleNames,
089: java.lang.String[] lastNames,
090: java.lang.String[] screenNames,
091: java.lang.String[] emailAddresses,
092: java.lang.Boolean active, java.util.LinkedHashMap params,
093: boolean andOperator, int begin, int end,
094: com.liferay.portal.kernel.util.OrderByComparator obc)
095: throws com.liferay.portal.SystemException {
096: return getFinder().findByC_FN_MN_LN_SN_EA_A(companyId,
097: firstNames, middleNames, lastNames, screenNames,
098: emailAddresses, active, params, andOperator, begin,
099: end, obc);
100: }
101:
102: public static UserFinder getFinder() {
103: return _getUtil()._finder;
104: }
105:
106: public void setFinder(UserFinder finder) {
107: _finder = finder;
108: }
109:
110: private static UserFinderUtil _getUtil() {
111: if (_util == null) {
112: _util = (UserFinderUtil) com.liferay.portal.kernel.bean.BeanLocatorUtil
113: .locate(_UTIL);
114: }
115:
116: return _util;
117: }
118:
119: private static final String _UTIL = UserFinderUtil.class.getName();
120: private static UserFinderUtil _util;
121: private UserFinder _finder;
122: }
|