checking access permissions based on data

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

checking access permissions based on data

jonwimp
In Widget screens, is there a way to check access permissions based on data?

For eg, a data row with field "ownerId" of value "MY_COMPANY" can be accessed (viewed) by users
associated with say a company named "MY_COMPANY", but cannot be viewed by users associated with
say a company named "OTHER_COMPANY". Is this possible inside Widget screens? I have a feeling this
is possible.

Jonathon
Reply | Threaded
Open this post in threaded view
|

Re: checking access permissions based on data

Scott Gray
Hi Jonathon

I haven't followed it closely but this should provide some info:
https://issues.apache.org/jira/browse/OFBIZ-609

Regards
Scott

On 22/06/07, Jonathon -- Improov <[hidden email]> wrote:

>
> In Widget screens, is there a way to check access permissions based on
> data?
>
> For eg, a data row with field "ownerId" of value "MY_COMPANY" can be
> accessed (viewed) by users
> associated with say a company named "MY_COMPANY", but cannot be viewed by
> users associated with
> say a company named "OTHER_COMPANY". Is this possible inside Widget
> screens? I have a feeling this
> is possible.
>
> Jonathon
>
Reply | Threaded
Open this post in threaded view
|

Re: checking access permissions based on data

Jacopo Cappellato
In reply to this post by jonwimp
Jonathon,

have a look at the screen definition "CommonProductDecorator" in

applications/product/widget/catalog/CatalogCommonScreens.xml

I think it may be useful,

Jacopo


Jonathon -- Improov wrote:

> In Widget screens, is there a way to check access permissions based on
> data?
>
> For eg, a data row with field "ownerId" of value "MY_COMPANY" can be
> accessed (viewed) by users associated with say a company named
> "MY_COMPANY", but cannot be viewed by users associated with say a
> company named "OTHER_COMPANY". Is this possible inside Widget screens? I
> have a feeling this is possible.
>
> Jonathon

Reply | Threaded
Open this post in threaded view
|

Re: checking access permissions based on data

Adrian Crum
In reply to this post by Scott Gray
That's a great suggestion! I just used the service-based permissions for my calendar program and it
works great!

Scott Gray wrote:

> Hi Jonathon
>
> I haven't followed it closely but this should provide some info:
> https://issues.apache.org/jira/browse/OFBIZ-609
>
> Regards
> Scott
>
> On 22/06/07, Jonathon -- Improov <[hidden email]> wrote:
>
>>
>> In Widget screens, is there a way to check access permissions based on
>> data?
>>
>> For eg, a data row with field "ownerId" of value "MY_COMPANY" can be
>> accessed (viewed) by users
>> associated with say a company named "MY_COMPANY", but cannot be viewed by
>> users associated with
>> say a company named "OTHER_COMPANY". Is this possible inside Widget
>> screens? I have a feeling this
>> is possible.
>>
>> Jonathon
>>
>
Reply | Threaded
Open this post in threaded view
|

Re: checking access permissions based on data

jonwimp
Adrian, Scott,

Do you mean using secas?

Currently, I am doing it with services too, but called from simple methods.

Typical flow:

1. <request-map> has an event (simple method) that does some work

2. Event codes first calls a permissions service, which checks all kinds of DB
    values, ownership tags, etc.

3. Event codes may, depending on permissions check, return with a "noperm"
    response code or continue execution and finally return a "success" code.

4. <request-map> has 2 views to cater for the "success" and the "failure"
    conditions. "Failure" conditions all go to a generic failure screen which
    displays the error message (eg, "you do not have permissions to do that!").


Jonathon

Adrian Crum wrote:

> That's a great suggestion! I just used the service-based permissions for
> my calendar program and it works great!
>
> Scott Gray wrote:
>> Hi Jonathon
>>
>> I haven't followed it closely but this should provide some info:
>> https://issues.apache.org/jira/browse/OFBIZ-609
>>
>> Regards
>> Scott
>>
>> On 22/06/07, Jonathon -- Improov <[hidden email]> wrote:
>>
>>>
>>> In Widget screens, is there a way to check access permissions based on
>>> data?
>>>
>>> For eg, a data row with field "ownerId" of value "MY_COMPANY" can be
>>> accessed (viewed) by users
>>> associated with say a company named "MY_COMPANY", but cannot be
>>> viewed by
>>> users associated with
>>> say a company named "OTHER_COMPANY". Is this possible inside Widget
>>> screens? I have a feeling this
>>> is possible.
>>>
>>> Jonathon
>>>
>>
>
>

Reply | Threaded
Open this post in threaded view
|

Re: checking access permissions based on data

Adrian Crum
Jonathon,

I was referring to the <permission-service> element. Take a look at
framework/example/servicedef/services.xml.

-Adrian

Jonathon -- Improov wrote:

