View Javadoc
1   /**
2    * Copyright By Grandsoft Company Limited.  
3    * 2013-9-25 下午05:00:41
4    */
5   package gboat2.web.service;
6   
7   import gboat2.web.exception.ValidateException;
8   import gboat2.web.model.Auth;
9   import gboat2.web.model.UserGroupOrganMapper;
10  
11  import java.util.List;
12  
13  /**
14   * 
15   * 外部用户与内部用户继承此接口 实现校验与权限匹配
16   * @author zhangxj-a
17   * @since jdk1.6
18   * @date 2013-9-25
19   *  
20   */
21  public interface IUserAuthService {
22  	
23  	/**
24  	 * 校验用户信息
25  	 * @param userName
26  	 * @param password
27  	 * @return
28  	 */
29  	public boolean validateUser(String userName,String password)throws ValidateException;
30  	
31  	/**
32  	 * TODO
33  	 * @param userName
34  	 * @return
35  	 */
36  	public List<Auth> getAuth(String userName) ;
37  	
38  	
39  	
40  	/**
41  	 * 转换外部用户
42  	 * @param userName
43  	 * @return
44  	 */
45  	public String convertOuterUserNameToInnerUserName(String userName );
46  	
47  	/**
48  	 * 把外部用户的权限转换为内部用户权限
49  	 * @param userName
50  	 * @return
51  	 */
52  	public List<UserGroupOrganMapper> convertOuterAuthToInnerAuth(String userName);
53  
54  }