On Wednesday 11 of April 2012 10:56:04 Duncan Mac-Vicar P. wrote:
> On 04/06/2012 10:54 AM, Tomas Lestach wrote:
> >>> Hmm, this isn't suitable for one system (if I understood it correctly),
> >>> because you make a query, where you get all the systems having the
> >>> specific
> >>> errata keyword and then you just elaborate a "1" for one single system
> >>> (without setting it anywhere)? This doesn't seem to be correct at all.
> >>> (Or
> >>> I just didn't understand it.)
> >> 
> >> I took the "pattern" from another method, that did the same query and
> >> the Java method in the "Manager" class returns !result.isEmpty()
> > 
> > What query/elaborator do you mean here?
> 
> For example Package_queries: package_available_to_user which is then
> used in rhn/manager/user/UserManager.java for verifyPackageAccess(org,
> packageId).
> 
> It selects for 1. If there is access, it gets 1, if not, it gets an
> empty set. The function returns a bool by computing !result.isEmpty()

This is ok, because it's not used in the elaborator.

Regards,
-- 
Tomas Lestach
RHN Satellite Engineering

_______________________________________________
Spacewalk-devel mailing list
Spacewalk-devel@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-devel

Reply via email to