Hi, On Fri, Jan 21, 2011 at 10:12 PM, Indika Kumara <[email protected]> wrote:
> HI Dimuthu, > > My questions was different ... I needed to get all permissions associated > with a given user for a given resource. > > Something like > > public Permission[] getAllowedPermissions(String username, String > resourceParth) > > The Cassandra's authorization API requires that. > > Sorry misread your mail. Yes can be done. But user permissions are being deprecated. Thanks, Dimuthu > Thanks, > > Indika > > > > On Fri, Jan 21, 2011 at 10:33 PM, Dimuthu Leelarathne > <[email protected]>wrote: > >> Hi, >> >> There is a method like this in AuthorizationManager. >> >> public String[] getExplicitlyDeniedUsersForResource(String resourceId, >> String action) >> throws UserStoreException; >> >> public String[] getExplicitlyAllowedUsersForResource(String resourceId, >> String action) >> throws UserStoreException; >> >> However these methods are deprecated since we plan to use role based >> permissions. >> >> thanks, >> dimuthu >> >> On Fri, Jan 21, 2011 at 9:44 PM, Indika Kumara <[email protected]> wrote: >> >>> Hi All, >>> >>> Could I get the all permission (or actions) allowed for a given user to a >>> given resource - something like getAllowedPermissions(String username, >>> String resourceParth)? I cannot find a method in the 'AuthorizationManager'. >>> >>> >>> Could someone help me on this matter? >>> >>> Thanks, >>> >>> Indika >>> >>> _______________________________________________ >>> Carbon-dev mailing list >>> [email protected] >>> https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev >>> >>> >> >> _______________________________________________ >> Carbon-dev mailing list >> [email protected] >> https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev >> >> > > _______________________________________________ > Carbon-dev mailing list > [email protected] > https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev > >
_______________________________________________ Carbon-dev mailing list [email protected] https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev
