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()
--
Duncan Mac-Vicar P. - http://www.suse.com/
SUSE LINUX Products GmbH, GF: Jeff Hawn, Jennifer Guild, Felix
Imendörffer, HRB 16746 (AG Nürnberg)
Maxfeldstraße 5, 90409 Nürnberg, Germany
_______________________________________________
Spacewalk-devel mailing list
Spacewalk-devel@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-devel