Package br.com.boardnaveia.action.helper

Source Code of br.com.boardnaveia.action.helper.BaseAction

package br.com.boardnaveia.action.helper;

import com.google.appengine.api.users.User;
import com.google.appengine.api.users.UserService;
import com.google.appengine.api.users.UserServiceFactory;
import com.opensymphony.xwork2.ActionSupport;

public abstract class BaseAction extends ActionSupport {

  /**
   *
   */
  private static final long serialVersionUID = -4322706551142570325L;

  protected User getUsuario(){
   
    UserService userService = UserServiceFactory.getUserService();
   
    return userService.getCurrentUser();
   
  }
 
  protected boolean isEmpty(String valor){
    return valor == null || valor.equals("");
  }
 
}
TOP

Related Classes of br.com.boardnaveia.action.helper.BaseAction

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.