1 /*******************************************************************************
2 * Copyright � Igor Barma, Alexandre Desoubeaux, Christian Martel, Eric Brun, Mathieu Amblard, Gwenael Gevet, Pierre Guillot, 2012
3 * Copyright Alexandre Desoubeaux, Christian Martel, Cedric Lecarpentier, Alexandre Lefevre, Marc Salvat 2014-2016
4 * Copyright Alexandre Desoubeaux, Christian Martel, Cedric Lecarpentier, Marc Salvat, Marc Suarez, Harifetra Ramamonjy 2017
6 * This file is part of the work and learning management system Pentila Nero.
8 * Pentila Nero is free software. You can redistribute it and/or modify since
9 * you respect the terms of either (at least one of the both license) :
10 * - under the terms of the GNU Affero General Public License as
11 * published by the Free Software Foundation, either version 3 of the
12 * License, or (at your option) any later version.
13 * - the CeCILL-C as published by CeCILL-C; either version 1 of the
14 * License, or any later version
15 * - the GNU Lesser General Public License as published by the
16 * Free Software Foundation, either version 3 of the license,
17 * or (at your option) any later version.
19 * There are special exceptions to the terms and conditions of the
20 * licenses as they are applied to this software. View the full text of
21 * the exception in file LICENSE-PROJECT.txt in the directory of this software
24 * Pentila Nero is distributed in the hope that it will be useful,
25 * but WITHOUT ANY WARRANTY; without even the implied warranty of
26 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 * Licenses for more details.
29 * You should have received a copy of the GNU Affero General Public License
30 * and the CeCILL-C and the GNU Lesser General Public License along with
31 * Pentila Nero. If not, see :
32 * <http://www.gnu.org/licenses/> and
33 * <http://www.cecill.info/licences.fr.html>.
34 ******************************************************************************/
35 package com.pentila.entSavoie.utils;
37 import java.util.List;
39 import javax.naming.directory.Attributes;
41 import com.liferay.portal.kernel.json.JSONException;
42 import com.liferay.portal.model.User;
44 public class ENTMainUtilsLocalServiceUtil {
46 private static ENTMainUtilsLocalService _service;
48 public static ENTMainUtilsLocalService getService() {
49 if (_service == null) {
50 throw new RuntimeException("ENTMainUtilsLocalService is not set");
56 public void setService(ENTMainUtilsLocalService service) {
60 public static boolean isImportDevMode(long companyId){
61 return getService().isImportDevMode(companyId);
64 public static long getUploadServletRequestMaxSize(long companyId){
65 return getService().getUploadServletRequestMaxSize(companyId);
68 public static long getDLFileMaxSize(long companyId){
69 return getService().getDLFileMaxSize(companyId);
72 public static String getEtherpadUrl(long companyId){
73 return getService().getEtherpadUrl(companyId);
76 public static String getEtherpadApiKey(long companyId){
77 return getService().getEtherpadApiKey(companyId);
80 public static String getHelpMenuLink(long companyId) {
81 return getService().getHelpMenuLink(companyId);
84 public static String getMailDefaultAccount(long companyId){
85 return getService().getMailDefaultAccount(companyId);
87 public static String getPortletUrlRack(long companyId) {
88 return getService().getPortletUrlRack(companyId);
90 public static String getPortletUrlNews(long companyId) {
91 return getService().getPortletUrlNews(companyId);
93 public static String getPortletUrlSchoolBag(long companyId) {
94 return getService().getPortletUrlSchoolBag(companyId);
96 public static String getPortletUrlForum(long companyId) {
97 return getService().getPortletUrlForum(companyId);
99 public static String getPortletUrlGroup(long companyId) {
100 return getService().getPortletUrlGroup(companyId);
102 public static String getPortletUrlMessaging(long companyId) {
103 return getService().getPortletUrlMessaging(companyId);
105 public static String getPortletUrlTextbook(long companyId) {
106 return getService().getPortletUrlTextbook(companyId);
108 public static String getPortletUrlSearchengine(long companyId) {
109 return getService().getPortletUrlSearchengine(companyId);
111 public static String getPortletUrlAgenda(long companyId) {
112 return getService().getPortletUrlAgenda(companyId);
114 public static String getSwfToolsDirectory(long companyId) {
115 return getService().getSwfToolsDirectory(companyId);
118 public static boolean isEntLsoEnabled(long companyId) {
119 return getService().isEntLsoEnabled(companyId);
122 public static String getLSOGroupLandingPage(long companyId) {
123 return getService().getLSOGroupLandingPage(companyId);
126 public static String getENTOrgRootName(long companyId) {
127 return getService().getENTOrgRootName(companyId);
130 public static String getENTOrgRootSuffixeMail(long companyId) {
131 return getService().getENTOrgRootSuffixeMail(companyId);
134 public static String getENTOrgRootPortalMembersName(long companyId) {
135 return getService().getENTOrgRootPortalMembersName(companyId);
138 public static String getENTOrgRootDepartment(long companyId) {
139 return getService().getENTOrgRootPortalMembersName(companyId);
142 public static String getENTGoogleAnalyticsCode(long companyId) {
143 return getService().getENTGoogleAnalyticsCode(companyId);
146 public static String getENTChart(long companyId) {
147 return getService().getENTChart(companyId);
150 public static String getENTSynchroDefaultRole(long companyId) {
151 return getService().getENTSynchroDefaultRole(companyId);
155 public static String getXmppHost(long companyId) {
156 return getService().getXmppHost(companyId);
159 public static String getXmppDomain(long companyId) {
160 return getService().getXmppDomain(companyId);
163 public static boolean isXmppEnable(long companyId) {
164 return getService().isXmppEnable(companyId);
167 public static String getVisioUrl(long companyId) {
168 return getService().getVisioUrl(companyId);
171 public static String getVisioRtmpDomain(long companyId) {
172 return getService().getVisioRtmpDomain(companyId);
175 public static String getVisioRtmpService(long companyId) {
176 return getService().getVisioRtmpService(companyId);
179 public static String getVisioSalt(long companyId) {
180 return getService().getVisioSalt(companyId);
183 public static String getVisioAdminLogin(long companyId) {
184 return getService().getVisioAdminLogin(companyId);
187 public static String getVisioAdminPassword(long companyId) {
188 return getService().getVisioAdminPassword(companyId);
191 public static String getMailNoReply(long companyId) {
192 return getService().getMailNoReply(companyId);
195 public static String getMailRedirectSubject(long companyId) {
196 return getService().getMailRedirectSubject(companyId);
199 public static String getMailRedirectBody(long companyId) {
200 return getService().getMailRedirectBody(companyId);
203 public static String getFileErrorSwf(long companyId) {
204 return getService().getFileErrorSwf(companyId);
207 public static String getFileErrorFlv(long companyId) {
208 return getService().getFileErrorFlv(companyId);
211 public static long getEntConfirmationSenderId(long companyId) {
212 return getService().getEntConfirmationSenderId(companyId);
215 public static Boolean getEntSchoolImportType(long companyId) {
216 return getService().getEntSchoolImportType(companyId);
219 public static Boolean isGroupManagment(long companyId) {
220 return getService().isGroupManagment(companyId);
223 public static Boolean isSchemaSupann(long companyId){
224 return getService().isSchemaSupann(companyId);
227 public static String getENTSynchroEtabName(long companyId) {
228 return getService().getENTSynchroEtabName(companyId);
231 public static boolean isENTSynchroForceListeInst(long companyId) {
232 return getService().isENTSynchroForceListeInst(companyId);
235 public static Boolean isGroupIntranetEnable(long companyId) {
236 return getService().isGroupIntranetEnable(companyId);
239 public static Boolean isLDAPImportModifyDate(long companyId){
240 return getService().isLDAPImportModifyDate(companyId);
243 public static String getFlashFileStateProgress(long companyId){
244 return getService().getFlashFileStateProgress(companyId);
247 public static String getFlashFileStateError(long companyId){
248 return getService().getFlashFileStateError(companyId);
251 public static String getFlashFileStateConvert(long companyId){
252 return getService().getFlashFileStateConvert(companyId);
255 public static boolean getPiwikEnable(long companyId){
256 return getService().getPiwikEnable(companyId);
259 public static String getPiwikUrl(long companyId){
260 return getService().getPiwikUrl(companyId);
262 public static String getPiwikApiUrl(long companyId) {
263 return getService().getPiwikApiUrl(companyId);
266 public static String getPiwikSiteId(long companyId) {
267 return getService().getPiwikSiteId(companyId);
270 public static String getPiwikTokenAuth(long companyId) {
271 return getService().getPiwikTokenAuth(companyId);
274 public static boolean getXitiEnable(long companyId){
275 return getService().getXitiEnable(companyId);
278 public static int getXitiIdProjet(long companyId){
279 return getService().getXitiIdProjet(companyId);
282 public static int getXitiIdPlateforme(long companyId){
283 return getService().getXitiIdPlateforme(companyId);
286 public static int getXitiIdCollectivite(long companyId){
287 return getService().getXitiIdCollectivite(companyId);
290 public static int getXitiEtabId(long companyId, long etabId) throws JSONException{
291 return getService().getXitiEtabId(companyId, etabId);
294 public static boolean isForceSubscribeAgenda(long companyId){
295 return getService().isForceSubscribeAgenda(companyId);
298 public static boolean isEnableMobileNtification(long companyId){
299 return getService().isEnableMobileNtification(companyId);
302 public static boolean isEnableServicesNotifications(long companyId) {
303 return getService().isEnableServicesNotifications(companyId);
306 public static boolean isEnableMailForward(long companyId) {
307 return getService().isEnableMailForward(companyId);
310 public static String getPublicBlogUrl(long companyId){
311 return getService().getPublicBlogUrl(companyId);
314 public static String getPublicFrontBlogUrl(long companyId){
315 return getService().getPublicFrontBlogUrl(companyId);
318 public static String getWordpressUsername(long companyId){
319 return getService().getWordpressUsername(companyId);
322 public static String getWordpressPassword(long companyId){
323 return getService().getWordpressPassword(companyId);
326 public static String getWordpressUrl(long companyId){
327 return getService().getWordpressUrl(companyId);
330 public static String getWordpressAdminSuffixUrl(long companyId){
331 return getService().getWordpressAdminSuffixUrl(companyId);
334 public static String getWordpressSuffixUrl(long companyId){
335 return getService().getWordpressSuffixUrl(companyId);
338 public static String getMailAcademicSuffix(long companyId){
339 return getService().getMailAcademicSuffix(companyId);
342 public static boolean isWebDAVEnable(long companyId){
343 return getService().isWebDAVEnable(companyId);
346 public static boolean isShibbolethAuthEnable(long companyId){
347 return getService().isShibbolethAuthEnable(companyId);
350 public static String getShibbolethLogoutUrl(long companyId){
351 return getService().getShibbolethLogoutUrl(companyId);
354 public static void startLDAPSynchro(long companyId, boolean force){
355 getService().startLDAPSynchro(companyId, force);
358 public static String getEntGroupDefaultView(long companyId){
359 return getService().getEntGroupDefaultView(companyId);
362 public static boolean isENTMailSenderUseForward(long companyId){
363 return getService().isENTMailSenderUseForward(companyId);
366 public static String getAuthMailFilter(long companyId){
367 return getService().getAuthMailFilter(companyId);
370 public static String getViewAjaxJSPKey(){
371 return getService().getViewAjaxJSPKey();
374 public static int getDefaultPortletHeight(){
375 return getService().getDefaultPortletHeight();
378 public static List<String> getSpecialPortletsTheme(long companyId){
379 return getService().getSpecialPortletsTheme(companyId);
382 public static boolean getEntFullScreenAllowed(){
383 return getService().getEntFullScreenAllowed();
386 public static String getEntFullScreenMaximizeKey(){
387 return getService().getEntFullScreenMaximizeKey();
390 public static String[] getEntListRolesEnabled(){
391 return getService().getEntListRolesEnabled();
394 public static String[] getEntListRolesNationauxEnabled(){
395 return getService().getEntListRolesNationauxEnabled();
398 public static boolean getEntImportUtilisateursEnabled(){
399 return getService().getEntImportUtilisateursEnabled();
402 public static String getEntImportUtilisateursPath(){
403 return getService().getEntImportUtilisateursPath();
406 public static String getEntKeyLanguageSuffix(){
407 return getService().getEntKeyLanguageSuffix();
410 public static boolean getEntSocialActivityEnabled(){
411 return getService().getEntSocialActivityEnabled();
414 public static String getEntCaptchaPublicKey(){
415 return getService().getEntCaptchaPublicKey();
418 public static String getEntCaptchaPrivateKey(){
419 return getService().getEntCaptchaPrivateKey();
422 public static String getEntPlateformName(){
423 return getService().getEntPlateformName();
426 public static String getEntResetPasswordUrl(){
427 return getService().getEntResetPasswordUrl();
430 public static String getPortletId(String className){
431 return getService().getPortletId(className);
434 public static String addUrlAjaxParameters(String url, String className, boolean isGroup){
435 return getService().addUrlAjaxParameters(url, className, isGroup);
438 public static String[] getEntCategories(){
439 return getService().getEntCategories();
442 public static String getEntLinkEtabCategory(){
443 return getService().getEntLinkEtabCategory();
446 public static String[] getMimeTypes(){
447 return getService().getMimeTypes();
450 public static long getEntPopulationManagerId(){
451 return getService().getEntPopulationManagerId();
454 public static boolean isReferentNumerique(User user){
455 return getService().isReferentNumerique(user);
458 public static Long[] getEntIncidentsUsersNotification(){
459 return getService().getEntIncidentsUsersNotification();
462 public static String getLoginDefaultPageLanding(long companyId){
463 return getService().getLoginDefaultPageLanding(companyId);
466 public static String getLoginDefaultApplicationLanding(long companyId){
467 return getService().getLoginDefaultApplicationLanding(companyId);
470 public static String getJdbcEntlogUrl() {
471 return getService().getJdbcEntlogUrl();
474 public static String getJdbcEntlogUser() {
475 return getService().getJdbcEntlogUser();
478 public static String getJdbcEntlogPasswd() {
479 return getService().getJdbcEntlogPasswd();
482 public static List<Long> purgeExpiredUsers(long companyId) {
483 return getService().purgeExpiredUsers(companyId);
486 public static boolean purgeUserInDB(long userId) {
487 return getService().purgeUserInDB(userId);
490 public static boolean purgeUserInLDAP(long companyId, String screenName) {
491 return getService().purgeUserInLDAP(companyId, screenName);
494 public static String getDlHookFileSystemRootDir() {
495 return getService().getDlHookFileSystemRootDir();
498 public static String getUserPurgeOutputFile() {
499 return getService().getUserPurgeOutputFile();
502 public static boolean isDlStoreCO3(long companyId) {
503 return getService().isDlStoreCO3(companyId);
506 public static boolean sendSupportToLocalAdmins(long companyId) {
507 return getService().sendSupportToLocalAdmins(companyId);
510 public static boolean allowUsurpationForSupportAdmin(long companyId) {
511 return getService().allowUsurpationForSupportAdmin(companyId);
514 public static String getPlatform() {
515 return getService().getPlatform();
518 public static String getSupportMail() {
519 return getService().getSupportMail();
522 public static String getEdtPrivateKeyPath() {
523 return getService().getEdtPrivateKeyPath();
526 public static long getENTVieScolaireUserId() {
527 return getService().getENTVieScolaireUserId();
530 public static User synchronizeUser(long companyId, Attributes attributes) {
531 return getService().synchronizeUser(companyId, attributes);
534 public static boolean manageUserMembership(long companyId, Attributes attributes) {
535 return getService().manageUserMembership(companyId, attributes);
538 public static boolean isForceParentMembership(long companyId) {
539 return getService().isForceParentMembership(companyId);
542 public static String getEdtImportFilesDirectory() {
543 return getService().getEdtImportFilesDirectory();
546 public static String getOauthClientId(){
547 return getService().getOauthClientId();
550 public static String getOauthSecretId(){
551 return getService().getOauthSecretId();
554 public static String getServiceGuidePath(String serviceName){
555 return getService().getServiceGuidePath(serviceName);
558 public static int getMessagingStudentMaxReceivers() {
559 return getService().getMessagingStudentMaxReceivers();
562 public static int getMessagingParentMaxReceivers() {
563 return getService().getMessagingParentMaxReceivers();
566 public static int getMessagingPersonalMaxReceivers() {
567 return getService().getMessagingPersonalMaxReceivers();
570 public static String getPronoteStudentLinkList() {
571 return getService().getPronoteStudentLinkList();
574 public static String getPronoteParentLinkList() {
575 return getService().getPronoteParentLinkList();
578 public static String getPronoteTeacherLinkList() {
579 return getService().getPronoteTeacherLinkList();
582 public static String getEdxBaseUrl(){
583 return getService().getEdxBaseUrl();
586 public static String getEdxAccessToken(){
587 return getService().getEdxAccessToken();
590 public static String getEntMenuPortletHidden() {
591 return getService().getEntMenuPortletHidden();