Пример #1
0
 private void testAllItemsAndNestsLoaded() {
   AcPropertyRegistry pr = getAccountProperties();
   if (pr.getActionProcessorTestLoadedItemsAndNests()) {
     testAllItemsLoaded();
     testAllNestsLoaded();
   }
 }
Пример #2
0
  private void init() {
    String accountCode = _access.getAccountCode();
    AcPropertyRegistry pr = AcPropertyRegistries.getAccount(accountCode);

    _emailConfiguration = getEmailConfiguration(pr);
    _logResults = pr.getReceivedFileMonitorLoggingEnabled();
    _alertExpirationMinutes = pr.getReceivedFileAlertExpirationMinutes();
  }
 private static String getPerformanceRowClass(Double d) {
   String accountCode = ((AcServletData) ScServletData.getLocal()).getAccountCode();
   AcPropertyRegistry pr = AcPropertyRegistries.getAccount(accountCode);
   if (d == null) return null;
   if (d < pr.getPostalScanPerformanceReportMajorPercentage())
     return ScTableConstantsIF.DATA_TABLE_WARNING_MAJOR_CLASS;
   if (d < pr.getPostalScanPerformanceReportMinorPercentage())
     return ScTableConstantsIF.DATA_TABLE_WARNING_MINOR_CLASS;
   return null;
 }
Пример #4
0
 private JwEmailConfiguration getEmailConfiguration(AcPropertyRegistry pr) {
   String s = pr.getReceivedFileMonitorEmailAddresses();
   return AcEmailUtility.createConfigurationConditionally(s);
 }
Пример #5
0
 public static boolean isSupportedByAccount(String accountCode, String physicalTag) {
   AcPropertyRegistry reg = AcPropertyRegistries.getAccount(accountCode);
   if (!reg.getAllowsAmpsTags()) return false;
   return true;
 }
 private boolean isLogCopyEnabled() {
   AcPropertyRegistry pr = AcPropertyRegistries.getGlobal();
   return pr.getLogCopyEnabled();
 }
 private String getTargetRootPath() {
   AcPropertyRegistry pr = AcPropertyRegistries.getGlobal();
   return pr.getLogFtpServerTargetPath();
 }
 private boolean isFtpEnabled() {
   AcPropertyRegistry pr = AcPropertyRegistries.getGlobal();
   return pr.getLogFtpServerEnabled();
 }