/** * This method installs the security subject into the application session. * * @param subject * the authenticated user subject. */ protected void loginSuccess(Subject subject) { getBackendController().getApplicationSession().setSubject(subject); String userPreferredLanguageCode = (String) getBackendController() .getApplicationSession().getPrincipal().getCustomProperty( UserPrincipal.LANGUAGE_PROPERTY); if (userPreferredLanguageCode != null) { getBackendController().getApplicationSession().setLocale( new Locale(userPreferredLanguageCode)); } if (workspaces != null) { for (Workspace workspace : workspaces.values()) { translateWorkspace(workspace); } getBackendController().installWorkspaces(workspaces); } }
getBackendController().installWorkspaces(filteredWorkspaces);