Java Code Examples for org.apache.wicket.Session#exists()
The following examples show how to use
org.apache.wicket.Session#exists() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MenuBarEventAdapter.java From inception with Apache License 2.0 | 5 votes |
@EventListener public void onProjectDeleted(BeforeProjectRemovedEvent aEvent) { if (Session.exists()) { Session session = Session.get(); // If the currently selected project is deleted, clear it from the session. Project project = session.getMetaData(SessionMetaData.CURRENT_PROJECT); if (project != null && Objects.equals(aEvent.getProject().getId(), project.getId())) { session.setMetaData(SessionMetaData.CURRENT_PROJECT, null); } } }
Example 2
Source File: Application.java From openmeetings with Apache License 2.0 | 5 votes |
public static Locale getLocale(final long languageId) { Locale loc = LabelDao.getLocale(languageId); if (loc == null) { loc = Session.exists() ? WebSession.get().getLocale() : Locale.ENGLISH; } return loc; }
Example 3
Source File: TopologyWebSocketBehavior.java From syncope with Apache License 2.0 | 4 votes |
ConnCheck(final String key) { this.key = key; this.application = Application.get(); this.session = Session.exists() ? Session.get() : null; }
Example 4
Source File: TopologyWebSocketBehavior.java From syncope with Apache License 2.0 | 4 votes |
ResCheck(final String key) { this.key = key; this.application = Application.get(); this.session = Session.exists() ? Session.get() : null; }
Example 5
Source File: TopologyWebSocketBehavior.java From syncope with Apache License 2.0 | 4 votes |
Checker(final String key, final Application application) { this.key = key; this.application = application; this.session = Session.exists() ? Session.get() : null; }
Example 6
Source File: AjaxWizard.java From syncope with Apache License 2.0 | 4 votes |
ApplyFuture(final AjaxRequestTarget target) { this.target = target; this.application = Application.get(); this.requestCycle = RequestCycle.get(); this.session = Session.exists() ? Session.get() : null; }