--- /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.blogEntryInfos.service;
+
+import com.liferay.portal.service.ServiceWrapper;
+
+/**
+ * <p>
+ * This class is a wrapper for {@link NewsWidgetsLocalService}.
+ * </p>
+ *
+ * @author Tardy Camille
+ * @see NewsWidgetsLocalService
+ * @generated
+ */
+public class NewsWidgetsLocalServiceWrapper implements NewsWidgetsLocalService,
+ ServiceWrapper<NewsWidgetsLocalService> {
+ public NewsWidgetsLocalServiceWrapper(
+ NewsWidgetsLocalService newsWidgetsLocalService) {
+ _newsWidgetsLocalService = newsWidgetsLocalService;
+ }
+
+ /**
+ * Returns the Spring bean ID for this bean.
+ *
+ * @return the Spring bean ID for this bean
+ */
+ public java.lang.String getBeanIdentifier() {
+ return _newsWidgetsLocalService.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) {
+ _newsWidgetsLocalService.setBeanIdentifier(beanIdentifier);
+ }
+
+ public java.lang.Object invokeMethod(java.lang.String name,
+ java.lang.String[] parameterTypes, java.lang.Object[] arguments)
+ throws java.lang.Throwable {
+ return _newsWidgetsLocalService.invokeMethod(name, parameterTypes,
+ arguments);
+ }
+
+ /**
+ * service to delete a news from widget
+ *
+ * @param blogEntryInfoId the blog entry info to delete
+ * @param isWelcomePage if it's on welcome page delete all instance of blog entry (for all groups with the news)
+ * @param the user wich delete the news
+ * @return
+ */
+ public com.liferay.portal.kernel.json.JSONObject deleteNews(
+ long blogEntryInfoId, boolean isWelcomePage,
+ com.liferay.portal.model.User currentUser) {
+ return _newsWidgetsLocalService.deleteNews(blogEntryInfoId,
+ isWelcomePage, currentUser);
+ }
+
+ /**
+ * service to add a news from widget
+ *
+ * @param title the title of new to create
+ * @param content content of news to create
+ * @param headMaster boolean which represent if it's a head master news of group news
+ * @param highPriority boolean to set the high priority of the news
+ * @param priority boolean to set the priority of the news
+ * @param imageId the thumbnail image id
+ * @param mediaFileId the media to add in document
+ * @param grpIds list of groups ID the news is for
+ * @param attachFiles the list of file ID to attach to the news
+ * @param releaseDate the release date of the news
+ * @param expireDate the expire date of the news (will be unpublish at this date)
+ * @param currentUser the user which create the news
+ * @param serviceContext
+ * @return
+ */
+ public com.liferay.portal.kernel.json.JSONObject addNews(
+ java.lang.String title, java.lang.String content, boolean headMaster,
+ boolean highPriority, boolean priority, long imageId, long mediaFileId,
+ long[] grpIds, long[] attachFiles, java.util.Date releaseDate,
+ java.util.Date expireDate, com.liferay.portal.model.User currentUser,
+ com.liferay.portal.theme.ThemeDisplay themeDisplay,
+ com.liferay.portal.service.ServiceContext serviceContext) {
+ return _newsWidgetsLocalService.addNews(title, content, headMaster,
+ highPriority, priority, imageId, mediaFileId, grpIds, attachFiles,
+ releaseDate, expireDate, currentUser, themeDisplay, serviceContext);
+ }
+
+ /**
+ * Get the user permission in news
+ * has right to add news ? has right for HM news ? has right on delegation?
+ *
+ * @param scopeGroup the application group scope (in group view or personnal view)
+ * @param currentUser the user which need informations
+ * @return
+ */
+ public com.liferay.portal.kernel.json.JSONObject getUserNewsPermissionsAndContext(
+ com.liferay.portal.model.Group scopeGroup,
+ com.liferay.portal.model.User currentUser) {
+ return _newsWidgetsLocalService.getUserNewsPermissionsAndContext(scopeGroup,
+ currentUser);
+ }
+
+ /**
+ * GEt all the news to display for a user
+ *
+ * @param currentUser the user which need news
+ * @param scopeGroupId the scope scope id needed if it is not the welcome page
+ * @param startLimit the start limit to get news
+ * @param endLimit the end limit to get news
+ * @param isWelcomePage true if it is the welcome page which ask the news
+ * @param themeDisplay
+ * @return
+ */
+ public com.liferay.portal.kernel.json.JSONObject getAllNews(
+ com.liferay.portal.model.User currentUser, long scopeGroupId,
+ int startLimit, int endLimit, boolean isWelcomePage,
+ boolean getNewsGroups, boolean getNewsHM, boolean getNewsHighPriority,
+ com.liferay.portal.theme.ThemeDisplay themeDisplay) {
+ return _newsWidgetsLocalService.getAllNews(currentUser, scopeGroupId,
+ startLimit, endLimit, isWelcomePage, getNewsGroups, getNewsHM,
+ getNewsHighPriority, themeDisplay);
+ }
+
+ /**
+ * Validate that a user read a news from the blog entry Info ID of this news
+ *
+ * @param blogEntryInfoId
+ * @param currentUser
+ * @return
+ */
+ public com.liferay.portal.kernel.json.JSONObject validateHighPrioNewsRead(
+ long blogEntryInfoId, com.liferay.portal.model.User currentUser) {
+ return _newsWidgetsLocalService.validateHighPrioNewsRead(blogEntryInfoId,
+ currentUser);
+ }
+
+ /**
+ * get users which have right to delegate
+ *
+ * @param currentUser
+ * @return
+ */
+ public com.liferay.portal.kernel.json.JSONObject getDelegate(
+ com.liferay.portal.model.User currentUser) {
+ return _newsWidgetsLocalService.getDelegate(currentUser);
+ }
+
+ /**
+ * validate the delegation and save it in database for the current user etab or school comple
+ *
+ * @param currentUser
+ * @param usersToDelegate
+ * @return
+ */
+ public com.liferay.portal.kernel.json.JSONObject validateDelegate(
+ com.liferay.portal.model.User currentUser,
+ com.liferay.portal.kernel.json.JSONArray usersToDelegate) {
+ return _newsWidgetsLocalService.validateDelegate(currentUser,
+ usersToDelegate);
+ }
+
+ /**
+ * Edit a news
+ *
+ * @param blogEntryInfoId the news to edit
+ * @param title new title
+ * @param content new content
+ * @param headMaster is the news an head master one
+ * @param highPriority is a high priority news
+ * @param priority is a priority news
+ * @param imageId the new thumbnail
+ * @param existingImageId the existing thumbnail
+ * @param mediaFileId the media file id to add
+ * @param deleteCurrentMedia is current media deleted (or replaced)
+ * @param grpIds list of groups
+ * @param attachFiles list of news attach files
+ * @param existingAttachFiles list of news attach files not deleted
+ * @param isWelcomePage is the welcome page
+ * @param releaseDate release date
+ * @param expireDate expiration date
+ * @param currentUser user which edit
+ * @param themeDisplay
+ * @param serviceContext
+ * @return
+ * @throws SystemException
+ * @throws PortalException
+ * @throws IOException
+ */
+ public com.liferay.portal.kernel.json.JSONObject editNews(
+ long blogEntryInfoId, java.lang.String title, java.lang.String content,
+ boolean headMaster, boolean highPriority, boolean priority,
+ long imageId, long existingImageId, long mediaFileId,
+ boolean deleteCurrentMedia, long[] grpIds, long[] newAttachFiles,
+ java.lang.String[] existingAttachFiles, boolean isWelcomePage,
+ java.util.Date releaseDate, java.util.Date expireDate,
+ com.liferay.portal.model.User currentUser,
+ com.liferay.portal.theme.ThemeDisplay themeDisplay,
+ com.liferay.portal.service.ServiceContext serviceContext) {
+ return _newsWidgetsLocalService.editNews(blogEntryInfoId, title,
+ content, headMaster, highPriority, priority, imageId,
+ existingImageId, mediaFileId, deleteCurrentMedia, grpIds,
+ newAttachFiles, existingAttachFiles, isWelcomePage, releaseDate,
+ expireDate, currentUser, themeDisplay, serviceContext);
+ }
+
+ /**
+ * validate the delegation and save it in database for the current user etab or school comple
+ *
+ * @param currentUser
+ * @param usersToDelegate
+ * @return
+ */
+ public com.liferay.portal.kernel.json.JSONObject sendToDropbox(
+ long blogEntryInfoId, java.lang.String fileName,
+ com.liferay.portal.model.User user) {
+ return _newsWidgetsLocalService.sendToDropbox(blogEntryInfoId,
+ fileName, user);
+ }
+
+ /**
+ * get broadcast group for news preparation, user can select on this group to broadcast his news
+ *
+ * @param user
+ * @param search
+ * @return
+ */
+ public com.liferay.portal.kernel.json.JSONObject getBroadcastGroup(
+ java.lang.String search, com.liferay.portal.model.User user) {
+ return _newsWidgetsLocalService.getBroadcastGroup(search, user);
+ }
+
+ /**
+ * get the list of user per etab that can be editor on news HM
+ *
+ * @param themeDisplay
+ * @param user
+ * @return
+ */
+ public com.liferay.portal.kernel.json.JSONObject getUserListAvalaibleForDelegation(
+ com.liferay.portal.theme.ThemeDisplay themeDisplay,
+ com.liferay.portal.model.User user) {
+ return _newsWidgetsLocalService.getUserListAvalaibleForDelegation(themeDisplay,
+ user);
+ }
+
+ /**
+ * @deprecated Renamed to {@link #getWrappedService}
+ */
+ public NewsWidgetsLocalService getWrappedNewsWidgetsLocalService() {
+ return _newsWidgetsLocalService;
+ }
+
+ /**
+ * @deprecated Renamed to {@link #setWrappedService}
+ */
+ public void setWrappedNewsWidgetsLocalService(
+ NewsWidgetsLocalService newsWidgetsLocalService) {
+ _newsWidgetsLocalService = newsWidgetsLocalService;
+ }
+
+ public NewsWidgetsLocalService getWrappedService() {
+ return _newsWidgetsLocalService;
+ }
+
+ public void setWrappedService(
+ NewsWidgetsLocalService newsWidgetsLocalService) {
+ _newsWidgetsLocalService = newsWidgetsLocalService;
+ }
+
+ private NewsWidgetsLocalService _newsWidgetsLocalService;
+}
\ No newline at end of file