Invoking Permission Services In Screen Widgets

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Invoking Permission Services In Screen Widgets

Adrian Crum
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


Reply | Threaded
Open this post in threaded view
|

Re: Invoking Permission Services In Screen Widgets

David E Jones

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
Reply | Threaded
Open this post in threaded view
|

Re: Invoking Permission Services In Screen Widgets

Adrian Crum
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
>>
>>
>

Reply | Threaded
Open this post in threaded view
|

Re: Invoking Permission Services In Screen Widgets

David E Jones

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
Reply | Threaded
Open this post in threaded view
|

Re: Invoking Permission Services In Screen Widgets

Adrian Crum
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
>>>>
>>>>
>>
>