/** * Adds the given to the first of this list. */ default void addFirst(T bean){ add(0,bean); }
@Override public void addListener(DataSourceListener listener) { if(listeners.contains(listener)){ throw new ObjectExistsException("The listener already exists"); } listeners.add(listener); }
@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"); } } }