Tabnine Logo
Session
Code IndexAdd Tabnine to your IDE (free)

How to use
Session
in
de.knightsoftnet.gwtp.spring.client.session

Best Java code snippets using de.knightsoftnet.gwtp.spring.client.session.Session (Showing top 16 results out of 315)

origin: de.knightsoft-net/gwtp-spring-integration-client

 @Override
 public void onSuccess(final T presult) {
  this.session.setUser(presult);
 }
}
origin: de.knightsoft-net/gwtp-dynamic-navigation

@Inject
public void init(final Session psession) {
 buildVisibleNavigation(psession == null ? null : psession.getUser());
}
origin: ManfredTremmel/gwt-bean-validators

 @Override
 public boolean canReveal() {
  return currentSession.isLoggedIn();
 }
}
origin: de.knightsoft-net/gwtp-spring-integration-client

@Override
public void onFailure(final Throwable pcaught) {
 try {
  throw pcaught;
 } catch (final ActionException e) {
  switch (this.response.getStatusCode()) {
   case 401: // Unauthorized: happens when session times out
   case 403: // Forbidden: happens when csrf token times out
    this.session.readSessionData();
    break;
   default:
    this.view.showMessage(this.httpMessage.messageHttpCode(this.response.getStatusCode()));
    break;
  }
 } catch (final Throwable e) {
  this.view.showMessage(e.getMessage());
 }
}
origin: de.knightsoft-net/gwtp-spring-integration

@Override
public void onFailure(final Throwable pcaught) {
 try {
  throw pcaught;
 } catch (final ActionException e) {
  switch (this.response.getStatusCode()) {
   case 401: // Unauthorized: happens when session times out
   case 403: // Forbidden: happens when csrf token times out
    this.session.readSessionData();
    break;
   default:
    this.view.showMessage(this.httpMessage.messageHttpCode(this.response.getStatusCode()));
    break;
  }
 } catch (final Throwable e) {
  this.view.showMessage(e.getMessage());
 }
}
origin: de.knightsoft-net/gwtp-spring-integration-client

@Override
public void onFailure(final Throwable pcaught) {
 try {
  throw pcaught;
 } catch (final ActionException e) {
  switch (this.response.getStatusCode()) {
   case 400:
    final ValidationFactory validationFactory = GWT.create(ValidationFactory.class);
    final AutoBean<ValidationResultInterface> validationResultWraper = AutoBeanCodex
      .decode(validationFactory, ValidationResultInterface.class, this.response.getText());
    this.view.setConstraintViolations(
      this.validationConverter.convert(validationResultWraper.as(), this.data));
    break;
   case 401: // Unauthorized: happens when session times out
   case 403: // Forbidden: happens when csrf token times out
    this.session.readSessionData();
    break;
   default:
    this.view.showMessage(this.httpMessage.messageHttpCode(this.response.getStatusCode()));
    break;
  }
 } catch (final Throwable e) {
  this.view.showMessage(e.getMessage());
 }
}
origin: de.knightsoft-net/gwtp-spring-integration

 @Override
 public void onSuccess(final T presult) {
  this.session.setUser(presult);
 }
}
origin: de.knightsoft-net/gwtp-dynamic-navigation

 @Override
 public boolean canReveal() {
  return currentSession.isLoggedIn();
 }
}
origin: ManfredTremmel/gwt-bean-validators

@Inject
public void init(final Session psession) {
 buildVisibleNavigation(psession == null ? null : psession.getUser());
}
origin: de.knightsoft-net/gwtp-spring-integration

@Override
public void onFailure(final Throwable pcaught) {
 try {
  throw pcaught;
 } catch (final ActionException e) {
  switch (this.response.getStatusCode()) {
   case 400:
    final ValidationFactory validationFactory = GWT.create(ValidationFactory.class);
    final AutoBean<ValidationResultInterface> validationResultWraper = AutoBeanCodex
      .decode(validationFactory, ValidationResultInterface.class, this.response.getText());
    this.view.setConstraintViolations(
      this.validationConverter.convert(validationResultWraper.as(), this.data));
    break;
   case 401: // Unauthorized: happens when session times out
   case 403: // Forbidden: happens when csrf token times out
    this.session.readSessionData();
    break;
   default:
    this.view.showMessage(this.httpMessage.messageHttpCode(this.response.getStatusCode()));
    break;
  }
 } catch (final Throwable e) {
  this.view.showMessage(e.getMessage());
 }
}
origin: de.knightsoft-net/gwtp-dynamic-navigation

 @Override
 public boolean canReveal() {
  return !currentSession.isLoggedIn();
 }
}
origin: de.knightsoft-net/gwtp-dynamic-navigation

