How to create Permission

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

How to create Permission

ladroge
Hi
I want to create some permission rules on my catalogs. In the application we have some permission such as: ACCOUNT_ADMIN, FULL_ADMIN,

How can i create a specific permission which can give priority on catalogs or product for user;

Thanks
Reply | Threaded
Open this post in threaded view
|

Re: How to create Permission

anil.soni
Ladroge,

There is a "SecurityPermission" entity which describes granular security
permissions, which could be for a particular page or a particular service.

SecurityPermission is a two part string, separated by an "_". The first part
specifies the application, the second part the operation allowed. Thus, you
could have a permission like " CATALOG_CREATE" which means that the user
with this permission can create information in the catalog manager. Some
permissions end in _ADMIN, such as  CATALOG_ADMIN. Those permissions
automatically have the right to every operation in the application.

Individual security permissions are grouped together into groups with the
"SecurityPermissionGroup" entity which groups these permissions together.
For example, you can create a specific sets of permissions for customer
service representatives who can view customer information, enter orders, but
not make purchase orders or access internal manufacturing, accounting, or
payroll information and functions.

Each SecurityPermissionGroup is associated with a UserLogin. A Party, which
can be a Person or a PartyGroup (ie, organization) can be associated with
multiple UserLogins. Thus, a Person can have some logins with more
permission and some with less, which can be helpful with larger customers
(or larger families, for that matter.)

I hope it might be helpful for you.
On 6/10/08, ladroge <[hidden email]> wrote:

>
>
> Hi
> I want to create some permission rules on my catalogs. In the application
> we
> have some permission such as: ACCOUNT_ADMIN, FULL_ADMIN,
>
> How can i create a specific permission which can give priority on catalogs
> or product for user;
>
> Thanks
> --
> View this message in context:
> http://www.nabble.com/How-to-create-Permission-tp17751376p17751376.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>
>


--
Anil Soni
Software Engineer
Amicon Technologies Private Limited
6th Floor - Unique Tower, Behind Patel Patrol Pump,
Goregaon (W), Mumbai MH
Contact no.- +91-9892271357
Reply | Threaded
Open this post in threaded view
|

Re: How to create Permission

Sumit Pandit-3
In reply to this post by ladroge
Hello

For creating a new permission the  following code is sufficient :-

Also If you want  any specific permission you can skip the line #2 ,  
and directly assign the existing permissionId in line#3

     <SecurityGroup groupId="YourGroupName" description="Any group."/>
     <SecurityPermission permissionId="YOUR_GROUP_PERMISSION"  
description="Permission to run your specific process."/>
     <SecurityGroupPermission groupId="YourGroupName"  
permissionId="YOUR_GROUP_PERMISSION"/>
     <UserLoginSecurityGroup userLoginId="Nominator1"  
groupId="YourGroupName" fromDate="2001-05-01 00:00:00"/>

Let me know if you have any doubt in it.
Thanks
Sumit Pandit.

On Jun 10, 2008, at 3:06 PM, ladroge wrote:

>
> Hi
> I want to create some permission rules on my catalogs. In the  
> application we
> have some permission such as: ACCOUNT_ADMIN, FULL_ADMIN,
>
> How can i create a specific permission which can give priority on  
> catalogs
> or product for user;
>
> Thanks
> --
> View this message in context: http://www.nabble.com/How-to-create-Permission-tp17751376p17751376.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>

Reply | Threaded
Open this post in threaded view
|

Re: How to create Permission

Ashish Vijaywargiya
Please take a look at the following link as well :-
http://docs.ofbiz.org/display/OFBTECH/OFBiz+security

You can play with GUI by the following link and the sublink on this page (I
guess the code tracing and finding related Entities are not a big deal for
you now :-))
https://localhost:8443/partymgr/control/FindSecurityGroup

ProductStoreRole , QuoteRole , RequirementRole & AgreementRole entities are
used to help and create the Role based security.

--
Ashish


On Tue, Jun 10, 2008 at 6:04 AM, Sumit Pandit <[hidden email]>
wrote:

> Hello
>
> For creating a new permission the  following code is sufficient :-
>
> Also If you want  any specific permission you can skip the line #2 , and
> directly assign the existing permissionId in line#3
>
>    <SecurityGroup groupId="YourGroupName" description="Any group."/>
>    <SecurityPermission permissionId="YOUR_GROUP_PERMISSION"
> description="Permission to run your specific process."/>
>    <SecurityGroupPermission groupId="YourGroupName"
> permissionId="YOUR_GROUP_PERMISSION"/>
>    <UserLoginSecurityGroup userLoginId="Nominator1" groupId="YourGroupName"
> fromDate="2001-05-01 00:00:00"/>
>
> Let me know if you have any doubt in it.
> Thanks
> Sumit Pandit.
>
>
> On Jun 10, 2008, at 3:06 PM, ladroge wrote:
>
>
>> Hi
>> I want to create some permission rules on my catalogs. In the application
>> we
>> have some permission such as: ACCOUNT_ADMIN, FULL_ADMIN,
>>
>> How can i create a specific permission which can give priority on catalogs
>> or product for user;
>>
>> Thanks
>> --
>> View this message in context:
>> http://www.nabble.com/How-to-create-Permission-tp17751376p17751376.html
>> Sent from the OFBiz - User mailing list archive at Nabble.com.
>>
>>
>
Reply | Threaded
Open this post in threaded view
|

Re: How to create Permission

ladroge
In reply to this post by Sumit Pandit-3

I agree with all you have said
Let me rephrase my question:

For example i have created the catalog DEMO  and a user DEMOUSER.
I want to create a permuission rule which permit only to the user DEMO to have view on the catalog DEMO.

Thanks

Reply | Threaded
Open this post in threaded view
|

Re: How to create Permission

Ashish Vijaywargiya
As I said that ProductStoreRole entity is used to set the Role based
permission.
ProductStore comes at the top in Hierarchy of (ProductStore --> Catalog -->
Category (& Subcategory) --> Product).
So you can set the permission for the user (with specific role) on the
ProductStore and put your catalog inside it.
Please take a look at the GUI for it :-
https://localhost:8443/catalog/control/EditProductStoreRoles?productStoreId=9000

I am not sure if any entity exists to set role based permission on Catalog
and Categories.
You can propose the entities for handling role based permission on Catalog
and Category and see what Community has to say about it.

--
Ashish


On Tue, Jun 10, 2008 at 6:56 AM, ladroge <[hidden email]> wrote:

>
>
> I agree with all you have said
> Let me rephrase my question:
>
> For example i have created the catalog DEMO  and a user DEMOUSER.
> I want to create a permuission rule which permit only to the user DEMO to
> have view on the catalog DEMO.
>
> Thanks
>
>
> --
> View this message in context:
> http://www.nabble.com/How-to-create-Permission-tp17751376p17752645.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>
>