Improved: replaces module by MODULE everywhere

This commit is contained in:
Jacques Le Roux
2020-04-06 12:14:23 +02:00
parent aa26d8f0cf
commit 208ef1b1be
74 changed files with 691 additions and 691 deletions
@@ -61,7 +61,7 @@ import org.xml.sax.SAXException;
import freemarker.template.TemplateException;
public class ExamplePrintServices {
public static final String module = ExamplePrintServices.class.getName();
public static final String MODULE = ExamplePrintServices.class.getName();
public static final String resource = "ExampleUiLabels";
public static Map<String, Object> printReportPdf(DispatchContext dctx, Map<String, ? extends Object> context) {
@@ -83,11 +83,11 @@ public class ExamplePrintServices {
screenStringRenderer = new MacroScreenRenderer("screen", visualTheme.getModelTheme().getScreenRendererLocation("screen"));
} catch (TemplateException e) {
String errMsg = UtilProperties.getMessage(resource, "ExampleGeneralErrorRenderingScreen", UtilMisc.toMap("errorString", e.toString()), locale);
Debug.logError(e, errMsg, module);
Debug.logError(e, errMsg, MODULE);
return ServiceUtil.returnError(errMsg);
} catch (IOException e) {
String errMsg = UtilProperties.getMessage(resource, "ExampleIOErrorRenderingScreen", UtilMisc.toMap("errorString", e.toString()), locale);
Debug.logError(e, errMsg, module);
Debug.logError(e, errMsg, MODULE);
return ServiceUtil.returnError(errMsg);
}
@@ -101,19 +101,19 @@ public class ExamplePrintServices {
reportScreenRenderer.render(screenLocation, reportScreenName);
} catch (GeneralException e) {
String errMsg = UtilProperties.getMessage(resource, "ExampleGeneralErrorRenderingScreen", UtilMisc.toMap("errorString", e.toString()), locale);
Debug.logError(e, errMsg, module);
Debug.logError(e, errMsg, MODULE);
return ServiceUtil.returnError(errMsg);
} catch (IOException e) {
String errMsg = UtilProperties.getMessage(resource, "ExampleIOErrorRenderingScreen", UtilMisc.toMap("errorString", e.toString()), locale);
Debug.logError(e, errMsg, module);
Debug.logError(e, errMsg, MODULE);
return ServiceUtil.returnError(errMsg);
} catch (SAXException e) {
String errMsg = UtilProperties.getMessage(resource, "ExampleSAXErrorRenderingScreen", UtilMisc.toMap("errorString", e.toString()), locale);
Debug.logError(e, errMsg, module);
Debug.logError(e, errMsg, MODULE);
return ServiceUtil.returnError(errMsg);
} catch (ParserConfigurationException e) {
String errMsg = UtilProperties.getMessage(resource, "ExampleParserConfigurationErrorRenderingScreen", UtilMisc.toMap("errorString", e.toString()), locale);
Debug.logError(e, errMsg, module);
Debug.logError(e, errMsg, MODULE);
return ServiceUtil.returnError(errMsg);
}
@@ -160,7 +160,7 @@ public class ExamplePrintServices {
job.print(myDoc, aset);
} catch (PrintException pe) {
String errMsg = UtilProperties.getMessage(resource, "ExampleUnableToPrintPDFFromXSL-FO", UtilMisc.toMap("errorString", pe.toString()), locale);
Debug.logError(pe, errMsg, module);
Debug.logError(pe, errMsg, MODULE);
return ServiceUtil.returnError(errMsg);
}
}
@@ -29,7 +29,7 @@ import org.apache.ofbiz.service.DispatchContext;
import org.apache.ofbiz.service.ServiceUtil;
public class ExampleServices {
public static final String module = ExampleServices.class.getName();
public static final String MODULE = ExampleServices.class.getName();
public static Map<String, Object> sendExamplePushNotifications(DispatchContext dctx, Map<String, ? extends Object> context) {
String exampleId = (String) context.get("exampleId");
@@ -42,7 +42,7 @@ public class ExampleServices {
}
}
} catch (IOException e) {
Debug.logError(e.getMessage(), module);
Debug.logError(e.getMessage(), MODULE);
}
return ServiceUtil.returnSuccess();
}
@@ -35,7 +35,7 @@ import org.apache.ofbiz.base.util.Debug;
@ServerEndpoint("/ws/pushNotifications")
public class ExampleWebSockets {
public static final String module = ExampleWebSockets.class.getName();
public static final String MODULE = ExampleWebSockets.class.getName();
private static Set<Session> clients = Collections.synchronizedSet(new HashSet<Session>());
@@ -55,7 +55,7 @@ public class ExampleWebSockets {
try {
session.close();
} catch (IOException ioe) {
Debug.logError(ioe.getMessage(), module);
Debug.logError(ioe.getMessage(), MODULE);
}
}
}