You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by Adrian Crum <ad...@hlmksw.com> on 2007/10/23 01:38:17 UTC
Invoking Permission Services In Screen Widgets
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
Re: Invoking Permission Services In Screen Widgets
Posted by Adrian Crum <ad...@hlmksw.com>.
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
>>>>
>>>>
>>
>
Re: Invoking Permission Services In Screen Widgets
Posted by David E Jones <jo...@hotwaxmedia.com>.
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
>>>
>>>
>
Re: Invoking Permission Services In Screen Widgets
Posted by Adrian Crum <ad...@hlmksw.com>.
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
>>
>>
>
Re: Invoking Permission Services In Screen Widgets
Posted by David E Jones <jo...@hotwaxmedia.com>.
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
>
>