On 06/03/2014 04:19 PM, Miloslav Trmač wrote:
2014-06-03 16:14 GMT+02:00 Marius Vollmer
<marius.vollmer(a)redhat.com
<mailto:marius.vollmer@redhat.com>>:
Stephen Gallagher <sgallagh(a)redhat.com <mailto:sgallagh@redhat.com>>
writes:
> Yeah, we probably need getAvailableRoles()
The proposal had a "roles" property, isn't that enough?
Ah, true. (Though that makes it somewhat curious that one roel list is
a property and another is a return value from a function.)
Mirek
With the property roles, you will get all roles. The consumer than has
to loop over all roles to get the ones that are in active state.
With the method getActiveRoles this is done internally and only the
roles that are active. With a general getRoleByState(state) this could
be extended.
_______________________________________________
server mailing list
server(a)lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/server