PageRenderTime 11ms CodeModel.GetById 2ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

/web/DRCP/src/com/bluesky/drcp/persistence/dao/FunctionAuthorizationDao.java

http://drcp.googlecode.com/
Java | 18 lines | 12 code | 6 blank | 0 comment | 0 complexity | 379604695ab8c34ca6c9400a73a394dc MD5 | raw file
 1package com.bluesky.drcp.persistence.dao;
 2
 3import java.util.List;
 4
 5import com.bluesky.drcp.business.FunctionAuthorization;
 6
 7
 8public interface FunctionAuthorizationDao {
 9	
10	void save(FunctionAuthorization functionAuthorization);
11	boolean isUserAuthorized(String userId,String functionId);	
12	boolean isRoleAuthorized(String roleId,String functionId);
13	List getAuthorizedFunctions(String roleId);
14	void setAuthorizedFunctions(String roleId, List functionIds);
15	void deleteByFunctionId(String functionId);
16	void deleteByRoleId(String roleId);
17	
18}