On 06/03/2014 04:19 PM, Miloslav Trmač wrote:
2014-06-03 16:14 GMT+02:00 Marius Vollmer
Stephen Gallagher <sgallagh(a)redhat.com <mailto:firstname.lastname@example.org>>
> 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.)
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
server mailing list