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.portlet.documentlibrary.service.persistence;
022:
023: /**
024: * <a href="DLFileEntryFinderUtil.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public class DLFileEntryFinderUtil {
030: public static int countByFolderIds(java.util.List folderIds)
031: throws com.liferay.portal.SystemException {
032: return getFinder().countByFolderIds(folderIds);
033: }
034:
035: public static int countByGroupId(long groupId)
036: throws com.liferay.portal.SystemException {
037: return getFinder().countByGroupId(groupId);
038: }
039:
040: public static int countByG_U(long groupId, long userId)
041: throws com.liferay.portal.SystemException {
042: return getFinder().countByG_U(groupId, userId);
043: }
044:
045: public static java.util.List findByGroupId(long groupId, int begin,
046: int end) throws com.liferay.portal.SystemException {
047: return getFinder().findByGroupId(groupId, begin, end);
048: }
049:
050: public static java.util.List findByGroupId(long groupId, int begin,
051: int end,
052: com.liferay.portal.kernel.util.OrderByComparator obc)
053: throws com.liferay.portal.SystemException {
054: return getFinder().findByGroupId(groupId, begin, end, obc);
055: }
056:
057: public static java.util.List findByNoAssets()
058: throws com.liferay.portal.SystemException {
059: return getFinder().findByNoAssets();
060: }
061:
062: public static java.util.List findByG_U(long groupId, long userId,
063: int begin, int end)
064: throws com.liferay.portal.SystemException {
065: return getFinder().findByG_U(groupId, userId, begin, end);
066: }
067:
068: public static java.util.List findByG_U(long groupId, long userId,
069: int begin, int end,
070: com.liferay.portal.kernel.util.OrderByComparator obc)
071: throws com.liferay.portal.SystemException {
072: return getFinder().findByG_U(groupId, userId, begin, end, obc);
073: }
074:
075: public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByUuid_G(
076: java.lang.String uuid, long groupId)
077: throws com.liferay.portal.SystemException,
078: com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
079: return getFinder().findByUuid_G(uuid, groupId);
080: }
081:
082: public static DLFileEntryFinder getFinder() {
083: return _getUtil()._finder;
084: }
085:
086: public void setFinder(DLFileEntryFinder finder) {
087: _finder = finder;
088: }
089:
090: private static DLFileEntryFinderUtil _getUtil() {
091: if (_util == null) {
092: _util = (DLFileEntryFinderUtil) com.liferay.portal.kernel.bean.BeanLocatorUtil
093: .locate(_UTIL);
094: }
095:
096: return _util;
097: }
098:
099: private static final String _UTIL = DLFileEntryFinderUtil.class
100: .getName();
101: private static DLFileEntryFinderUtil _util;
102: private DLFileEntryFinder _finder;
103: }
|