static public Map<String, TimeLog.CallStat> getCallCount() { return timeLog.getCallCount(); }
protected void unlock() { TIME_LOG.log(t0, "Task [" + getLogicAction().getClass().getSimpleName() + "] End"); if (wait) { synchronized (lock) { lock.notifyAll(); } } getLogicAction().getContext().setActionInProgress(this, false); } }
public WikittyServiceAuthentication(ApplicationConfig config, WikittyService ws) { super(config, ws); if (config != null) { long timeToLogInfo = config.getOptionAsInt(WikittyConfigOption. WIKITTY_SERVICE_TIME_TO_LOG_INFO.getKey()); long timeToLogWarn = config.getOptionAsInt(WikittyConfigOption. WIKITTY_SERVICE_TIME_TO_LOG_WARN.getKey()); timeLog.setTimeToLogInfo(timeToLogInfo); timeLog.setTimeToLogWarn(timeToLogWarn); } }
public WikittyProxy(ApplicationConfig config) { if (config != null) { long timeToLogInfo = config.getOptionAsInt(WikittyConfigOption. WIKITTY_PROXY_TIME_TO_LOG_INFO.getKey()); long timeToLogWarn = config.getOptionAsInt(WikittyConfigOption. WIKITTY_PROXY_TIME_TO_LOG_WARN.getKey()); timeLog.setTimeToLogInfo(timeToLogInfo); timeLog.setTimeToLogWarn(timeToLogWarn); } }
public WikittyServiceAuthenticationAbstract( ApplicationConfig config, WikittyService delegate) { super(delegate); this.config = config; if (config != null) { long timeToLogInfo = config.getOptionAsInt(WikittyConfigOption. WIKITTY_SERVICE_TIME_TO_LOG_INFO.getKey()); long timeToLogWarn = config.getOptionAsInt(WikittyConfigOption. WIKITTY_SERVICE_TIME_TO_LOG_WARN.getKey()); timeLog.setTimeToLogInfo(timeToLogInfo); timeLog.setTimeToLogWarn(timeToLogWarn); } }
static public Map<String, TimeLog.CallStat> getCallCount() { return timeLog.getCallCount(); }
/** * * @param config * @param ws */ public WikittyServiceAuthorisation(ApplicationConfig config, WikittyService ws) { super(ws); if (config != null) { long timeToLogInfo = config.getOptionAsInt(WikittyConfigOption. WIKITTY_SERVICE_TIME_TO_LOG_INFO.getKey()); long timeToLogWarn = config.getOptionAsInt(WikittyConfigOption. WIKITTY_SERVICE_TIME_TO_LOG_WARN.getKey()); timeLog.setTimeToLogInfo(timeToLogInfo); timeLog.setTimeToLogWarn(timeToLogWarn); } }
public WikittyServiceAuthenticationLDAP(ApplicationConfig config, WikittyService ws) { super(config, ws); long timeToLogInfo = config.getOptionAsInt(WikittyConfigOption. WIKITTY_SERVICE_TIME_TO_LOG_INFO.getKey()); long timeToLogWarn = config.getOptionAsInt(WikittyConfigOption. WIKITTY_SERVICE_TIME_TO_LOG_WARN.getKey()); timeLog.setTimeToLogInfo(timeToLogInfo); timeLog.setTimeToLogWarn(timeToLogWarn); // on charge toutes les options jndi Properties jndiPropTmp = config.getOptionStartsWith(WikittyConfigOption .WIKITTY_SERVICE_AUTHENTICATION_LDAP_JNDI.getKey()); jndiProp = new Properties(); for (Enumeration<String> e=(Enumeration<String>)jndiPropTmp.propertyNames(); e.hasMoreElements();) { String key = e.nextElement(); String value = jndiPropTmp.getProperty(key); int debut = WikittyConfigOption.WIKITTY_SERVICE_AUTHENTICATION_LDAP_JNDI.getKey().length(); key = key.substring(debut); jndiProp.setProperty(key, value); } // on charge l'url du serveur ldap String serverUrl = config.getOption( WikittyConfigOption.WIKITTY_SERVICE_AUTHENTICATION_LDAP_SERVER.getKey()); jndiProp.put(Context.PROVIDER_URL, serverUrl); // on charge le pattern des logins (DN) ldapLoginPattern = config.getOption( WikittyConfigOption.WIKITTY_SERVICE_AUTHENTICATION_LDAP_LOGIN_PATTERN.getKey()); }
/** * Creation du client en forcant le wikittyService * * @param config * @param wikittyService * @param securityToken */ public WikittyClient(ApplicationConfig config, WikittyService wikittyService, String securityToken) { if (config != null) { this.config = config; long timeToLogInfo = config.getOptionAsInt(WikittyConfigOption. WIKITTY_CLIENT_TIME_TO_LOG_INFO.getKey()); long timeToLogWarn = config.getOptionAsInt(WikittyConfigOption. WIKITTY_CLIENT_TIME_TO_LOG_WARN.getKey()); timeLog.setTimeToLogInfo(timeToLogInfo); timeLog.setTimeToLogWarn(timeToLogWarn); } setWikittyService(wikittyService); setSecurityToken(securityToken); }
/** * * @param config * @param ws * @param auth si non null alors un mecanisme d'authentification externe est * utilise */ public WikittyServiceSecurity(ApplicationConfig config, WikittyService ws, WikittyServiceSecurityExternalAuthentication auth) { super(ws); this.auth = auth; if (config != null) { externalAuthOnly = config.getOptionAsBoolean(WikittyConfigOption. WIKITTY_SECURITY_EXTERNAL_AUTHENTICATION_ONLY.getKey()); long timeToLogInfo = config.getOptionAsInt(WikittyConfigOption. WIKITTY_SERVICE_TIME_TO_LOG_INFO.getKey()); long timeToLogWarn = config.getOptionAsInt(WikittyConfigOption. WIKITTY_SERVICE_TIME_TO_LOG_WARN.getKey()); timeLog.setTimeToLogInfo(timeToLogInfo); timeLog.setTimeToLogWarn(timeToLogWarn); } }
/** * Method to get the Wikitty encapsulated into a BusinessEntity * @param entity the BusinessEntity encapsulating the Wikitty * @return the wikitty encapsulated */ public Wikitty getWikitty(BusinessEntity entity){ long start = TimeLog.getTime(); Wikitty result = WikittyUtil.getWikitty(wikittyService, securityToken, entity); timeLog.log(start, "getWikitty"); return result; }