A Question about authorize method of IAuthority

2011-01-31 Thread indika kumara
Hi All, Currently, there are two permissions - read and write, and there is no way to know the current operation being performed such as add, update, etc. If the operation is 'add', as the user is already logged into the system, I would like to authorize the user for the resource going to add. I

Re: A Question about authorize method of IAuthority

2011-01-31 Thread Stu Hood
Our intention was that if you wanted to add another permission like update (a subset of write) then you would return it from the method as part of the EnumSetPermission for that resource. I would see how much trouble it would be to add a new Permission value for update. Note that Cassandra itself

Re: A Question about authorize method of IAuthority

2011-01-31 Thread indika kumara
Thanks Stu for the information. I have not still looked deeper at the internals of the Cassandra. I just thought the operations such as insert, system_add_column_family, system_add_keyspace in 'Cassandra.Iface' imply an 'add' operation. I just wanted to pass that action to the 'authrorize' method,

The authorize method of IAuthority

2011-01-21 Thread indika kumara
Hi All, Shouldn't the existing method be changed to the following? public boolean authorize(AuthenticatedUser user, ListObject resource, Permission permission); // checks the authority for a given user for a given resource for a given permission The existing method: public EnumSetPermission

Re: The authorize method of IAuthority

2011-01-21 Thread Eric Evans
On Fri, 2011-01-21 at 22:45 +0600, indika kumara wrote: Shouldn't the existing method be changed to the following? public boolean authorize(AuthenticatedUser user, ListObject resource, Permission permission); // checks the authority for a given user for a given resource for a given

Re: The authorize method of IAuthority

2011-01-21 Thread indika kumara
Thanks Eric for the clarification. On Fri, Jan 21, 2011 at 11:11 PM, Eric Evans eev...@rackspace.com wrote: On Fri, 2011-01-21 at 22:45 +0600, indika kumara wrote: Shouldn't the existing method be changed to the following? public boolean authorize(AuthenticatedUser user, ListObject