@Override public void run() { // Check again in case of stacked update request. if (context == null || (!refreshDisabled && (refreshInterval != -1 && System.currentTimeMillis() >= lastUpdated + refreshInterval))) { if (!isContextAlive()) { try { context = createContext(); } catch (NamingException ne) { // LDAP is down, use already cached values return; } } LOG.debug("Updating authorization map!"); try { query(); } catch (Exception e) { LOG.error("Error updating authorization map. Partial policy may be applied until the next successful update.", e); } } } });
if (isContextAlive()) { return context;
@Override public void run() { // Check again in case of stacked update request. if (context == null || (!refreshDisabled && (refreshInterval != -1 && System.currentTimeMillis() >= lastUpdated + refreshInterval))) { if (!isContextAlive()) { try { context = createContext(); } catch (NamingException ne) { // LDAP is down, use already cached values return; } } LOG.debug("Updating authorization map!"); try { query(); } catch (Exception e) { LOG.error("Error updating authorization map. Partial policy may be applied until the next successful update.", e); } } } });
@Override public void run() { // Check again in case of stacked update request. if (context == null || (!refreshDisabled && (refreshInterval != -1 && System.currentTimeMillis() >= lastUpdated + refreshInterval))) { if (!isContextAlive()) { try { context = createContext(); } catch (NamingException ne) { // LDAP is down, use already cached values return; } } LOG.debug("Updating authorization map!"); try { query(); } catch (Exception e) { LOG.error("Error updating authorization map. Partial policy may be applied until the next successful update.", e); } } } });
@Override public void run() { // Check again in case of stacked update request. if (context == null || (!refreshDisabled && (refreshInterval != -1 && System.currentTimeMillis() >= lastUpdated + refreshInterval))) { if (!isContextAlive()) { try { context = createContext(); } catch (NamingException ne) { // LDAP is down, use already cached values return; } } LOG.debug("Updating authorization map!"); try { query(); } catch (Exception e) { LOG.error("Error updating authorization map. Partial policy may be applied until the next successful update.", e); } } } });
if (isContextAlive()) { return context;
if (isContextAlive()) { return context;
if (isContextAlive()) { return context;