--- /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.service.ServiceWrapper;
+
+/**
+ * <p>
+ * This class is a wrapper for {@link ScratchService}.
+ * </p>
+ *
+ * @author Barma Igor - Amblard Mathieu
+ * @see ScratchService
+ * @generated
+ */
+public class ScratchServiceWrapper implements ScratchService,
+ ServiceWrapper<ScratchService> {
+ public ScratchServiceWrapper(ScratchService scratchService) {
+ _scratchService = scratchService;
+ }
+
+ /**
+ * Returns the Spring bean ID for this bean.
+ *
+ * @return the Spring bean ID for this bean
+ */
+ public java.lang.String getBeanIdentifier() {
+ return _scratchService.getBeanIdentifier();
+ }
+
+ /**
+ * Sets the Spring bean ID for this bean.
+ *
+ * @param beanIdentifier the Spring bean ID for this bean
+ */
+ public void setBeanIdentifier(java.lang.String beanIdentifier) {
+ _scratchService.setBeanIdentifier(beanIdentifier);
+ }
+
+ public java.lang.Object invokeMethod(java.lang.String name,
+ java.lang.String[] parameterTypes, java.lang.Object[] arguments)
+ throws java.lang.Throwable {
+ return _scratchService.invokeMethod(name, parameterTypes, arguments);
+ }
+
+ /**
+ * Returns the scratch files in the user's schoolbag
+ *
+ * @param userId
+ * @return JSONObject with all user's scratch files
+ */
+ public com.liferay.portal.kernel.json.JSONObject getScratchFiles(
+ long userId)
+ throws com.liferay.portal.kernel.exception.PortalException,
+ com.liferay.portal.kernel.exception.SystemException {
+ return _scratchService.getScratchFiles(userId);
+ }
+
+ /**
+ * Returns the content of the given scratch file
+ *
+ * @param userId
+ * @param fileEntryId
+ * @return JSONObject - the scratch file name and content
+ */
+ public com.liferay.portal.kernel.json.JSONObject getScratchFile(
+ long userId, long fileEntryId)
+ throws com.liferay.portal.kernel.exception.PortalException,
+ com.liferay.portal.kernel.exception.SystemException {
+ return _scratchService.getScratchFile(userId, fileEntryId);
+ }
+
+ /**
+ * This method saves a scratch file in the user's schoolbag
+ *
+ * @param params - The map containing userId, fileEntryId, fileName and content
+ * @return JSONObject success or not
+ */
+ public com.liferay.portal.kernel.json.JSONObject saveScratchFile(
+ java.lang.String params)
+ throws com.liferay.portal.kernel.exception.PortalException,
+ com.liferay.portal.kernel.exception.SystemException {
+ return _scratchService.saveScratchFile(params);
+ }
+
+ /**
+ * @deprecated Renamed to {@link #getWrappedService}
+ */
+ public ScratchService getWrappedScratchService() {
+ return _scratchService;
+ }
+
+ /**
+ * @deprecated Renamed to {@link #setWrappedService}
+ */
+ public void setWrappedScratchService(ScratchService scratchService) {
+ _scratchService = scratchService;
+ }
+
+ public ScratchService getWrappedService() {
+ return _scratchService;
+ }
+
+ public void setWrappedService(ScratchService scratchService) {
+ _scratchService = scratchService;
+ }
+
+ private ScratchService _scratchService;
+}
\ No newline at end of file