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