Proposal for the Server Role API
Thomas Woerner
twoerner at redhat.com
Tue Jun 3 15:00:09 UTC 2014
On 06/03/2014 04:19 PM, Miloslav Trmač wrote:
> 2014-06-03 16:14 GMT+02:00 Marius Vollmer <marius.vollmer at redhat.com
> <mailto:marius.vollmer at redhat.com>>:
>
> Stephen Gallagher <sgallagh at redhat.com <mailto:sgallagh at 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 at lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/server
>
More information about the server
mailing list