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