--- /dev/null
+/**
+ * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
+ *
+ * This library is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU Lesser General Public License as published by the Free
+ * Software Foundation; either version 2.1 of the License, or (at your option)
+ * any later version.
+ *
+ * This library is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ */
+
+package com.pentila.entSavoie.cartable.service;
+
+import com.liferay.portal.kernel.bean.PortletBeanLocatorUtil;
+import com.liferay.portal.kernel.util.ReferenceRegistry;
+import com.liferay.portal.service.InvokableService;
+
+/**
+ * The utility for the snap remote service. This utility wraps {@link com.pentila.entSavoie.cartable.service.impl.SnapServiceImpl} and is the primary access point for service operations in application layer code running on a remote server.
+ *
+ * <p>
+ * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.
+ * </p>
+ *
+ * @author Barma Igor - Amblard Mathieu
+ * @see SnapService
+ * @see com.pentila.entSavoie.cartable.service.base.SnapServiceBaseImpl
+ * @see com.pentila.entSavoie.cartable.service.impl.SnapServiceImpl
+ * @generated
+ */
+public class SnapServiceUtil {
+ /*
+ * NOTE FOR DEVELOPERS:
+ *
+ * Never modify this class directly. Add custom service methods to {@link com.pentila.entSavoie.cartable.service.impl.SnapServiceImpl} and rerun ServiceBuilder to regenerate this class.
+ */
+
+ /**
+ * Returns the Spring bean ID for this bean.
+ *
+ * @return the Spring bean ID for this bean
+ */
+ public static java.lang.String getBeanIdentifier() {
+ return getService().getBeanIdentifier();
+ }
+
+ /**
+ * Sets the Spring bean ID for this bean.
+ *
+ * @param beanIdentifier the Spring bean ID for this bean
+ */
+ public static void setBeanIdentifier(java.lang.String beanIdentifier) {
+ getService().setBeanIdentifier(beanIdentifier);
+ }
+
+ public static java.lang.Object invokeMethod(java.lang.String name,
+ java.lang.String[] parameterTypes, java.lang.Object[] arguments)
+ throws java.lang.Throwable {
+ return getService().invokeMethod(name, parameterTypes, arguments);
+ }
+
+ /**
+ * Returns the snap files in the user's schoolbag
+ *
+ * @param userId
+ * @return JSONObject with all user's snap files
+ */
+ public static com.liferay.portal.kernel.json.JSONObject getSnapFiles(
+ java.lang.String screenName)
+ throws com.liferay.portal.kernel.exception.PortalException,
+ com.liferay.portal.kernel.exception.SystemException {
+ return getService().getSnapFiles(screenName);
+ }
+
+ /**
+ * Returns the content of the given snap file
+ *
+ * @param userId
+ * @param fileEntryId
+ * @return JSONObject - the snap file name and content
+ */
+ public static com.liferay.portal.kernel.json.JSONObject getSnapFile(
+ java.lang.String screenName, long fileEntryId)
+ throws com.liferay.portal.kernel.exception.PortalException,
+ com.liferay.portal.kernel.exception.SystemException {
+ return getService().getSnapFile(screenName, fileEntryId);
+ }
+
+ /**
+ * This method saves a snap file in the user's schoolbag
+ *
+ * @param params - The map containing userId, fileEntryId, fileName and content
+ * @return JSONObject success or not
+ */
+ public static com.liferay.portal.kernel.json.JSONObject saveSnapFile(
+ java.lang.String params)
+ throws com.liferay.portal.kernel.exception.PortalException,
+ com.liferay.portal.kernel.exception.SystemException {
+ return getService().saveSnapFile(params);
+ }
+
+ public static void clearService() {
+ _service = null;
+ }
+
+ public static SnapService getService() {
+ if (_service == null) {
+ InvokableService invokableService = (InvokableService)PortletBeanLocatorUtil.locate(ClpSerializer.getServletContextName(),
+ SnapService.class.getName());
+
+ if (invokableService instanceof SnapService) {
+ _service = (SnapService)invokableService;
+ }
+ else {
+ _service = new SnapServiceClp(invokableService);
+ }
+
+ ReferenceRegistry.registerReference(SnapServiceUtil.class,
+ "_service");
+ }
+
+ return _service;
+ }
+
+ /**
+ * @deprecated
+ */
+ public void setService(SnapService service) {
+ }
+
+ private static SnapService _service;
+}
\ No newline at end of file