/** * Adds the given to the first of this list. */ default void addFirst(T bean){ add(0,bean); }
@Override public boolean removeListener(DataSourceListener listener) { return listeners.remove(listener); }
@Override public SecurityInterceptor[] getInterceptors() { if(interceptorArray.length != interceptors.size()) { synchronized (interceptorLock) { if(interceptorArray.length != interceptors.size()){ interceptorArray = interceptors.toArray(new SecurityInterceptor[interceptors.size()]); } } } return interceptorArray; }
@Override public void startEndpoint(App app, Routes routes) throws Throwable { if(config.isEnabled()) { sc.interceptors().add(this); if (!Strings.isEmpty(config.getLoginView()) && null != viewSource.getView(config.getLoginView(), null)) { loginUrl = "view:" + config.getLoginView(); } } }
@Override public void startEndpoint(App app, Routes routes) throws Throwable { if(config.isEnabled()) { sc.interceptors().add(this); if (!Strings.isEmpty(config.getLoginView()) && null != viewSource.getView(config.getLoginView(), null)) { loginUrl = "view:" + config.getLoginView(); } } }
@Override public void startEndpoint(App app, Routes routes) throws Throwable { if(config.isEnabled() && config.isSingleLoginEnabled()) { sc.interceptors().add(this); if(!Strings.isEmpty(config.getLogoutView())) { this.defaultLogoutView = themeManager.getDefaultView(config.getLogoutView()); } if(null == defaultLogoutView) { throw new AppConfigException("The oauth2 logout view must be configured if logout endpoint enabled"); } } }
@Override public void startEndpoint(App app, Routes routes) throws Throwable { if(config.isEnabled() && config.isSingleLoginEnabled()) { sc.interceptors().add(this); if(!Strings.isEmpty(config.getLogoutView())) { this.defaultLogoutView = themeManager.getDefaultView(config.getLogoutView()); } if(null == defaultLogoutView) { throw new AppConfigException("The oauth2 logout view must be configured if logout endpoint enabled"); } } }