cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From indika kumara <indika.k...@gmail.com>
Subject The authorize method of IAuthority
Date Fri, 21 Jan 2011 16:45:14 GMT
Hi All,

Shouldn't the existing method be changed to the following?

public boolean authorize(AuthenticatedUser user, List<Object> resource,
Permission permission);   // checks the authority for a given user for a
given resource for a given permission

The existing method:

public EnumSet<Permission> authorize(AuthenticatedUser user, List<Object>
resource);

I noticed that we retrieved all permissions and checks
'perms.contains(perm)'  ... May permissions be cached at later?

Thanks,

Indika

Mime
View raw message