> Adrian, Scott,
>
> Do you mean using secas?
>
> Currently, I am doing it with services too, but called from simple methods.
>
> Typical flow:
>
> 1. <request-map> has an event (simple method) that does some work
>
> 2. Event codes first calls a permissions service, which checks all kinds
> of DB
>    values, ownership tags, etc.
>
> 3. Event codes may, depending on permissions check, return with a "noperm"
>    response code or continue execution and finally return a "success" code.
>
> 4. <request-map> has 2 views to cater for the "success" and the "failure"
>    conditions. "Failure" conditions all go to a generic failure screen
> which
>    displays the error message (eg, "you do not have permissions to do
> that!").
>
>
> Jonathon
>
> Adrian Crum wrote:
>
>> That's a great suggestion! I just used the service-based permissions
>> for my calendar program and it works great!
>>
>> Scott Gray wrote:
>>
>>> Hi Jonathon
>>>
>>> I haven't followed it closely but this should provide some info:
>>> https://issues.apache.org/jira/browse/OFBIZ-609
>>>
>>> Regards
>>> Scott
>>>
>>> On 22/06/07, Jonathon -- Improov <[hidden email]> wrote:
>>>
>>>>
>>>> In Widget screens, is there a way to check access permissions based on
>>>> data?
>>>>
>>>> For eg, a data row with field "ownerId" of value "MY_COMPANY" can be
>>>> accessed (viewed) by users
>>>> associated with say a company named "MY_COMPANY", but cannot be
>>>> viewed by
>>>> users associated with
>>>> say a company named "OTHER_COMPANY". Is this possible inside Widget
>>>> screens? I have a feeling this
>>>> is possible.
>>>>
>>>> Jonathon
>>>>
>>>
>>
>>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: checking access permissions based on data

jonwimp
I see. Thanks.

Jonathon

Adrian Crum wrote:

> Jonathon,
>
> I was referring to the <permission-service> element. Take a look at
> framework/example/servicedef/services.xml.
>
> -Adrian
>
> Jonathon -- Improov wrote:
>> Adrian, Scott,
>>
>> Do you mean using secas?
>>
>> Currently, I am doing it with services too, but called from simple
>> methods.
>>
>> Typical flow:
>>
>> 1. <request-map> has an event (simple method) that does some work
>>
>> 2. Event codes first calls a permissions service, which checks all
>> kinds of DB
>>    values, ownership tags, etc.
>>
>> 3. Event codes may, depending on permissions check, return with a
>> "noperm"
>>    response code or continue execution and finally return a "success"
>> code.
>>
>> 4. <request-map> has 2 views to cater for the "success" and the "failure"
>>    conditions. "Failure" conditions all go to a generic failure screen
>> which
>>    displays the error message (eg, "you do not have permissions to do
>> that!").
>>
>>
>> Jonathon
>>
>> Adrian Crum wrote:
>>
>>> That's a great suggestion! I just used the service-based permissions
>>> for my calendar program and it works great!
>>>
>>> Scott Gray wrote:
>>>
>>>> Hi Jonathon
>>>>
>>>> I haven't followed it closely but this should provide some info:
>>>> https://issues.apache.org/jira/browse/OFBIZ-609
>>>>
>>>> Regards
>>>> Scott
>>>>
>>>> On 22/06/07, Jonathon -- Improov <[hidden email]> wrote:
>>>>
>>>>>
>>>>> In Widget screens, is there a way to check access permissions based on
>>>>> data?
>>>>>
>>>>> For eg, a data row with field "ownerId" of value "MY_COMPANY" can be
>>>>> accessed (viewed) by users
>>>>> associated with say a company named "MY_COMPANY", but cannot be
>>>>> viewed by
>>>>> users associated with
>>>>> say a company named "OTHER_COMPANY". Is this possible inside Widget
>>>>> screens? I have a feeling this
>>>>> is possible.
>>>>>
>>>>> Jonathon
>>>>>
>>>>
>>>
>>>
>>
>>
>
>

Reply | Threaded
Open this post in threaded view
|

How to change manually order the module appear on app-bar?

Mathius Allo
Hi All,
   
  I have a quick question on how to manually order the module appear on the app-bar? It looks like that it is sorted based on the module name.
   
  i.e. I would like to display "Home" before "Example" from left to right.
   
  Cheers,
  Mathius

 
---------------------------------
Expecting? Get great news right away with email Auto-Check.
Try the Yahoo! Mail Beta.
Reply | Threaded
Open this post in threaded view
|

Re: How to change manually order the module appear on app-bar?

Goh Hong
When you mean by module name does that mean if Home is set to Zome it will
shift to the extreme right?
Does it relates to the order in the xml file if any?

Regards
Goh


On 6/26/07, Mathius Allo <[hidden email]> wrote:

>
> Hi All,
>
> I have a quick question on how to manually order the module appear on the
> app-bar? It looks like that it is sorted based on the module name.
>
> i.e. I would like to display "Home" before "Example" from left to right.
>
> Cheers,
> Mathius
>
>
> ---------------------------------
> Expecting? Get great news right away with email Auto-Check.
> Try the Yahoo! Mail Beta.
Reply | Threaded
Open this post in threaded view
|

Re: How to control the order of module appear on app-bar?

Mathius Allo
Hi Goh,
 
It seems to be not related to the order entry in the component-load.xml under <Ofbiz>\application folder.
   
  Thanks in advanced.
   
  Mathius.
 
Goh Hong <[hidden email]> wrote:
  When you mean by module name does that mean if Home is set to Zome it will
shift to the extreme right?
Does it relates to the order in the xml file if any?

Regards
Goh


On 6/26/07, Mathius Allo wrote:

>
> Hi All,
>
> I have a quick question on how to manually order the module appear on the
> app-bar? It looks like that it is sorted based on the module name.
>
> i.e. I would like to display "Home" before "Example" from left to right.
>
> Cheers,
> Mathius
>
>
> ---------------------------------
> Expecting? Get great news right away with email Auto-Check.
> Try the Yahoo! Mail Beta.


       
---------------------------------
Pinpoint customers who are looking for what you sell.