Subversion Repositories SmartDukaan

Rev

Rev 35458 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 35458 Rev 35942
Line 37... Line 37...
37
	private static final Logger LOGGER = LogManager.getLogger(RoleManager.class);
37
	private static final Logger LOGGER = LogManager.getLogger(RoleManager.class);
38
 
38
 
39
	public boolean isAuthorizedURI(Set<Integer> roleIds, String contextPath, String uri, String method)
39
	public boolean isAuthorizedURI(Set<Integer> roleIds, String contextPath, String uri, String method)
40
			throws ProfitMandiBusinessException {
40
			throws ProfitMandiBusinessException {
41
		if (isAdmin(roleIds)) {
41
		if (isAdmin(roleIds)) {
42
			LOGGER.info(uri + "[" + method + "]");
42
			LOGGER.debug("{}[{}]", uri, method);
43
			return true;
43
			return true;
44
		}
44
		}
45
		List<RoleApi> roleApis = roleApiRepository.selectByRoleIds(roleIds);
45
		List<RoleApi> roleApis = roleApiRepository.selectByRoleIds(roleIds);
46
		Set<Integer> apiIds = new HashSet<>();
46
		Set<Integer> apiIds = new HashSet<>();
47
		for (RoleApi roleApi : roleApis) {
47
		for (RoleApi roleApi : roleApis) {