1
14
15 package com.liferay.portal.service.persistence;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18 import com.liferay.portal.kernel.util.ReferenceRegistry;
19
20
25 public class OrganizationFinderUtil {
26 public static int countByKeywords(long companyId,
27 long parentOrganizationId,
28 java.lang.String parentOrganizationIdComparator,
29 java.lang.String keywords, java.lang.String type,
30 java.lang.Long regionId, java.lang.Long countryId,
31 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params)
32 throws com.liferay.portal.SystemException {
33 return getFinder()
34 .countByKeywords(companyId, parentOrganizationId,
35 parentOrganizationIdComparator, keywords, type, regionId,
36 countryId, params);
37 }
38
39 public static int countByO_U(long organizationId, long userId)
40 throws com.liferay.portal.SystemException {
41 return getFinder().countByO_U(organizationId, userId);
42 }
43
44 public static int countByC_PO_N_T_S_C_Z_R_C(long companyId,
45 long parentOrganizationId,
46 java.lang.String parentOrganizationIdComparator, java.lang.String name,
47 java.lang.String type, java.lang.String street, java.lang.String city,
48 java.lang.String zip, java.lang.Long regionId,
49 java.lang.Long countryId,
50 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
51 boolean andOperator) throws com.liferay.portal.SystemException {
52 return getFinder()
53 .countByC_PO_N_T_S_C_Z_R_C(companyId, parentOrganizationId,
54 parentOrganizationIdComparator, name, type, street, city, zip,
55 regionId, countryId, params, andOperator);
56 }
57
58 public static int countByC_PO_N_T_S_C_Z_R_C(long companyId,
59 long parentOrganizationId,
60 java.lang.String parentOrganizationIdComparator,
61 java.lang.String[] names, java.lang.String type,
62 java.lang.String[] streets, java.lang.String[] cities,
63 java.lang.String[] zips, java.lang.Long regionId,
64 java.lang.Long countryId,
65 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
66 boolean andOperator) throws com.liferay.portal.SystemException {
67 return getFinder()
68 .countByC_PO_N_T_S_C_Z_R_C(companyId, parentOrganizationId,
69 parentOrganizationIdComparator, names, type, streets, cities, zips,
70 regionId, countryId, params, andOperator);
71 }
72
73 public static java.util.List<com.liferay.portal.model.Organization> findByKeywords(
74 long companyId, long parentOrganizationId,
75 java.lang.String parentOrganizationIdComparator,
76 java.lang.String keywords, java.lang.String type,
77 java.lang.Long regionId, java.lang.Long countryId,
78 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
79 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
80 throws com.liferay.portal.SystemException {
81 return getFinder()
82 .findByKeywords(companyId, parentOrganizationId,
83 parentOrganizationIdComparator, keywords, type, regionId,
84 countryId, params, start, end, obc);
85 }
86
87 public static java.util.List<com.liferay.portal.model.Organization> findByC_PO_N_T_S_C_Z_R_C(
88 long companyId, long parentOrganizationId,
89 java.lang.String parentOrganizationIdComparator, java.lang.String name,
90 java.lang.String type, java.lang.String street, java.lang.String city,
91 java.lang.String zip, java.lang.Long regionId,
92 java.lang.Long countryId,
93 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
94 boolean andOperator, int start, int end,
95 com.liferay.portal.kernel.util.OrderByComparator obc)
96 throws com.liferay.portal.SystemException {
97 return getFinder()
98 .findByC_PO_N_T_S_C_Z_R_C(companyId, parentOrganizationId,
99 parentOrganizationIdComparator, name, type, street, city, zip,
100 regionId, countryId, params, andOperator, start, end, obc);
101 }
102
103 public static java.util.List<com.liferay.portal.model.Organization> findByC_PO_N_T_S_C_Z_R_C(
104 long companyId, long parentOrganizationId,
105 java.lang.String parentOrganizationIdComparator,
106 java.lang.String[] names, java.lang.String type,
107 java.lang.String[] streets, java.lang.String[] cities,
108 java.lang.String[] zips, java.lang.Long regionId,
109 java.lang.Long countryId,
110 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
111 boolean andOperator, int start, int end,
112 com.liferay.portal.kernel.util.OrderByComparator obc)
113 throws com.liferay.portal.SystemException {
114 return getFinder()
115 .findByC_PO_N_T_S_C_Z_R_C(companyId, parentOrganizationId,
116 parentOrganizationIdComparator, names, type, streets, cities, zips,
117 regionId, countryId, params, andOperator, start, end, obc);
118 }
119
120 public static OrganizationFinder getFinder() {
121 if (_finder == null) {
122 _finder = (OrganizationFinder)PortalBeanLocatorUtil.locate(OrganizationFinder.class.getName());
123
124 ReferenceRegistry.registerReference(OrganizationFinderUtil.class,
125 "_finder");
126 }
127
128 return _finder;
129 }
130
131 public void setFinder(OrganizationFinder finder) {
132 _finder = finder;
133
134 ReferenceRegistry.registerReference(OrganizationFinderUtil.class,
135 "_finder");
136 }
137
138 private static OrganizationFinder _finder;
139 }