View Javadoc
1   package de.fraunhofer.fokus.oefit.particity.service;
2   
3   import com.liferay.portal.kernel.bean.PortletBeanLocatorUtil;
4   import com.liferay.portal.kernel.util.ReferenceRegistry;
5   import com.liferay.portal.service.InvokableLocalService;
6   
7   /**
8    * Provides the local service utility for AHOrg. This utility wraps
9    * {@link de.fraunhofer.fokus.oefit.particity.service.impl.AHOrgLocalServiceImpl} and is the
10   * primary access point for service operations in application layer code running
11   * on the local server. Methods of this service will not have security checks
12   * based on the propagated JAAS credentials because this service can only be
13   * accessed from within the same VM.
14   *
15   * @author Brian Wing Shun Chan
16   * @see AHOrgLocalService
17   * @see de.fraunhofer.fokus.oefit.particity.service.base.AHOrgLocalServiceBaseImpl
18   * @see de.fraunhofer.fokus.oefit.particity.service.impl.AHOrgLocalServiceImpl
19   * @generated
20   */
21  public class AHOrgLocalServiceUtil {
22      private static AHOrgLocalService _service;
23  
24      /*
25       * NOTE FOR DEVELOPERS:
26       *
27       * Never modify this class directly. Add custom service methods to {@link de.fraunhofer.fokus.oefit.particity.service.impl.AHOrgLocalServiceImpl} and rerun ServiceBuilder to regenerate this class.
28       */
29  
30      /**
31      * Adds the a h org to the database. Also notifies the appropriate model listeners.
32      *
33      * @param ahOrg the a h org
34      * @return the a h org that was added
35      * @throws SystemException if a system exception occurred
36      */
37      public static de.fraunhofer.fokus.oefit.particity.model.AHOrg addAHOrg(
38          de.fraunhofer.fokus.oefit.particity.model.AHOrg ahOrg)
39          throws com.liferay.portal.kernel.exception.SystemException {
40          return getService().addAHOrg(ahOrg);
41      }
42  
43      /**
44      * Creates a new a h org with the primary key. Does not add the a h org to the database.
45      *
46      * @param orgId the primary key for the new a h org
47      * @return the new a h org
48      */
49      public static de.fraunhofer.fokus.oefit.particity.model.AHOrg createAHOrg(
50          long orgId) {
51          return getService().createAHOrg(orgId);
52      }
53  
54      /**
55      * Deletes the a h org with the primary key from the database. Also notifies the appropriate model listeners.
56      *
57      * @param orgId the primary key of the a h org
58      * @return the a h org that was removed
59      * @throws PortalException if a a h org with the primary key could not be found
60      * @throws SystemException if a system exception occurred
61      */
62      public static de.fraunhofer.fokus.oefit.particity.model.AHOrg deleteAHOrg(
63          long orgId)
64          throws com.liferay.portal.kernel.exception.PortalException,
65              com.liferay.portal.kernel.exception.SystemException {
66          return getService().deleteAHOrg(orgId);
67      }
68  
69      /**
70      * Deletes the a h org from the database. Also notifies the appropriate model listeners.
71      *
72      * @param ahOrg the a h org
73      * @return the a h org that was removed
74      * @throws SystemException if a system exception occurred
75      */
76      public static de.fraunhofer.fokus.oefit.particity.model.AHOrg deleteAHOrg(
77          de.fraunhofer.fokus.oefit.particity.model.AHOrg ahOrg)
78          throws com.liferay.portal.kernel.exception.SystemException {
79          return getService().deleteAHOrg(ahOrg);
80      }
81  
82      public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
83          return getService().dynamicQuery();
84      }
85  
86      /**
87      * Performs a dynamic query on the database and returns the matching rows.
88      *
89      * @param dynamicQuery the dynamic query
90      * @return the matching rows
91      * @throws SystemException if a system exception occurred
92      */
93      @SuppressWarnings("rawtypes")
94      public static java.util.List dynamicQuery(
95          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
96          throws com.liferay.portal.kernel.exception.SystemException {
97          return getService().dynamicQuery(dynamicQuery);
98      }
99  
100     /**
101     * Performs a dynamic query on the database and returns a range of the matching rows.
102     *
103     * <p>
104     * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link de.fraunhofer.fokus.oefit.particity.model.impl.AHOrgModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
105     * </p>
106     *
107     * @param dynamicQuery the dynamic query
108     * @param start the lower bound of the range of model instances
109     * @param end the upper bound of the range of model instances (not inclusive)
110     * @return the range of matching rows
111     * @throws SystemException if a system exception occurred
112     */
113     @SuppressWarnings("rawtypes")
114     public static java.util.List dynamicQuery(
115         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
116         int end) throws com.liferay.portal.kernel.exception.SystemException {
117         return getService().dynamicQuery(dynamicQuery, start, end);
118     }
119 
120     /**
121     * Performs a dynamic query on the database and returns an ordered range of the matching rows.
122     *
123     * <p>
124     * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link de.fraunhofer.fokus.oefit.particity.model.impl.AHOrgModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
125     * </p>
126     *
127     * @param dynamicQuery the dynamic query
128     * @param start the lower bound of the range of model instances
129     * @param end the upper bound of the range of model instances (not inclusive)
130     * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
131     * @return the ordered range of matching rows
132     * @throws SystemException if a system exception occurred
133     */
134     @SuppressWarnings("rawtypes")
135     public static java.util.List dynamicQuery(
136         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
137         int end,
138         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
139         throws com.liferay.portal.kernel.exception.SystemException {
140         return getService()
141                    .dynamicQuery(dynamicQuery, start, end, orderByComparator);
142     }
143 
144     /**
145     * Returns the number of rows that match the dynamic query.
146     *
147     * @param dynamicQuery the dynamic query
148     * @return the number of rows that match the dynamic query
149     * @throws SystemException if a system exception occurred
150     */
151     public static long dynamicQueryCount(
152         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
153         throws com.liferay.portal.kernel.exception.SystemException {
154         return getService().dynamicQueryCount(dynamicQuery);
155     }
156 
157     /**
158     * Returns the number of rows that match the dynamic query.
159     *
160     * @param dynamicQuery the dynamic query
161     * @param projection the projection to apply to the query
162     * @return the number of rows that match the dynamic query
163     * @throws SystemException if a system exception occurred
164     */
165     public static long dynamicQueryCount(
166         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
167         com.liferay.portal.kernel.dao.orm.Projection projection)
168         throws com.liferay.portal.kernel.exception.SystemException {
169         return getService().dynamicQueryCount(dynamicQuery, projection);
170     }
171 
172     public static de.fraunhofer.fokus.oefit.particity.model.AHOrg fetchAHOrg(
173         long orgId) throws com.liferay.portal.kernel.exception.SystemException {
174         return getService().fetchAHOrg(orgId);
175     }
176 
177     /**
178     * Returns the a h org with the primary key.
179     *
180     * @param orgId the primary key of the a h org
181     * @return the a h org
182     * @throws PortalException if a a h org with the primary key could not be found
183     * @throws SystemException if a system exception occurred
184     */
185     public static de.fraunhofer.fokus.oefit.particity.model.AHOrg getAHOrg(
186         long orgId)
187         throws com.liferay.portal.kernel.exception.PortalException,
188             com.liferay.portal.kernel.exception.SystemException {
189         return getService().getAHOrg(orgId);
190     }
191 
192     public static com.liferay.portal.model.PersistedModel getPersistedModel(
193         java.io.Serializable primaryKeyObj)
194         throws com.liferay.portal.kernel.exception.PortalException,
195             com.liferay.portal.kernel.exception.SystemException {
196         return getService().getPersistedModel(primaryKeyObj);
197     }
198 
199     /**
200     * Returns a range of all the a h orgs.
201     *
202     * <p>
203     * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link de.fraunhofer.fokus.oefit.particity.model.impl.AHOrgModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
204     * </p>
205     *
206     * @param start the lower bound of the range of a h orgs
207     * @param end the upper bound of the range of a h orgs (not inclusive)
208     * @return the range of a h orgs
209     * @throws SystemException if a system exception occurred
210     */
211     public static java.util.List<de.fraunhofer.fokus.oefit.particity.model.AHOrg> getAHOrgs(
212         int start, int end)
213         throws com.liferay.portal.kernel.exception.SystemException {
214         return getService().getAHOrgs(start, end);
215     }
216 
217     /**
218     * Returns the number of a h orgs.
219     *
220     * @return the number of a h orgs
221     * @throws SystemException if a system exception occurred
222     */
223     public static int getAHOrgsCount()
224         throws com.liferay.portal.kernel.exception.SystemException {
225         return getService().getAHOrgsCount();
226     }
227 
228     /**
229     * Updates the a h org in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
230     *
231     * @param ahOrg the a h org
232     * @return the a h org that was updated
233     * @throws SystemException if a system exception occurred
234     */
235     public static de.fraunhofer.fokus.oefit.particity.model.AHOrg updateAHOrg(
236         de.fraunhofer.fokus.oefit.particity.model.AHOrg ahOrg)
237         throws com.liferay.portal.kernel.exception.SystemException {
238         return getService().updateAHOrg(ahOrg);
239     }
240 
241     /**
242     * Returns the Spring bean ID for this bean.
243     *
244     * @return the Spring bean ID for this bean
245     */
246     public static java.lang.String getBeanIdentifier() {
247         return getService().getBeanIdentifier();
248     }
249 
250     /**
251     * Sets the Spring bean ID for this bean.
252     *
253     * @param beanIdentifier the Spring bean ID for this bean
254     */
255     public static void setBeanIdentifier(java.lang.String beanIdentifier) {
256         getService().setBeanIdentifier(beanIdentifier);
257     }
258 
259     public static java.lang.Object invokeMethod(java.lang.String name,
260         java.lang.String[] parameterTypes, java.lang.Object[] arguments)
261         throws java.lang.Throwable {
262         return getService().invokeMethod(name, parameterTypes, arguments);
263     }
264 
265     public static de.fraunhofer.fokus.oefit.particity.model.AHOrg addOrganisation(
266         java.lang.String owner, java.lang.String name, java.lang.String holder,
267         java.lang.String descr, java.lang.String legalStatus, long addressId,
268         long contactId) {
269         return getService()
270                    .addOrganisation(owner, name, holder, descr, legalStatus,
271             addressId, contactId);
272     }
273 
274     public static void addOrganisationUser(long orgId, java.lang.String userMail) {
275         getService().addOrganisationUser(orgId, userMail);
276     }
277 
278     public static int countNewOrg() {
279         return getService().countNewOrg();
280     }
281 
282     public static void deleteOrganisation(long orgId) {
283         getService().deleteOrganisation(orgId);
284     }
285 
286     public static de.fraunhofer.fokus.oefit.particity.model.AHOrg getOrganisationByOwnerMail(
287         java.lang.String owner) {
288         return getService().getOrganisationByOwnerMail(owner);
289     }
290 
291     public static de.fraunhofer.fokus.oefit.particity.model.AHOrg getOrganisationByUserMail(
292         java.lang.String userMail) {
293         return getService().getOrganisationByUserMail(userMail);
294     }
295 
296     public static java.util.List<de.fraunhofer.fokus.oefit.particity.model.AHOrg> getOrganisations(
297         int start, int end, java.lang.String column, java.lang.String order) {
298         return getService().getOrganisations(start, end, column, order);
299     }
300 
301     public static java.util.List<de.fraunhofer.fokus.oefit.particity.model.AHOrg> listOrganisations() {
302         return getService().listOrganisations();
303     }
304 
305     public static void setOrganisationStatus(long orgId, int status) {
306         getService().setOrganisationStatus(orgId, status);
307     }
308 
309     public static void updateLogoLocation(long orgId,
310         java.lang.String logoLocation) {
311         getService().updateLogoLocation(orgId, logoLocation);
312     }
313 
314     public static void updateOwner(java.lang.String oldOwner,
315         java.lang.String newOwner) {
316         getService().updateOwner(oldOwner, newOwner);
317     }
318 
319     public static void clearService() {
320         _service = null;
321     }
322 
323     public static AHOrgLocalService getService() {
324         if (_service == null) {
325             InvokableLocalService invokableLocalService = (InvokableLocalService) PortletBeanLocatorUtil.locate(ClpSerializer.getServletContextName(),
326                     AHOrgLocalService.class.getName());
327 
328             if (invokableLocalService instanceof AHOrgLocalService) {
329                 _service = (AHOrgLocalService) invokableLocalService;
330             } else {
331                 _service = new AHOrgLocalServiceClp(invokableLocalService);
332             }
333 
334             ReferenceRegistry.registerReference(AHOrgLocalServiceUtil.class,
335                 "_service");
336         }
337 
338         return _service;
339     }
340 
341     /**
342      * @deprecated As of 6.2.0
343      */
344     public void setService(AHOrgLocalService service) {
345     }
346 }