/**
 * constructor with injected parameters.
 *
 * @param peventBus event bus
 * @param pview navigation view
 * @param pproxy navigation proxy
 * @param pplaceManager place manager
 * @param pcurrentSession session data
 * @param pnavigationStructure place data
 */
@Inject
public NavigationPresenter(final EventBus peventBus, final NavigationPresenter.MyView pview,
  final MyProxy pproxy, final PlaceManager pplaceManager, final Session pcurrentSession,
  final NavigationStructure pnavigationStructure) {
 super(peventBus, pview, pproxy);
 pview.setPresenter(this);
 placeManager = pplaceManager;
 navigationStructure = pnavigationStructure;
 loginToken = NameTokens.LOGIN;
 logoutToken = NameTokens.LOGOUT;
 peventBus.addHandler(ChangeUserEvent.getType(), this);
 pnavigationStructure.buildVisibleNavigation(null);
 getView().createNavigation(navigationStructure);
 peventBus.addHandler(ChangePlaceEvent.getType(), this);
 pcurrentSession.readSessionData();
}
origin: ManfredTremmel/gwt-bean-validators

 @Override
 public boolean canReveal() {
  return !currentSession.isLoggedIn();
 }
}
origin: ManfredTremmel/gwt-bean-validators

/**
 * constructor with injected parameters.
 *
 * @param peventBus event bus
 * @param pview navigation view
 * @param pproxy navigation proxy
 * @param pplaceManager place manager
 * @param pcurrentSession session data
 * @param pnavigationStructure place data
 */
@Inject
public NavigationPresenter(final EventBus peventBus, final NavigationPresenter.MyView pview,
  final MyProxy pproxy, final PlaceManager pplaceManager, final Session pcurrentSession,
  final NavigationStructure pnavigationStructure) {
 super(peventBus, pview, pproxy);
 pview.setPresenter(this);
 placeManager = pplaceManager;
 navigationStructure = pnavigationStructure;
 loginToken = NameTokens.LOGIN;
 logoutToken = NameTokens.LOGOUT;
 peventBus.addHandler(ChangeUserEvent.getType(), this);
 pnavigationStructure.buildVisibleNavigation(null);
 getView().createNavigation(navigationStructure);
 peventBus.addHandler(ChangePlaceEvent.getType(), this);
 pcurrentSession.readSessionData();
}
origin: de.knightsoft-net/gwtp-spring-integration-client

@Override
public void onFailure(final Throwable pcaught) {
 try {
  throw pcaught;
 } catch (final ActionException e) {
  switch (this.response.getStatusCode()) {
   case 401: // Unauthorized: happens when login fails
    this.view.showMessage(this.loginErrorMessage.messageLoginError(this.response.getText()));
    break;
   case 403: // Forbidden: happens when csrf token times out
    this.session.readSessionData();
    break;
   default:
    this.view.showMessage(this.httpMessage.messageHttpCode(this.response.getStatusCode()));
    break;
  }
 } catch (final Throwable e) {
  this.view.showMessage(this.loginErrorMessage.messageOtherError());
 }
}
origin: de.knightsoft-net/gwtp-spring-integration

@Override
public void onFailure(final Throwable pcaught) {
 try {
  throw pcaught;
 } catch (final ActionException e) {
  switch (this.response.getStatusCode()) {
   case 401: // Unauthorized: happens when login fails
    this.view.showMessage(this.loginErrorMessage.messageLoginError(this.response.getText()));
    break;
   case 403: // Forbidden: happens when csrf token times out
    this.session.readSessionData();
    break;
   default:
    this.view.showMessage(this.httpMessage.messageHttpCode(this.response.getStatusCode()));
    break;
  }
 } catch (final Throwable e) {
  this.view.showMessage(this.loginErrorMessage.messageOtherError());
 }
}
de.knightsoftnet.gwtp.spring.client.sessionSession

Most used methods

  • readSessionData
    read session data from server.
  • setUser
    set user and fire change user event when user changes.
  • getUser
    get current user data.
  • isLoggedIn
    check if user is logged in.

Popular in Java

  • Start an intent from android
  • getResourceAsStream (ClassLoader)
  • setRequestProperty (URLConnection)
  • compareTo (BigDecimal)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • Permission (java.security)
    Legacy security code; do not use.
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now