Examples of CurrentUserAware


Examples of org.onebusaway.presentation.services.CurrentUserAware

  public String intercept(ActionInvocation invocation) throws Exception {

    final Object action = invocation.getAction();

    if (action instanceof CurrentUserAware) {
      CurrentUserAware currentUserAware = (CurrentUserAware) action;
      UserBean currentUser = _currentUserService.getCurrentUser();
      if( currentUser != null)
        currentUserAware.setCurrentUser(currentUser);
    }

    return invocation.invoke();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.