--- /dev/null
+/*******************************************************************************
+ * Copyright � Igor Barma, Alexandre Desoubeaux, Christian Martel, Eric Brun, Mathieu Amblard, Gwenael Gevet, Pierre Guillot, 2012
+ * Copyright Alexandre Desoubeaux, Christian Martel, Cedric Lecarpentier, Alexandre Lefevre, Marc Salvat 2014-2016
+ * Copyright Alexandre Desoubeaux, Christian Martel, Cedric Lecarpentier, Marc Salvat, Marc Suarez, Harifetra Ramamonjy 2017
+ *
+ * This file is part of the work and learning management system Pentila Nero.
+ *
+ * Pentila Nero is free software. You can redistribute it and/or modify since
+ * you respect the terms of either (at least one of the both license) :
+ * - under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ * - the CeCILL-C as published by CeCILL-C; either version 1 of the
+ * License, or any later version
+ * - the GNU Lesser General Public License as published by the
+ * Free Software Foundation, either version 3 of the license,
+ * or (at your option) any later version.
+ *
+ * There are special exceptions to the terms and conditions of the
+ * licenses as they are applied to this software. View the full text of
+ * the exception in file LICENSE-PROJECT.txt in the directory of this software
+ * distribution.
+ *
+ * Pentila Nero 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
+ * Licenses for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * and the CeCILL-C and the GNU Lesser General Public License along with
+ * Pentila Nero. If not, see :
+ * <http://www.gnu.org/licenses/> and
+ * <http://www.cecill.info/licences.fr.html>.
+ ******************************************************************************/
+package com.pentila.entSavoie.utils;
+
+import java.util.List;
+
+import javax.naming.directory.Attributes;
+
+import com.liferay.portal.kernel.json.JSONException;
+import com.liferay.portal.model.User;
+
+public class ENTMainUtilsLocalServiceUtil {
+
+ private static ENTMainUtilsLocalService _service;
+
+ public static ENTMainUtilsLocalService getService() {
+ if (_service == null) {
+ throw new RuntimeException("ENTMainUtilsLocalService is not set");
+ }
+
+ return _service;
+ }
+
+ public void setService(ENTMainUtilsLocalService service) {
+ _service = service;
+ }
+
+ public static boolean isImportDevMode(long companyId){
+ return getService().isImportDevMode(companyId);
+ }
+
+ public static long getUploadServletRequestMaxSize(long companyId){
+ return getService().getUploadServletRequestMaxSize(companyId);
+ }
+
+ public static long getDLFileMaxSize(long companyId){
+ return getService().getDLFileMaxSize(companyId);
+ }
+
+ public static String getEtherpadUrl(long companyId){
+ return getService().getEtherpadUrl(companyId);
+ }
+
+ public static String getEtherpadApiKey(long companyId){
+ return getService().getEtherpadApiKey(companyId);
+ }
+
+ public static String getHelpMenuLink(long companyId) {
+ return getService().getHelpMenuLink(companyId);
+ }
+
+ public static String getMailDefaultAccount(long companyId){
+ return getService().getMailDefaultAccount(companyId);
+ }
+ public static String getPortletUrlRack(long companyId) {
+ return getService().getPortletUrlRack(companyId);
+ }
+ public static String getPortletUrlNews(long companyId) {
+ return getService().getPortletUrlNews(companyId);
+ }
+ public static String getPortletUrlSchoolBag(long companyId) {
+ return getService().getPortletUrlSchoolBag(companyId);
+ }
+ public static String getPortletUrlForum(long companyId) {
+ return getService().getPortletUrlForum(companyId);
+ }
+ public static String getPortletUrlGroup(long companyId) {
+ return getService().getPortletUrlGroup(companyId);
+ }
+ public static String getPortletUrlMessaging(long companyId) {
+ return getService().getPortletUrlMessaging(companyId);
+ }
+ public static String getPortletUrlTextbook(long companyId) {
+ return getService().getPortletUrlTextbook(companyId);
+ }
+ public static String getPortletUrlSearchengine(long companyId) {
+ return getService().getPortletUrlSearchengine(companyId);
+ }
+ public static String getPortletUrlAgenda(long companyId) {
+ return getService().getPortletUrlAgenda(companyId);
+ }
+ public static String getSwfToolsDirectory(long companyId) {
+ return getService().getSwfToolsDirectory(companyId);
+ }
+
+ public static boolean isEntLsoEnabled(long companyId) {
+ return getService().isEntLsoEnabled(companyId);
+ }
+
+ public static String getLSOGroupLandingPage(long companyId) {
+ return getService().getLSOGroupLandingPage(companyId);
+ }
+
+ public static String getENTOrgRootName(long companyId) {
+ return getService().getENTOrgRootName(companyId);
+ }
+
+ public static String getENTOrgRootSuffixeMail(long companyId) {
+ return getService().getENTOrgRootSuffixeMail(companyId);
+ }
+
+ public static String getENTOrgRootPortalMembersName(long companyId) {
+ return getService().getENTOrgRootPortalMembersName(companyId);
+ }
+
+ public static String getENTOrgRootDepartment(long companyId) {
+ return getService().getENTOrgRootPortalMembersName(companyId);
+ }
+
+ public static String getENTGoogleAnalyticsCode(long companyId) {
+ return getService().getENTGoogleAnalyticsCode(companyId);
+ }
+
+ public static String getENTChart(long companyId) {
+ return getService().getENTChart(companyId);
+ }
+
+ public static String getENTSynchroDefaultRole(long companyId) {
+ return getService().getENTSynchroDefaultRole(companyId);
+ }
+
+
+ public static String getXmppHost(long companyId) {
+ return getService().getXmppHost(companyId);
+ }
+
+ public static String getXmppDomain(long companyId) {
+ return getService().getXmppDomain(companyId);
+ }
+
+ public static boolean isXmppEnable(long companyId) {
+ return getService().isXmppEnable(companyId);
+ }
+
+ public static String getVisioUrl(long companyId) {
+ return getService().getVisioUrl(companyId);
+ }
+
+ public static String getVisioRtmpDomain(long companyId) {
+ return getService().getVisioRtmpDomain(companyId);
+ }
+
+ public static String getVisioRtmpService(long companyId) {
+ return getService().getVisioRtmpService(companyId);
+ }
+
+ public static String getVisioSalt(long companyId) {
+ return getService().getVisioSalt(companyId);
+ }
+
+ public static String getVisioAdminLogin(long companyId) {
+ return getService().getVisioAdminLogin(companyId);
+ }
+
+ public static String getVisioAdminPassword(long companyId) {
+ return getService().getVisioAdminPassword(companyId);
+ }
+
+ public static String getMailNoReply(long companyId) {
+ return getService().getMailNoReply(companyId);
+ }
+
+ public static String getMailRedirectSubject(long companyId) {
+ return getService().getMailRedirectSubject(companyId);
+ }
+
+ public static String getMailRedirectBody(long companyId) {
+ return getService().getMailRedirectBody(companyId);
+ }
+
+ public static String getFileErrorSwf(long companyId) {
+ return getService().getFileErrorSwf(companyId);
+ }
+
+ public static String getFileErrorFlv(long companyId) {
+ return getService().getFileErrorFlv(companyId);
+ }
+
+ public static long getEntConfirmationSenderId(long companyId) {
+ return getService().getEntConfirmationSenderId(companyId);
+ }
+
+ public static Boolean getEntSchoolImportType(long companyId) {
+ return getService().getEntSchoolImportType(companyId);
+ }
+
+ public static Boolean isGroupManagment(long companyId) {
+ return getService().isGroupManagment(companyId);
+ }
+
+ public static Boolean isSchemaSupann(long companyId){
+ return getService().isSchemaSupann(companyId);
+ }
+
+ public static String getENTSynchroEtabName(long companyId) {
+ return getService().getENTSynchroEtabName(companyId);
+ }
+
+ public static boolean isENTSynchroForceListeInst(long companyId) {
+ return getService().isENTSynchroForceListeInst(companyId);
+ }
+
+ public static Boolean isGroupIntranetEnable(long companyId) {
+ return getService().isGroupIntranetEnable(companyId);
+ }
+
+ public static Boolean isLDAPImportModifyDate(long companyId){
+ return getService().isLDAPImportModifyDate(companyId);
+ }
+
+ public static String getFlashFileStateProgress(long companyId){
+ return getService().getFlashFileStateProgress(companyId);
+ }
+
+ public static String getFlashFileStateError(long companyId){
+ return getService().getFlashFileStateError(companyId);
+ }
+
+ public static String getFlashFileStateConvert(long companyId){
+ return getService().getFlashFileStateConvert(companyId);
+ }
+
+ public static boolean getPiwikEnable(long companyId){
+ return getService().getPiwikEnable(companyId);
+ }
+
+ public static String getPiwikUrl(long companyId){
+ return getService().getPiwikUrl(companyId);
+ }
+ public static String getPiwikApiUrl(long companyId) {
+ return getService().getPiwikApiUrl(companyId);
+ }
+
+ public static String getPiwikSiteId(long companyId) {
+ return getService().getPiwikSiteId(companyId);
+ }
+
+ public static String getPiwikTokenAuth(long companyId) {
+ return getService().getPiwikTokenAuth(companyId);
+ }
+
+ public static boolean getXitiEnable(long companyId){
+ return getService().getXitiEnable(companyId);
+ }
+
+ public static int getXitiIdProjet(long companyId){
+ return getService().getXitiIdProjet(companyId);
+ }
+
+ public static int getXitiIdPlateforme(long companyId){
+ return getService().getXitiIdPlateforme(companyId);
+ }
+
+ public static int getXitiIdCollectivite(long companyId){
+ return getService().getXitiIdCollectivite(companyId);
+ }
+
+ public static int getXitiEtabId(long companyId, long etabId) throws JSONException{
+ return getService().getXitiEtabId(companyId, etabId);
+ }
+
+ public static boolean isForceSubscribeAgenda(long companyId){
+ return getService().isForceSubscribeAgenda(companyId);
+ }
+
+ public static boolean isEnableMobileNtification(long companyId){
+ return getService().isEnableMobileNtification(companyId);
+ }
+
+ public static boolean isEnableServicesNotifications(long companyId) {
+ return getService().isEnableServicesNotifications(companyId);
+ }
+
+ public static boolean isEnableMailForward(long companyId) {
+ return getService().isEnableMailForward(companyId);
+ }
+
+ public static String getPublicBlogUrl(long companyId){
+ return getService().getPublicBlogUrl(companyId);
+ }
+
+ public static String getPublicFrontBlogUrl(long companyId){
+ return getService().getPublicFrontBlogUrl(companyId);
+ }
+
+ public static String getWordpressUsername(long companyId){
+ return getService().getWordpressUsername(companyId);
+ }
+
+ public static String getWordpressPassword(long companyId){
+ return getService().getWordpressPassword(companyId);
+ }
+
+ public static String getWordpressUrl(long companyId){
+ return getService().getWordpressUrl(companyId);
+ }
+
+ public static String getWordpressAdminSuffixUrl(long companyId){
+ return getService().getWordpressAdminSuffixUrl(companyId);
+ }
+
+ public static String getWordpressSuffixUrl(long companyId){
+ return getService().getWordpressSuffixUrl(companyId);
+ }
+
+ public static String getMailAcademicSuffix(long companyId){
+ return getService().getMailAcademicSuffix(companyId);
+ }
+
+ public static boolean isWebDAVEnable(long companyId){
+ return getService().isWebDAVEnable(companyId);
+ }
+
+ public static boolean isShibbolethAuthEnable(long companyId){
+ return getService().isShibbolethAuthEnable(companyId);
+ }
+
+ public static String getShibbolethLogoutUrl(long companyId){
+ return getService().getShibbolethLogoutUrl(companyId);
+ }
+
+ public static void startLDAPSynchro(long companyId, boolean force){
+ getService().startLDAPSynchro(companyId, force);
+ }
+
+ public static String getEntGroupDefaultView(long companyId){
+ return getService().getEntGroupDefaultView(companyId);
+ }
+
+ public static boolean isENTMailSenderUseForward(long companyId){
+ return getService().isENTMailSenderUseForward(companyId);
+ }
+
+ public static String getAuthMailFilter(long companyId){
+ return getService().getAuthMailFilter(companyId);
+ }
+
+ public static String getViewAjaxJSPKey(){
+ return getService().getViewAjaxJSPKey();
+ }
+
+ public static int getDefaultPortletHeight(){
+ return getService().getDefaultPortletHeight();
+ }
+
+ public static List<String> getSpecialPortletsTheme(long companyId){
+ return getService().getSpecialPortletsTheme(companyId);
+ }
+
+ public static boolean getEntFullScreenAllowed(){
+ return getService().getEntFullScreenAllowed();
+ }
+
+ public static String getEntFullScreenMaximizeKey(){
+ return getService().getEntFullScreenMaximizeKey();
+ }
+
+ public static String[] getEntListRolesEnabled(){
+ return getService().getEntListRolesEnabled();
+ }
+
+ public static String[] getEntListRolesNationauxEnabled(){
+ return getService().getEntListRolesNationauxEnabled();
+ }
+
+ public static boolean getEntImportUtilisateursEnabled(){
+ return getService().getEntImportUtilisateursEnabled();
+ }
+
+ public static String getEntImportUtilisateursPath(){
+ return getService().getEntImportUtilisateursPath();
+ }
+
+ public static String getEntKeyLanguageSuffix(){
+ return getService().getEntKeyLanguageSuffix();
+ }
+
+ public static boolean getEntSocialActivityEnabled(){
+ return getService().getEntSocialActivityEnabled();
+ }
+
+ public static String getEntCaptchaPublicKey(){
+ return getService().getEntCaptchaPublicKey();
+ }
+
+ public static String getEntCaptchaPrivateKey(){
+ return getService().getEntCaptchaPrivateKey();
+ }
+
+ public static String getEntPlateformName(){
+ return getService().getEntPlateformName();
+ }
+
+ public static String getEntResetPasswordUrl(){
+ return getService().getEntResetPasswordUrl();
+ }
+
+ public static String getPortletId(String className){
+ return getService().getPortletId(className);
+ }
+
+ public static String addUrlAjaxParameters(String url, String className, boolean isGroup){
+ return getService().addUrlAjaxParameters(url, className, isGroup);
+ }
+
+ public static String[] getEntCategories(){
+ return getService().getEntCategories();
+ }
+
+ public static String getEntLinkEtabCategory(){
+ return getService().getEntLinkEtabCategory();
+ }
+
+ public static String[] getMimeTypes(){
+ return getService().getMimeTypes();
+ }
+
+ public static long getEntPopulationManagerId(){
+ return getService().getEntPopulationManagerId();
+ }
+
+ public static boolean isReferentNumerique(User user){
+ return getService().isReferentNumerique(user);
+ }
+
+ public static Long[] getEntIncidentsUsersNotification(){
+ return getService().getEntIncidentsUsersNotification();
+ }
+
+ public static String getLoginDefaultPageLanding(long companyId){
+ return getService().getLoginDefaultPageLanding(companyId);
+ }
+
+ public static String getLoginDefaultApplicationLanding(long companyId){
+ return getService().getLoginDefaultApplicationLanding(companyId);
+ }
+
+ public static String getJdbcEntlogUrl() {
+ return getService().getJdbcEntlogUrl();
+ }
+
+ public static String getJdbcEntlogUser() {
+ return getService().getJdbcEntlogUser();
+ }
+
+ public static String getJdbcEntlogPasswd() {
+ return getService().getJdbcEntlogPasswd();
+ }
+
+ public static List<Long> purgeExpiredUsers(long companyId) {
+ return getService().purgeExpiredUsers(companyId);
+ }
+
+ public static boolean purgeUserInDB(long userId) {
+ return getService().purgeUserInDB(userId);
+ }
+
+ public static boolean purgeUserInLDAP(long companyId, String screenName) {
+ return getService().purgeUserInLDAP(companyId, screenName);
+ }
+
+ public static String getDlHookFileSystemRootDir() {
+ return getService().getDlHookFileSystemRootDir();
+ }
+
+ public static String getUserPurgeOutputFile() {
+ return getService().getUserPurgeOutputFile();
+ }
+
+ public static boolean isDlStoreCO3(long companyId) {
+ return getService().isDlStoreCO3(companyId);
+ }
+
+ public static boolean sendSupportToLocalAdmins(long companyId) {
+ return getService().sendSupportToLocalAdmins(companyId);
+ }
+
+ public static boolean allowUsurpationForSupportAdmin(long companyId) {
+ return getService().allowUsurpationForSupportAdmin(companyId);
+ }
+
+ public static String getPlatform() {
+ return getService().getPlatform();
+ }
+
+ public static String getSupportMail() {
+ return getService().getSupportMail();
+ }
+
+ public static String getEdtPrivateKeyPath() {
+ return getService().getEdtPrivateKeyPath();
+ }
+
+ public static long getENTVieScolaireUserId() {
+ return getService().getENTVieScolaireUserId();
+ }
+
+ public static User synchronizeUser(long companyId, Attributes attributes) {
+ return getService().synchronizeUser(companyId, attributes);
+ }
+
+ public static boolean manageUserMembership(long companyId, Attributes attributes) {
+ return getService().manageUserMembership(companyId, attributes);
+ }
+
+ public static boolean isForceParentMembership(long companyId) {
+ return getService().isForceParentMembership(companyId);
+ }
+
+ public static String getEdtImportFilesDirectory() {
+ return getService().getEdtImportFilesDirectory();
+ }
+
+ public static String getOauthClientId(){
+ return getService().getOauthClientId();
+ }
+
+ public static String getOauthSecretId(){
+ return getService().getOauthSecretId();
+ }
+
+ public static String getServiceGuidePath(String serviceName){
+ return getService().getServiceGuidePath(serviceName);
+ }
+
+ public static int getMessagingStudentMaxReceivers() {
+ return getService().getMessagingStudentMaxReceivers();
+ }
+
+ public static int getMessagingParentMaxReceivers() {
+ return getService().getMessagingParentMaxReceivers();
+ }
+
+ public static int getMessagingPersonalMaxReceivers() {
+ return getService().getMessagingPersonalMaxReceivers();
+ }
+
+ public static String getPronoteStudentLinkList() {
+ return getService().getPronoteStudentLinkList();
+ }
+
+ public static String getPronoteParentLinkList() {
+ return getService().getPronoteParentLinkList();
+ }
+
+ public static String getPronoteTeacherLinkList() {
+ return getService().getPronoteTeacherLinkList();
+ }
+
+ public static String getEdxBaseUrl(){
+ return getService().getEdxBaseUrl();
+ }
+
+ public static String getEdxAccessToken(){
+ return getService().getEdxAccessToken();
+ }
+
+ public static String getEntMenuPortletHidden() {
+ return getService().getEntMenuPortletHidden();
+ }
+}