It would be helpful (from a code reuse standpoint) to enable the screen widgets to use the new
permission services. I was thinking it would be cool to have something like: <section> <permission-service service-name="..." main-action="..." resource-description="..." fail-section="fail-section"/> <!-- actions to run, stuff to display when permission service returns true --> </section> <section name="fail-section"> <!-- actions to run, stuff to display when permission service returns false --> </section> Any thoughts? -Adrian |
Wouldn't that be best in the condition block? Perhaps an alternate for of the has-permission thingy there. -David On Oct 22, 2007, at 5:38 PM, Adrian Crum wrote: > It would be helpful (from a code reuse standpoint) to enable the > screen widgets to use the new permission services. I was thinking > it would be cool to have something like: > > <section> > <permission-service service-name="..." main-action="..." resource- > description="..." fail-section="fail-section"/> > <!-- actions to run, stuff to display when permission service > returns true --> > </section> > <section name="fail-section"> > <!-- actions to run, stuff to display when permission service > returns false --> > </section> > > Any thoughts? > > -Adrian > > smime.p7s (3K) Download Attachment |
Yeah, good idea. Thanks!
David E Jones wrote: > > Wouldn't that be best in the condition block? Perhaps an alternate for > of the has-permission thingy there. > > -David > > > On Oct 22, 2007, at 5:38 PM, Adrian Crum wrote: > >> It would be helpful (from a code reuse standpoint) to enable the >> screen widgets to use the new permission services. I was thinking it >> would be cool to have something like: >> >> <section> >> <permission-service service-name="..." main-action="..." resource- >> description="..." fail-section="fail-section"/> >> <!-- actions to run, stuff to display when permission service >> returns true --> >> </section> >> <section name="fail-section"> >> <!-- actions to run, stuff to display when permission service >> returns false --> >> </section> >> >> Any thoughts? >> >> -Adrian >> >> > |
Or even better, check out the "if-service-permission" element. Looks like it may already exist. ;) -David On Oct 22, 2007, at 5:49 PM, Adrian Crum wrote: > Yeah, good idea. Thanks! > > David E Jones wrote: > >> Wouldn't that be best in the condition block? Perhaps an >> alternate for of the has-permission thingy there. >> -David >> On Oct 22, 2007, at 5:38 PM, Adrian Crum wrote: >>> It would be helpful (from a code reuse standpoint) to enable the >>> screen widgets to use the new permission services. I was >>> thinking it would be cool to have something like: >>> >>> <section> >>> <permission-service service-name="..." main-action="..." >>> resource- description="..." fail-section="fail-section"/> >>> <!-- actions to run, stuff to display when permission service >>> returns true --> >>> </section> >>> <section name="fail-section"> >>> <!-- actions to run, stuff to display when permission service >>> returns false --> >>> </section> >>> >>> Any thoughts? >>> >>> -Adrian >>> >>> > smime.p7s (3K) Download Attachment |
It does - thanks!
David E Jones wrote: > > Or even better, check out the "if-service-permission" element. Looks > like it may already exist. ;) > > -David > > > On Oct 22, 2007, at 5:49 PM, Adrian Crum wrote: > >> Yeah, good idea. Thanks! >> >> David E Jones wrote: >> >>> Wouldn't that be best in the condition block? Perhaps an alternate >>> for of the has-permission thingy there. >>> -David >>> On Oct 22, 2007, at 5:38 PM, Adrian Crum wrote: >>> >>>> It would be helpful (from a code reuse standpoint) to enable the >>>> screen widgets to use the new permission services. I was thinking >>>> it would be cool to have something like: >>>> >>>> <section> >>>> <permission-service service-name="..." main-action="..." >>>> resource- description="..." fail-section="fail-section"/> >>>> <!-- actions to run, stuff to display when permission service >>>> returns true --> >>>> </section> >>>> <section name="fail-section"> >>>> <!-- actions to run, stuff to display when permission service >>>> returns false --> >>>> </section> >>>> >>>> Any thoughts? >>>> >>>> -Adrian >>>> >>>> >> > |
Free forum by Nabble | Edit this page |