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="PermissionUserFinderUtil.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public class PermissionUserFinderUtil {
030: public static int countByOrgGroupPermissions(long companyId,
031: java.lang.String name, java.lang.String primKey,
032: java.lang.String actionId)
033: throws com.liferay.portal.SystemException {
034: return getFinder().countByOrgGroupPermissions(companyId, name,
035: primKey, actionId);
036: }
037:
038: public static int countByPermissionAndRole(long companyId,
039: long groupId, java.lang.String name,
040: java.lang.String primKey, java.lang.String actionId,
041: java.lang.String firstName, java.lang.String middleName,
042: java.lang.String lastName, java.lang.String emailAddress,
043: boolean andOperator)
044: throws com.liferay.portal.SystemException {
045: return getFinder().countByPermissionAndRole(companyId, groupId,
046: name, primKey, actionId, firstName, middleName,
047: lastName, emailAddress, andOperator);
048: }
049:
050: public static int countByUserAndOrgGroupPermission(long companyId,
051: java.lang.String name, java.lang.String primKey,
052: java.lang.String actionId, java.lang.String firstName,
053: java.lang.String middleName, java.lang.String lastName,
054: java.lang.String emailAddress, boolean andOperator)
055: throws com.liferay.portal.SystemException {
056: return getFinder().countByUserAndOrgGroupPermission(companyId,
057: name, primKey, actionId, firstName, middleName,
058: lastName, emailAddress, andOperator);
059: }
060:
061: public static java.util.List findByPermissionAndRole(
062: long companyId, long groupId, java.lang.String name,
063: java.lang.String primKey, java.lang.String actionId,
064: java.lang.String firstName, java.lang.String middleName,
065: java.lang.String lastName, java.lang.String emailAddress,
066: boolean andOperator, int begin, int end)
067: throws com.liferay.portal.SystemException {
068: return getFinder().findByPermissionAndRole(companyId, groupId,
069: name, primKey, actionId, firstName, middleName,
070: lastName, emailAddress, andOperator, begin, end);
071: }
072:
073: public static java.util.List findByUserAndOrgGroupPermission(
074: long companyId, java.lang.String name,
075: java.lang.String primKey, java.lang.String actionId,
076: java.lang.String firstName, java.lang.String middleName,
077: java.lang.String lastName, java.lang.String emailAddress,
078: boolean andOperator, int begin, int end)
079: throws com.liferay.portal.SystemException {
080: return getFinder().findByUserAndOrgGroupPermission(companyId,
081: name, primKey, actionId, firstName, middleName,
082: lastName, emailAddress, andOperator, begin, end);
083: }
084:
085: public static PermissionUserFinder getFinder() {
086: return _getUtil()._finder;
087: }
088:
089: public void setFinder(PermissionUserFinder finder) {
090: _finder = finder;
091: }
092:
093: private static PermissionUserFinderUtil _getUtil() {
094: if (_util == null) {
095: _util = (PermissionUserFinderUtil) com.liferay.portal.kernel.bean.BeanLocatorUtil
096: .locate(_UTIL);
097: }
098:
099: return _util;
100: }
101:
102: private static final String _UTIL = PermissionUserFinderUtil.class
103: .getName();
104: private static PermissionUserFinderUtil _util;
105: private PermissionUserFinder _finder;
106: }
|