1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
12   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
13   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
14   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
15   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
16   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
17   * SOFTWARE.
18   */
19  
20  package com.liferay.portlet.journal.service.persistence;
21  
22  /**
23   * <a href="JournalStructureFinderUtil.java.html"><b><i>View Source</i></b></a>
24   *
25   * @author Brian Wing Shun Chan
26   *
27   */
28  public class JournalStructureFinderUtil {
29      public static int countByKeywords(long companyId, long groupId,
30          java.lang.String keywords) throws com.liferay.portal.SystemException {
31          return getFinder().countByKeywords(companyId, groupId, keywords);
32      }
33  
34      public static int countByC_G_S_N_D(long companyId, long groupId,
35          java.lang.String structureId, java.lang.String name,
36          java.lang.String description, boolean andOperator)
37          throws com.liferay.portal.SystemException {
38          return getFinder()
39                     .countByC_G_S_N_D(companyId, groupId, structureId, name,
40              description, andOperator);
41      }
42  
43      public static int countByC_G_S_N_D(long companyId, long groupId,
44          java.lang.String[] structureIds, java.lang.String[] names,
45          java.lang.String[] descriptions, boolean andOperator)
46          throws com.liferay.portal.SystemException {
47          return getFinder()
48                     .countByC_G_S_N_D(companyId, groupId, structureIds, names,
49              descriptions, andOperator);
50      }
51  
52      public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByKeywords(
53          long companyId, long groupId, java.lang.String keywords, int start,
54          int end, com.liferay.portal.kernel.util.OrderByComparator obc)
55          throws com.liferay.portal.SystemException {
56          return getFinder()
57                     .findByKeywords(companyId, groupId, keywords, start, end, obc);
58      }
59  
60      public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByC_G_S_N_D(
61          long companyId, long groupId, java.lang.String structureId,
62          java.lang.String name, java.lang.String description,
63          boolean andOperator, int start, int end,
64          com.liferay.portal.kernel.util.OrderByComparator obc)
65          throws com.liferay.portal.SystemException {
66          return getFinder()
67                     .findByC_G_S_N_D(companyId, groupId, structureId, name,
68              description, andOperator, start, end, obc);
69      }
70  
71      public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByC_G_S_N_D(
72          long companyId, long groupId, java.lang.String[] structureIds,
73          java.lang.String[] names, java.lang.String[] descriptions,
74          boolean andOperator, int start, int end,
75          com.liferay.portal.kernel.util.OrderByComparator obc)
76          throws com.liferay.portal.SystemException {
77          return getFinder()
78                     .findByC_G_S_N_D(companyId, groupId, structureIds, names,
79              descriptions, andOperator, start, end, obc);
80      }
81  
82      public static JournalStructureFinder getFinder() {
83          return _finder;
84      }
85  
86      public void setFinder(JournalStructureFinder finder) {
87          _finder = finder;
88      }
89  
90      private static JournalStructureFinder _finder;
91  }