HI ALL,
Any one can explain how to create new security group and map with custom module???? Bz i created one custom module and enable the login authentication, but i cant map this module to new security group. If i specify my custom module name in base-permission in ofbiz-component.xml then link is disabled in admin panel. If i specify base-permission="OFBTOOLS, ORDERMGR" then my application name is appear in Admin console(Application List). Thanks Ravi |
A search in docs.ofbiz.org with the word 'security' would have given the
following result in the first position: http://docs.ofbiz.org/display/OFBTECH/OFBiz+security Regards, Hans On Wed, 2009-05-27 at 09:42 +0530, Ravi Kumar wrote: > HI ALL, > > Any one can explain how to create new security group and map with custom > module???? > > > Bz i created one custom module and enable the login authentication, but i > cant map this module to new security group. > > If i specify my custom module name in base-permission in ofbiz-component.xml > then link is disabled in admin panel. > If i specify base-permission="OFBTOOLS, ORDERMGR" then my application name > is appear in Admin console(Application List). > > Thanks > Ravi Antwebsystems.com: Quality OFBiz services for competitive rates |
OK.
I have very simple question. My custom application name is "xyz". What is the base-permission value??? *ofbiz-component.xml * <webapp name="xyz" title="XYZ Management" server="default-server" location="webapp/xyz" base-permission="OFBTOOLS,XYZ" mount-point="/xyz" app-bar-display="true" /> or base-permission="XYZ" this is* not working*!!!! my application name not appear in application list(admin user login). if i change my *ofbiz-component.xml * <webapp name="xyz" title="XYZ Management" server="default-server" location="webapp/ayz" base-permission="OFBTOOLS,ORDERMGR" mount-point="/xyz" app-bar-display="true" /> Title "XYZ Management" appear in application list and ORDERMGR user can able access my module. *What is the base-permission value???* Thanks, Ravi On Wed, May 27, 2009 at 9:53 AM, Hans Bakker <[hidden email]>wrote: > A search in docs.ofbiz.org with the word 'security' would have given the > following result in the first position: > http://docs.ofbiz.org/display/OFBTECH/OFBiz+security > > Regards, Hans > > On Wed, 2009-05-27 at 09:42 +0530, Ravi Kumar wrote: > > HI ALL, > > > > Any one can explain how to create new security group and map with custom > > module???? > > > > > > Bz i created one custom module and enable the login authentication, but i > > cant map this module to new security group. > > > > If i specify my custom module name in base-permission in > ofbiz-component.xml > > then link is disabled in admin panel. > > If i specify base-permission="OFBTOOLS, ORDERMGR" then my application > name > > is appear in Admin console(Application List). > > > > Thanks > > Ravi > -- > Antwebsystems.com: Quality OFBiz services for competitive rates > > |
Hello Ravi,
You can refer *SecurityData.xml files. HTH Thanks & Regards -- Amit Sharma Ravi Kumar wrote: > OK. > > I have very simple question. > > My custom application name is "xyz". > > What is the base-permission value??? > > *ofbiz-component.xml * > > <webapp name="xyz" > title="XYZ Management" > server="default-server" > location="webapp/xyz" > base-permission="OFBTOOLS,XYZ" > mount-point="/xyz" > app-bar-display="true" > /> > or > base-permission="XYZ" > > this is* not working*!!!! > my application name not appear in application list(admin user login). > > if i change my > *ofbiz-component.xml * > > <webapp name="xyz" > title="XYZ Management" > server="default-server" > location="webapp/ayz" > base-permission="OFBTOOLS,ORDERMGR" > mount-point="/xyz" > app-bar-display="true" > /> > > Title "XYZ Management" appear in application list and ORDERMGR user can able > access my module. > > *What is the base-permission value???* > > Thanks, > Ravi > > On Wed, May 27, 2009 at 9:53 AM, Hans Bakker > <[hidden email]>wrote: > > >> A search in docs.ofbiz.org with the word 'security' would have given the >> following result in the first position: >> http://docs.ofbiz.org/display/OFBTECH/OFBiz+security >> >> Regards, Hans >> >> On Wed, 2009-05-27 at 09:42 +0530, Ravi Kumar wrote: >> >>> HI ALL, >>> >>> Any one can explain how to create new security group and map with custom >>> module???? >>> >>> >>> Bz i created one custom module and enable the login authentication, but i >>> cant map this module to new security group. >>> >>> If i specify my custom module name in base-permission in >>> >> ofbiz-component.xml >> >>> then link is disabled in admin panel. >>> If i specify base-permission="OFBTOOLS, ORDERMGR" then my application >>> >> name >> >>> is appear in Admin console(Application List). >>> >>> Thanks >>> Ravi >>> >> -- >> Antwebsystems.com: Quality OFBiz services for competitive rates >> >> >> > > |
In reply to this post by Ravikumar N B
Hello Ravi,
Here is what I understand about the permissions * Provide base-permission=OFBTOOLS, XYZ * Create SecurityPermissions. Follow the ExampleSecurityData.xml. You should create the datafile called xyzsecuritydata.xml and provide permissions XYZ_CREATE, XYZ_DELETE * Create SecurityPermissionGroup like XYZ_ADMIN and give the permissions. Load the above data using ant run-install or using webtools. Go to the PartyMgr and click on the desired party. Create a userlogin for that party and assign the SecurityGroups to that user login. Now, the user will be able to just see XYZ component. Hope this helps and I am correct. -Aswath On Wed, May 27, 2009 at 10:23 AM, Ravi Kumar <[hidden email]> wrote: > OK. > > I have very simple question. > > My custom application name is "xyz". > > What is the base-permission value??? > > *ofbiz-component.xml * > > <webapp name="xyz" > title="XYZ Management" > server="default-server" > location="webapp/xyz" > base-permission="OFBTOOLS,XYZ" > mount-point="/xyz" > app-bar-display="true" > /> > or > base-permission="XYZ" > > this is* not working*!!!! > my application name not appear in application list(admin user login). > > if i change my > *ofbiz-component.xml * > > <webapp name="xyz" > title="XYZ Management" > server="default-server" > location="webapp/ayz" > base-permission="OFBTOOLS,ORDERMGR" > mount-point="/xyz" > app-bar-display="true" > /> > > Title "XYZ Management" appear in application list and ORDERMGR user can > able > access my module. > > *What is the base-permission value???* > > Thanks, > Ravi > > On Wed, May 27, 2009 at 9:53 AM, Hans Bakker > <[hidden email]>wrote: > > > A search in docs.ofbiz.org with the word 'security' would have given the > > following result in the first position: > > http://docs.ofbiz.org/display/OFBTECH/OFBiz+security > > > > Regards, Hans > > > > On Wed, 2009-05-27 at 09:42 +0530, Ravi Kumar wrote: > > > HI ALL, > > > > > > Any one can explain how to create new security group and map with > custom > > > module???? > > > > > > > > > Bz i created one custom module and enable the login authentication, but > i > > > cant map this module to new security group. > > > > > > If i specify my custom module name in base-permission in > > ofbiz-component.xml > > > then link is disabled in admin panel. > > > If i specify base-permission="OFBTOOLS, ORDERMGR" then my application > > name > > > is appear in Admin console(Application List). > > > > > > Thanks > > > Ravi > > -- > > Antwebsystems.com: Quality OFBiz services for competitive rates > > > > > |
HI
I tried with ExampleSecurityData.xml, but i couldn't get my application name in application list. Can you provide some xml??? Thanks On Wed, May 27, 2009 at 11:13 AM, aswath narayana < [hidden email]> wrote: > Hello Ravi, > Here is what I understand about the permissions > > * Provide base-permission=OFBTOOLS, XYZ > > * Create SecurityPermissions. Follow the ExampleSecurityData.xml. You > should create the datafile called xyzsecuritydata.xml and provide > permissions XYZ_CREATE, XYZ_DELETE > > * Create SecurityPermissionGroup like XYZ_ADMIN and give the permissions. > > Load the above data using ant run-install or using webtools. > > Go to the PartyMgr and click on the desired party. > Create a userlogin for that party and assign the SecurityGroups to that > user > login. > > Now, the user will be able to just see XYZ component. > Hope this helps and I am correct. > > -Aswath > > On Wed, May 27, 2009 at 10:23 AM, Ravi Kumar <[hidden email]> wrote: > > > OK. > > > > I have very simple question. > > > > My custom application name is "xyz". > > > > What is the base-permission value??? > > > > *ofbiz-component.xml * > > > > <webapp name="xyz" > > title="XYZ Management" > > server="default-server" > > location="webapp/xyz" > > base-permission="OFBTOOLS,XYZ" > > mount-point="/xyz" > > app-bar-display="true" > > /> > > or > > base-permission="XYZ" > > > > this is* not working*!!!! > > my application name not appear in application list(admin user login). > > > > if i change my > > *ofbiz-component.xml * > > > > <webapp name="xyz" > > title="XYZ Management" > > server="default-server" > > location="webapp/ayz" > > base-permission="OFBTOOLS,ORDERMGR" > > mount-point="/xyz" > > app-bar-display="true" > > /> > > > > Title "XYZ Management" appear in application list and ORDERMGR user can > > able > > access my module. > > > > *What is the base-permission value???* > > > > Thanks, > > Ravi > > > > On Wed, May 27, 2009 at 9:53 AM, Hans Bakker > > <[hidden email]>wrote: > > > > > A search in docs.ofbiz.org with the word 'security' would have given > the > > > following result in the first position: > > > http://docs.ofbiz.org/display/OFBTECH/OFBiz+security > > > > > > Regards, Hans > > > > > > On Wed, 2009-05-27 at 09:42 +0530, Ravi Kumar wrote: > > > > HI ALL, > > > > > > > > Any one can explain how to create new security group and map with > > custom > > > > module???? > > > > > > > > > > > > Bz i created one custom module and enable the login authentication, > but > > i > > > > cant map this module to new security group. > > > > > > > > If i specify my custom module name in base-permission in > > > ofbiz-component.xml > > > > then link is disabled in admin panel. > > > > If i specify base-permission="OFBTOOLS, ORDERMGR" then my application > > > name > > > > is appear in Admin console(Application List). > > > > > > > > Thanks > > > > Ravi > > > -- > > > Antwebsystems.com: Quality OFBiz services for competitive rates > > > > > > > > > |
ExampleSecurityData.xml is the best xml file to take as an example.
I hope you have uploaded the security data. Following things you can do, so that it will be helpful for others in the group also to chime in and help you. Login as admin Click on the Party Click on the Security sub-tab Check whether your new SecurityPermissionGroup is listed or not. Login as admin Do you see your XYZ component in the main application bar? You should see XYZ, otherwise there is a basic issue in creating the XYZ component. -Aswath On Wed, May 27, 2009 at 1:12 PM, Ravi Kumar <[hidden email]> wrote: > HI > > I tried with ExampleSecurityData.xml, but i couldn't get my application > name in application list. > > Can you provide some xml??? > > Thanks > > > > On Wed, May 27, 2009 at 11:13 AM, aswath narayana < > [hidden email]> wrote: > >> Hello Ravi, >> Here is what I understand about the permissions >> >> * Provide base-permission=OFBTOOLS, XYZ >> >> * Create SecurityPermissions. Follow the ExampleSecurityData.xml. You >> should create the datafile called xyzsecuritydata.xml and provide >> permissions XYZ_CREATE, XYZ_DELETE >> >> * Create SecurityPermissionGroup like XYZ_ADMIN and give the permissions. >> >> Load the above data using ant run-install or using webtools. >> >> Go to the PartyMgr and click on the desired party. >> Create a userlogin for that party and assign the SecurityGroups to that >> user >> login. >> >> Now, the user will be able to just see XYZ component. >> Hope this helps and I am correct. >> >> -Aswath >> >> On Wed, May 27, 2009 at 10:23 AM, Ravi Kumar <[hidden email]> wrote: >> >> > OK. >> > >> > I have very simple question. >> > >> > My custom application name is "xyz". >> > >> > What is the base-permission value??? >> > >> > *ofbiz-component.xml * >> > >> > <webapp name="xyz" >> > title="XYZ Management" >> > server="default-server" >> > location="webapp/xyz" >> > base-permission="OFBTOOLS,XYZ" >> > mount-point="/xyz" >> > app-bar-display="true" >> > /> >> > or >> > base-permission="XYZ" >> > >> > this is* not working*!!!! >> > my application name not appear in application list(admin user login). >> > >> > if i change my >> > *ofbiz-component.xml * >> > >> > <webapp name="xyz" >> > title="XYZ Management" >> > server="default-server" >> > location="webapp/ayz" >> > base-permission="OFBTOOLS,ORDERMGR" >> > mount-point="/xyz" >> > app-bar-display="true" >> > /> >> > >> > Title "XYZ Management" appear in application list and ORDERMGR user can >> > able >> > access my module. >> > >> > *What is the base-permission value???* >> > >> > Thanks, >> > Ravi >> > >> > On Wed, May 27, 2009 at 9:53 AM, Hans Bakker >> > <[hidden email]>wrote: >> > >> > > A search in docs.ofbiz.org with the word 'security' would have given >> the >> > > following result in the first position: >> > > http://docs.ofbiz.org/display/OFBTECH/OFBiz+security >> > > >> > > Regards, Hans >> > > >> > > On Wed, 2009-05-27 at 09:42 +0530, Ravi Kumar wrote: >> > > > HI ALL, >> > > > >> > > > Any one can explain how to create new security group and map with >> > custom >> > > > module???? >> > > > >> > > > >> > > > Bz i created one custom module and enable the login authentication, >> but >> > i >> > > > cant map this module to new security group. >> > > > >> > > > If i specify my custom module name in base-permission in >> > > ofbiz-component.xml >> > > > then link is disabled in admin panel. >> > > > If i specify base-permission="OFBTOOLS, ORDERMGR" then my >> application >> > > name >> > > > is appear in Admin console(Application List). >> > > > >> > > > Thanks >> > > > Ravi >> > > -- >> > > Antwebsystems.com: Quality OFBiz services for competitive rates >> > > >> > > >> > >> > > |
Still i cant get the result :(
This is SecurityGroupPermission decleration. <SecurityGroupPermission groupId="XYZ_ADMIN" permissionId="access:xyz"/> But i couldn't get the XYZ_ADMIN in SecurityGroups List. :( If base-permission="OFBTOOLS,XYZ" then doesn't show my application name in applications bar. If base-permission="OFBTOOLS,ORDERMGR" the xyz application name in applications bar. ofbiz-component.xml <?xml version="1.0" encoding="UTF-8"?> <ofbiz-component name="xyz" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation=" http://www.ofbiz.org/dtds/ofbiz-component.xsd"> <resource-loader name="main" type="component"/> <entity-resource type="model" reader-name="main" loader="main" location="entitydef/entitymodel.xml"/> <entity-resource type="model" reader-name="main" loader="main" location="entitydef/entitymodel_view.xml"/> <entity-resource type="group" reader-name="main" loader="main" location="entitydef/entitygroup.xml"/> <entity-resource type="data" reader-name="seed" loader="main" location="data/SecurityData.xml"/> <webapp name="xyz" title="xyz Order Management" server="default-server" location="webapp/xyz" base-permission="OFBTOOLS,XYZ" mount-point="/xyz" app-bar-display="true" /> </ofbiz-component> SecurityData.xml <?xml version="1.0" encoding="UTF-8"?> <entity-engine-xml> <!-- xyz security --> <SecurityPermission description="ACCESS the xyz Application" permissionId="access:xyz"/> <SecurityPermission description="CREATE operations in the xyz Application" permissionId="create:xyz" /> <SecurityPermission description="READ operations in the xyz Application" permissionId="read:xyz"/> <SecurityPermission description="UPDATE operations in the xyz Application" permissionId="update:xyz" /> <SecurityPermission description="DELETE operations in the xyz Application" permissionId="delete:xyz"/> <SecurityPermission description="CREATE STATUS operations in the xyz Application" permissionId="create:xyz:status"/> <SecurityPermission description="READ STATUS operations in the xyz Application" permissionId="read:xyz:status"/> <SecurityPermission description="UPDATE STATUS operations in the xyz Application" permissionId="update:xyz:status"/> <SecurityPermission description="DELETE STATUS operations in the xyz Application" permissionId="delete:xyz:status"/> <SecurityPermission description="CREATE ITEM operations in the xyz Application" permissionId="create:xyz:item"/> <SecurityPermission description="READ ITEM operations in the xyz Application" permissionId="read:xyz:item"/> <SecurityPermission description="UPDATE ITEM operations in the xyz Application" permissionId="update:xyz:item"/> <SecurityPermission description="DELETE ITEM operations in the xyz Application" permissionId="delete:xyz:item"/> <SecurityPermission description="CREATE FEATURE operations in the xyz Application" permissionId="create:xyz:feature"/> <SecurityPermission description="READ ITEM operations in the xyz Application" permissionId="read:xyz:feature"/> <SecurityPermission description="UPDATE ITEM operations in the xyz Application" permissionId="update:xyz:feature"/> <SecurityPermission description="DELETE ITEM operations in the xyz Application" permissionId="delete:xyz:feature"/> <SecurityGroupPermission groupId="XYZ_ADMIN" permissionId="access:xyz"/> <SecurityGroupPermission groupId="XYZ_ADMIN" permissionId="create:xyz"/> <SecurityGroupPermission groupId="XYZ_ADMIN" permissionId="read:xyz"/> <SecurityGroupPermission groupId="XYZ_ADMIN" permissionId="update:xyz"/> <SecurityGroupPermission groupId="XYZ_ADMIN" permissionId="delete:xyz"/> </entity-engine-xml> Please HELP me to FIX. :( On Wed, May 27, 2009 at 1:36 PM, aswath narayana <[hidden email] > wrote: > ExampleSecurityData.xml is the best xml file to take as an example. > I hope you have uploaded the security data. > > Following things you can do, so that it will be helpful for others in the > group also to chime in and help you. > > Login as admin > Click on the Party > Click on the Security sub-tab > Check whether your new SecurityPermissionGroup is listed or not. > > Login as admin > Do you see your XYZ component in the main application bar? > You should see XYZ, otherwise there is a basic issue in creating the XYZ > component. > > -Aswath > > > > > > On Wed, May 27, 2009 at 1:12 PM, Ravi Kumar <[hidden email]> wrote: > >> HI >> >> I tried with ExampleSecurityData.xml, but i couldn't get my application >> name in application list. >> >> Can you provide some xml??? >> >> Thanks >> >> >> >> On Wed, May 27, 2009 at 11:13 AM, aswath narayana < >> [hidden email]> wrote: >> >>> Hello Ravi, >>> Here is what I understand about the permissions >>> >>> * Provide base-permission=OFBTOOLS, XYZ >>> >>> * Create SecurityPermissions. Follow the ExampleSecurityData.xml. You >>> should create the datafile called xyzsecuritydata.xml and provide >>> permissions XYZ_CREATE, XYZ_DELETE >>> >>> * Create SecurityPermissionGroup like XYZ_ADMIN and give the permissions. >>> >>> Load the above data using ant run-install or using webtools. >>> >>> Go to the PartyMgr and click on the desired party. >>> Create a userlogin for that party and assign the SecurityGroups to that >>> user >>> login. >>> >>> Now, the user will be able to just see XYZ component. >>> Hope this helps and I am correct. >>> >>> -Aswath >>> >>> On Wed, May 27, 2009 at 10:23 AM, Ravi Kumar <[hidden email]> >>> wrote: >>> >>> > OK. >>> > >>> > I have very simple question. >>> > >>> > My custom application name is "xyz". >>> > >>> > What is the base-permission value??? >>> > >>> > *ofbiz-component.xml * >>> > >>> > <webapp name="xyz" >>> > title="XYZ Management" >>> > server="default-server" >>> > location="webapp/xyz" >>> > base-permission="OFBTOOLS,XYZ" >>> > mount-point="/xyz" >>> > app-bar-display="true" >>> > /> >>> > or >>> > base-permission="XYZ" >>> > >>> > this is* not working*!!!! >>> > my application name not appear in application list(admin user login). >>> > >>> > if i change my >>> > *ofbiz-component.xml * >>> > >>> > <webapp name="xyz" >>> > title="XYZ Management" >>> > server="default-server" >>> > location="webapp/ayz" >>> > base-permission="OFBTOOLS,ORDERMGR" >>> > mount-point="/xyz" >>> > app-bar-display="true" >>> > /> >>> > >>> > Title "XYZ Management" appear in application list and ORDERMGR user can >>> > able >>> > access my module. >>> > >>> > *What is the base-permission value???* >>> > >>> > Thanks, >>> > Ravi >>> > >>> > On Wed, May 27, 2009 at 9:53 AM, Hans Bakker >>> > <[hidden email]>wrote: >>> > >>> > > A search in docs.ofbiz.org with the word 'security' would have given >>> the >>> > > following result in the first position: >>> > > http://docs.ofbiz.org/display/OFBTECH/OFBiz+security >>> > > >>> > > Regards, Hans >>> > > >>> > > On Wed, 2009-05-27 at 09:42 +0530, Ravi Kumar wrote: >>> > > > HI ALL, >>> > > > >>> > > > Any one can explain how to create new security group and map with >>> > custom >>> > > > module???? >>> > > > >>> > > > >>> > > > Bz i created one custom module and enable the login authentication, >>> but >>> > i >>> > > > cant map this module to new security group. >>> > > > >>> > > > If i specify my custom module name in base-permission in >>> > > ofbiz-component.xml >>> > > > then link is disabled in admin panel. >>> > > > If i specify base-permission="OFBTOOLS, ORDERMGR" then my >>> application >>> > > name >>> > > > is appear in Admin console(Application List). >>> > > > >>> > > > Thanks >>> > > > Ravi >>> > > -- >>> > > Antwebsystems.com: Quality OFBiz services for competitive rates >>> > > >>> > > >>> > >>> >> >> > |
In reply to this post by aswath narayana
Still my application is not displayed in application bar.
SecurityData.xml <entity-engine-xml> <!-- XYZ security --> <SecurityPermission description="View operations in the XYZ Management Screens." permissionId="XYZ_VIEW"/> <SecurityPermission description="Create operations in the XYZ Management Screens." permissionId="XYZ_CREATE"/> <SecurityPermission description="Update operations in the XYZ Management Screens." permissionId="XYZ_UPDATE"/> <SecurityPermission description="Delete operations in the XYZ Management Screens." permissionId="XYZ_DELETE"/> <SecurityPermission description="ALL operations in the XYZ Management Screens." permissionId="XYZ_ADMIN"/> <SecurityGroupPermission groupId="FULLADMIN" permissionId="XYZ_ADMIN"/> <SecurityGroupPermission groupId="FLEXADMIN" permissionId="XYZ_CREATE"/> <SecurityGroupPermission groupId="FLEXADMIN" permissionId="XYZ_DELETE"/> <SecurityGroupPermission groupId="FLEXADMIN" permissionId="XYZ_UPDATE"/> <SecurityGroupPermission groupId="FLEXADMIN" permissionId="XYZ_VIEW"/> <SecurityGroupPermission groupId="VIEWADMIN" permissionId="XYZ_VIEW"/> <SecurityGroupPermission groupId="XYZADMIN" permissionId="XYZ_ADMIN"/> </entity-engine-xml> On Wed, May 27, 2009 at 2:24 PM, aswath narayana <[hidden email] > wrote: > My examplesecuritydata.xml file looks like this. Where did you get the > 'access:xyz' colon sytax. Maybe you need to update your source to the > latest OFBiz. > > <entity-engine-xml> > <!-- Example security --> > <SecurityPermission description="View operations in the Example > Management Screens." permissionId="EXAMPLE_VIEW"/> > <SecurityPermission description="Create operations in the Example > Management Screens." permissionId="EXAMPLE_CREATE"/> > <SecurityPermission description="Update operations in the Example > Management Screens." permissionId="EXAMPLE_UPDATE"/> > <SecurityPermission description="Delete operations in the Example > Management Screens." permissionId="EXAMPLE_DELETE"/> > <SecurityPermission description="ALL operations in the Example > Management Screens." permissionId="EXAMPLE_ADMIN"/> > <SecurityGroupPermission groupId="FULLADMIN" > permissionId="EXAMPLE_ADMIN"/> > <SecurityGroupPermission groupId="FLEXADMIN" > permissionId="EXAMPLE_CREATE"/> > <SecurityGroupPermission groupId="FLEXADMIN" > permissionId="EXAMPLE_DELETE"/> > <SecurityGroupPermission groupId="FLEXADMIN" > permissionId="EXAMPLE_UPDATE"/> > <SecurityGroupPermission groupId="FLEXADMIN" > permissionId="EXAMPLE_VIEW"/> > <SecurityGroupPermission groupId="VIEWADMIN" > permissionId="EXAMPLE_VIEW"/> > <SecurityGroupPermission groupId="BIZADMIN" > permissionId="EXAMPLE_ADMIN"/> > </entity-engine-xml> > > > > > On Wed, May 27, 2009 at 2:15 PM, Ravi Kumar <[hidden email]> wrote: > >> Just copy that examplesecuritydata.xml file into my application data >> folder and replace all example text in xyz in examplesecuritydata.xml. >> >> file location xyz/data/ScurityData.xml >> >> >> >> On Wed, May 27, 2009 at 2:12 PM, aswath narayana < >> [hidden email]> wrote: >> >>> See inline. >>> >>> On Wed, May 27, 2009 at 1:55 PM, Ravi Kumar <[hidden email]> wrote: >>> >>>> Still i cant get the result :( >>>> >>>> This is SecurityGroupPermission decleration. >>>> <SecurityGroupPermission groupId="XYZ_ADMIN" permissionId="access:xyz"/> >>> >>> The syntax seems unfamiliar to me. Where did you see this. >>> Tell me where you created your securitydata.xml file? Can you follow the >>> examplesecuritydata.xml file. >>> >>>> >>>> >>>> But i couldn't get the XYZ_ADMIN in SecurityGroups List. :( >>> >>> You should see this. Otherwise you have not loaded the security data >>> properly >>> >>>> >>>> >>>> >>>> If base-permission="OFBTOOLS,XYZ" then doesn't show my application name >>>> in applications bar. >>>> If base-permission="OFBTOOLS,ORDERMGR" the xyz application name in >>>> applications bar. >>>> >>>> ofbiz-component.xml >>>> <?xml version="1.0" encoding="UTF-8"?> >>>> <ofbiz-component name="xyz" >>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >>>> xsi:noNamespaceSchemaLocation=" >>>> http://www.ofbiz.org/dtds/ofbiz-component.xsd"> >>>> <resource-loader name="main" type="component"/> >>>> >>>> <entity-resource type="model" reader-name="main" loader="main" >>>> location="entitydef/entitymodel.xml"/> >>>> <entity-resource type="model" reader-name="main" loader="main" >>>> location="entitydef/entitymodel_view.xml"/> >>>> <entity-resource type="group" reader-name="main" loader="main" >>>> location="entitydef/entitygroup.xml"/> >>>> <entity-resource type="data" reader-name="seed" loader="main" >>>> location="data/SecurityData.xml"/> >>>> >>>> >>>> <webapp name="xyz" >>>> title="xyz Order Management" >>>> server="default-server" >>>> location="webapp/xyz" >>>> base-permission="OFBTOOLS,XYZ" >>>> mount-point="/xyz" >>>> app-bar-display="true" >>>> /> >>>> </ofbiz-component> >>>> >>>> >>>> SecurityData.xml >>>> <?xml version="1.0" encoding="UTF-8"?> >>>> <entity-engine-xml> >>>> <!-- xyz security --> >>>> <SecurityPermission description="ACCESS the xyz Application" >>>> permissionId="access:xyz"/> >>>> <SecurityPermission description="CREATE operations in the xyz >>>> Application" permissionId="create:xyz" /> >>>> <SecurityPermission description="READ operations in the xyz >>>> Application" permissionId="read:xyz"/> >>>> <SecurityPermission description="UPDATE operations in the xyz >>>> Application" permissionId="update:xyz" /> >>>> <SecurityPermission description="DELETE operations in the xyz >>>> Application" permissionId="delete:xyz"/> >>>> >>>> <SecurityPermission description="CREATE STATUS operations in the xyz >>>> Application" permissionId="create:xyz:status"/> >>>> <SecurityPermission description="READ STATUS operations in the xyz >>>> Application" permissionId="read:xyz:status"/> >>>> <SecurityPermission description="UPDATE STATUS operations in the xyz >>>> Application" permissionId="update:xyz:status"/> >>>> <SecurityPermission description="DELETE STATUS operations in the xyz >>>> Application" permissionId="delete:xyz:status"/> >>>> >>>> <SecurityPermission description="CREATE ITEM operations in the xyz >>>> Application" permissionId="create:xyz:item"/> >>>> <SecurityPermission description="READ ITEM operations in the xyz >>>> Application" permissionId="read:xyz:item"/> >>>> <SecurityPermission description="UPDATE ITEM operations in the xyz >>>> Application" permissionId="update:xyz:item"/> >>>> <SecurityPermission description="DELETE ITEM operations in the xyz >>>> Application" permissionId="delete:xyz:item"/> >>>> >>>> <SecurityPermission description="CREATE FEATURE operations in the >>>> xyz Application" permissionId="create:xyz:feature"/> >>>> <SecurityPermission description="READ ITEM operations in the xyz >>>> Application" permissionId="read:xyz:feature"/> >>>> <SecurityPermission description="UPDATE ITEM operations in the xyz >>>> Application" permissionId="update:xyz:feature"/> >>>> <SecurityPermission description="DELETE ITEM operations in the xyz >>>> Application" permissionId="delete:xyz:feature"/> >>>> >>>> <SecurityGroupPermission groupId="XYZ_ADMIN" >>>> permissionId="access:xyz"/> >>>> <SecurityGroupPermission groupId="XYZ_ADMIN" >>>> permissionId="create:xyz"/> >>>> <SecurityGroupPermission groupId="XYZ_ADMIN" >>>> permissionId="read:xyz"/> >>>> <SecurityGroupPermission groupId="XYZ_ADMIN" >>>> permissionId="update:xyz"/> >>>> <SecurityGroupPermission groupId="XYZ_ADMIN" >>>> permissionId="delete:xyz"/> >>>> </entity-engine-xml> >>>> >>>> >>>> Please HELP me to FIX. >>>> >>>> :( >>>> >>>> >>>> >>>> On Wed, May 27, 2009 at 1:36 PM, aswath narayana < >>>> [hidden email]> wrote: >>>> >>>>> ExampleSecurityData.xml is the best xml file to take as an example. >>>>> I hope you have uploaded the security data. >>>>> >>>>> Following things you can do, so that it will be helpful for others in >>>>> the group also to chime in and help you. >>>>> >>>>> Login as admin >>>>> Click on the Party >>>>> Click on the Security sub-tab >>>>> Check whether your new SecurityPermissionGroup is listed or not. >>>>> >>>>> Login as admin >>>>> Do you see your XYZ component in the main application bar? >>>>> You should see XYZ, otherwise there is a basic issue in creating the >>>>> XYZ component. >>>>> >>>>> -Aswath >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> On Wed, May 27, 2009 at 1:12 PM, Ravi Kumar <[hidden email]>wrote: >>>>> >>>>>> HI >>>>>> >>>>>> I tried with ExampleSecurityData.xml, but i couldn't get my >>>>>> application name in application list. >>>>>> >>>>>> Can you provide some xml??? >>>>>> >>>>>> Thanks >>>>>> >>>>>> >>>>>> >>>>>> On Wed, May 27, 2009 at 11:13 AM, aswath narayana < >>>>>> [hidden email]> wrote: >>>>>> >>>>>>> Hello Ravi, >>>>>>> Here is what I understand about the permissions >>>>>>> >>>>>>> * Provide base-permission=OFBTOOLS, XYZ >>>>>>> >>>>>>> * Create SecurityPermissions. Follow the ExampleSecurityData.xml. >>>>>>> You >>>>>>> should create the datafile called xyzsecuritydata.xml and provide >>>>>>> permissions XYZ_CREATE, XYZ_DELETE >>>>>>> >>>>>>> * Create SecurityPermissionGroup like XYZ_ADMIN and give the >>>>>>> permissions. >>>>>>> >>>>>>> Load the above data using ant run-install or using webtools. >>>>>>> >>>>>>> Go to the PartyMgr and click on the desired party. >>>>>>> Create a userlogin for that party and assign the SecurityGroups to >>>>>>> that user >>>>>>> login. >>>>>>> >>>>>>> Now, the user will be able to just see XYZ component. >>>>>>> Hope this helps and I am correct. >>>>>>> >>>>>>> -Aswath >>>>>>> >>>>>>> On Wed, May 27, 2009 at 10:23 AM, Ravi Kumar <[hidden email]> >>>>>>> wrote: >>>>>>> >>>>>>> > OK. >>>>>>> > >>>>>>> > I have very simple question. >>>>>>> > >>>>>>> > My custom application name is "xyz". >>>>>>> > >>>>>>> > What is the base-permission value??? >>>>>>> > >>>>>>> > *ofbiz-component.xml * >>>>>>> > >>>>>>> > <webapp name="xyz" >>>>>>> > title="XYZ Management" >>>>>>> > server="default-server" >>>>>>> > location="webapp/xyz" >>>>>>> > base-permission="OFBTOOLS,XYZ" >>>>>>> > mount-point="/xyz" >>>>>>> > app-bar-display="true" >>>>>>> > /> >>>>>>> > or >>>>>>> > base-permission="XYZ" >>>>>>> > >>>>>>> > this is* not working*!!!! >>>>>>> > my application name not appear in application list(admin user >>>>>>> login). >>>>>>> > >>>>>>> > if i change my >>>>>>> > *ofbiz-component.xml * >>>>>>> > >>>>>>> > <webapp name="xyz" >>>>>>> > title="XYZ Management" >>>>>>> > server="default-server" >>>>>>> > location="webapp/ayz" >>>>>>> > base-permission="OFBTOOLS,ORDERMGR" >>>>>>> > mount-point="/xyz" >>>>>>> > app-bar-display="true" >>>>>>> > /> >>>>>>> > >>>>>>> > Title "XYZ Management" appear in application list and ORDERMGR user >>>>>>> can >>>>>>> > able >>>>>>> > access my module. >>>>>>> > >>>>>>> > *What is the base-permission value???* >>>>>>> > >>>>>>> > Thanks, >>>>>>> > Ravi >>>>>>> > >>>>>>> > On Wed, May 27, 2009 at 9:53 AM, Hans Bakker >>>>>>> > <[hidden email]>wrote: >>>>>>> > >>>>>>> > > A search in docs.ofbiz.org with the word 'security' would have >>>>>>> given the >>>>>>> > > following result in the first position: >>>>>>> > > http://docs.ofbiz.org/display/OFBTECH/OFBiz+security >>>>>>> > > >>>>>>> > > Regards, Hans >>>>>>> > > >>>>>>> > > On Wed, 2009-05-27 at 09:42 +0530, Ravi Kumar wrote: >>>>>>> > > > HI ALL, >>>>>>> > > > >>>>>>> > > > Any one can explain how to create new security group and map >>>>>>> with >>>>>>> > custom >>>>>>> > > > module???? >>>>>>> > > > >>>>>>> > > > >>>>>>> > > > Bz i created one custom module and enable the login >>>>>>> authentication, but >>>>>>> > i >>>>>>> > > > cant map this module to new security group. >>>>>>> > > > >>>>>>> > > > If i specify my custom module name in base-permission in >>>>>>> > > ofbiz-component.xml >>>>>>> > > > then link is disabled in admin panel. >>>>>>> > > > If i specify base-permission="OFBTOOLS, ORDERMGR" then my >>>>>>> application >>>>>>> > > name >>>>>>> > > > is appear in Admin console(Application List). >>>>>>> > > > >>>>>>> > > > Thanks >>>>>>> > > > Ravi >>>>>>> > > -- >>>>>>> > > Antwebsystems.com: Quality OFBiz services for competitive rates >>>>>>> > > >>>>>>> > > >>>>>>> > >>>>>>> >>>>>> >>>>>> >>>>> >>>> >>> >> > |
In reply to this post by aswath narayana
I'm using ofbiz-trunk-2009-05-01-v770590.zip
Still i'm getting same error :( On Wed, May 27, 2009 at 2:24 PM, aswath narayana <[hidden email] > wrote: > My examplesecuritydata.xml file looks like this. Where did you get the > 'access:xyz' colon sytax. Maybe you need to update your source to the > latest OFBiz. > > <entity-engine-xml> > <!-- Example security --> > <SecurityPermission description="View operations in the Example > Management Screens." permissionId="EXAMPLE_VIEW"/> > <SecurityPermission description="Create operations in the Example > Management Screens." permissionId="EXAMPLE_CREATE"/> > <SecurityPermission description="Update operations in the Example > Management Screens." permissionId="EXAMPLE_UPDATE"/> > <SecurityPermission description="Delete operations in the Example > Management Screens." permissionId="EXAMPLE_DELETE"/> > <SecurityPermission description="ALL operations in the Example > Management Screens." permissionId="EXAMPLE_ADMIN"/> > <SecurityGroupPermission groupId="FULLADMIN" > permissionId="EXAMPLE_ADMIN"/> > <SecurityGroupPermission groupId="FLEXADMIN" > permissionId="EXAMPLE_CREATE"/> > <SecurityGroupPermission groupId="FLEXADMIN" > permissionId="EXAMPLE_DELETE"/> > <SecurityGroupPermission groupId="FLEXADMIN" > permissionId="EXAMPLE_UPDATE"/> > <SecurityGroupPermission groupId="FLEXADMIN" > permissionId="EXAMPLE_VIEW"/> > <SecurityGroupPermission groupId="VIEWADMIN" > permissionId="EXAMPLE_VIEW"/> > <SecurityGroupPermission groupId="BIZADMIN" > permissionId="EXAMPLE_ADMIN"/> > </entity-engine-xml> > > > > > On Wed, May 27, 2009 at 2:15 PM, Ravi Kumar <[hidden email]> wrote: > >> Just copy that examplesecuritydata.xml file into my application data >> folder and replace all example text in xyz in examplesecuritydata.xml. >> >> file location xyz/data/ScurityData.xml >> >> >> >> On Wed, May 27, 2009 at 2:12 PM, aswath narayana < >> [hidden email]> wrote: >> >>> See inline. >>> >>> On Wed, May 27, 2009 at 1:55 PM, Ravi Kumar <[hidden email]> wrote: >>> >>>> Still i cant get the result :( >>>> >>>> This is SecurityGroupPermission decleration. >>>> <SecurityGroupPermission groupId="XYZ_ADMIN" permissionId="access:xyz"/> >>> >>> The syntax seems unfamiliar to me. Where did you see this. >>> Tell me where you created your securitydata.xml file? Can you follow the >>> examplesecuritydata.xml file. >>> >>>> >>>> >>>> But i couldn't get the XYZ_ADMIN in SecurityGroups List. :( >>> >>> You should see this. Otherwise you have not loaded the security data >>> properly >>> >>>> >>>> >>>> >>>> If base-permission="OFBTOOLS,XYZ" then doesn't show my application name >>>> in applications bar. >>>> If base-permission="OFBTOOLS,ORDERMGR" the xyz application name in >>>> applications bar. >>>> >>>> ofbiz-component.xml >>>> <?xml version="1.0" encoding="UTF-8"?> >>>> <ofbiz-component name="xyz" >>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >>>> xsi:noNamespaceSchemaLocation=" >>>> http://www.ofbiz.org/dtds/ofbiz-component.xsd"> >>>> <resource-loader name="main" type="component"/> >>>> >>>> <entity-resource type="model" reader-name="main" loader="main" >>>> location="entitydef/entitymodel.xml"/> >>>> <entity-resource type="model" reader-name="main" loader="main" >>>> location="entitydef/entitymodel_view.xml"/> >>>> <entity-resource type="group" reader-name="main" loader="main" >>>> location="entitydef/entitygroup.xml"/> >>>> <entity-resource type="data" reader-name="seed" loader="main" >>>> location="data/SecurityData.xml"/> >>>> >>>> >>>> <webapp name="xyz" >>>> title="xyz Order Management" >>>> server="default-server" >>>> location="webapp/xyz" >>>> base-permission="OFBTOOLS,XYZ" >>>> mount-point="/xyz" >>>> app-bar-display="true" >>>> /> >>>> </ofbiz-component> >>>> >>>> >>>> SecurityData.xml >>>> <?xml version="1.0" encoding="UTF-8"?> >>>> <entity-engine-xml> >>>> <!-- xyz security --> >>>> <SecurityPermission description="ACCESS the xyz Application" >>>> permissionId="access:xyz"/> >>>> <SecurityPermission description="CREATE operations in the xyz >>>> Application" permissionId="create:xyz" /> >>>> <SecurityPermission description="READ operations in the xyz >>>> Application" permissionId="read:xyz"/> >>>> <SecurityPermission description="UPDATE operations in the xyz >>>> Application" permissionId="update:xyz" /> >>>> <SecurityPermission description="DELETE operations in the xyz >>>> Application" permissionId="delete:xyz"/> >>>> >>>> <SecurityPermission description="CREATE STATUS operations in the xyz >>>> Application" permissionId="create:xyz:status"/> >>>> <SecurityPermission description="READ STATUS operations in the xyz >>>> Application" permissionId="read:xyz:status"/> >>>> <SecurityPermission description="UPDATE STATUS operations in the xyz >>>> Application" permissionId="update:xyz:status"/> >>>> <SecurityPermission description="DELETE STATUS operations in the xyz >>>> Application" permissionId="delete:xyz:status"/> >>>> >>>> <SecurityPermission description="CREATE ITEM operations in the xyz >>>> Application" permissionId="create:xyz:item"/> >>>> <SecurityPermission description="READ ITEM operations in the xyz >>>> Application" permissionId="read:xyz:item"/> >>>> <SecurityPermission description="UPDATE ITEM operations in the xyz >>>> Application" permissionId="update:xyz:item"/> >>>> <SecurityPermission description="DELETE ITEM operations in the xyz >>>> Application" permissionId="delete:xyz:item"/> >>>> >>>> <SecurityPermission description="CREATE FEATURE operations in the >>>> xyz Application" permissionId="create:xyz:feature"/> >>>> <SecurityPermission description="READ ITEM operations in the xyz >>>> Application" permissionId="read:xyz:feature"/> >>>> <SecurityPermission description="UPDATE ITEM operations in the xyz >>>> Application" permissionId="update:xyz:feature"/> >>>> <SecurityPermission description="DELETE ITEM operations in the xyz >>>> Application" permissionId="delete:xyz:feature"/> >>>> >>>> <SecurityGroupPermission groupId="XYZ_ADMIN" >>>> permissionId="access:xyz"/> >>>> <SecurityGroupPermission groupId="XYZ_ADMIN" >>>> permissionId="create:xyz"/> >>>> <SecurityGroupPermission groupId="XYZ_ADMIN" >>>> permissionId="read:xyz"/> >>>> <SecurityGroupPermission groupId="XYZ_ADMIN" >>>> permissionId="update:xyz"/> >>>> <SecurityGroupPermission groupId="XYZ_ADMIN" >>>> permissionId="delete:xyz"/> >>>> </entity-engine-xml> >>>> >>>> >>>> Please HELP me to FIX. >>>> >>>> :( >>>> >>>> >>>> >>>> On Wed, May 27, 2009 at 1:36 PM, aswath narayana < >>>> [hidden email]> wrote: >>>> >>>>> ExampleSecurityData.xml is the best xml file to take as an example. >>>>> I hope you have uploaded the security data. >>>>> >>>>> Following things you can do, so that it will be helpful for others in >>>>> the group also to chime in and help you. >>>>> >>>>> Login as admin >>>>> Click on the Party >>>>> Click on the Security sub-tab >>>>> Check whether your new SecurityPermissionGroup is listed or not. >>>>> >>>>> Login as admin >>>>> Do you see your XYZ component in the main application bar? >>>>> You should see XYZ, otherwise there is a basic issue in creating the >>>>> XYZ component. >>>>> >>>>> -Aswath >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> On Wed, May 27, 2009 at 1:12 PM, Ravi Kumar <[hidden email]>wrote: >>>>> >>>>>> HI >>>>>> >>>>>> I tried with ExampleSecurityData.xml, but i couldn't get my >>>>>> application name in application list. >>>>>> >>>>>> Can you provide some xml??? >>>>>> >>>>>> Thanks >>>>>> >>>>>> >>>>>> >>>>>> On Wed, May 27, 2009 at 11:13 AM, aswath narayana < >>>>>> [hidden email]> wrote: >>>>>> >>>>>>> Hello Ravi, >>>>>>> Here is what I understand about the permissions >>>>>>> >>>>>>> * Provide base-permission=OFBTOOLS, XYZ >>>>>>> >>>>>>> * Create SecurityPermissions. Follow the ExampleSecurityData.xml. >>>>>>> You >>>>>>> should create the datafile called xyzsecuritydata.xml and provide >>>>>>> permissions XYZ_CREATE, XYZ_DELETE >>>>>>> >>>>>>> * Create SecurityPermissionGroup like XYZ_ADMIN and give the >>>>>>> permissions. >>>>>>> >>>>>>> Load the above data using ant run-install or using webtools. >>>>>>> >>>>>>> Go to the PartyMgr and click on the desired party. >>>>>>> Create a userlogin for that party and assign the SecurityGroups to >>>>>>> that user >>>>>>> login. >>>>>>> >>>>>>> Now, the user will be able to just see XYZ component. >>>>>>> Hope this helps and I am correct. >>>>>>> >>>>>>> -Aswath >>>>>>> >>>>>>> On Wed, May 27, 2009 at 10:23 AM, Ravi Kumar <[hidden email]> >>>>>>> wrote: >>>>>>> >>>>>>> > OK. >>>>>>> > >>>>>>> > I have very simple question. >>>>>>> > >>>>>>> > My custom application name is "xyz". >>>>>>> > >>>>>>> > What is the base-permission value??? >>>>>>> > >>>>>>> > *ofbiz-component.xml * >>>>>>> > >>>>>>> > <webapp name="xyz" >>>>>>> > title="XYZ Management" >>>>>>> > server="default-server" >>>>>>> > location="webapp/xyz" >>>>>>> > base-permission="OFBTOOLS,XYZ" >>>>>>> > mount-point="/xyz" >>>>>>> > app-bar-display="true" >>>>>>> > /> >>>>>>> > or >>>>>>> > base-permission="XYZ" >>>>>>> > >>>>>>> > this is* not working*!!!! >>>>>>> > my application name not appear in application list(admin user >>>>>>> login). >>>>>>> > >>>>>>> > if i change my >>>>>>> > *ofbiz-component.xml * >>>>>>> > >>>>>>> > <webapp name="xyz" >>>>>>> > title="XYZ Management" >>>>>>> > server="default-server" >>>>>>> > location="webapp/ayz" >>>>>>> > base-permission="OFBTOOLS,ORDERMGR" >>>>>>> > mount-point="/xyz" >>>>>>> > app-bar-display="true" >>>>>>> > /> >>>>>>> > >>>>>>> > Title "XYZ Management" appear in application list and ORDERMGR user >>>>>>> can >>>>>>> > able >>>>>>> > access my module. >>>>>>> > >>>>>>> > *What is the base-permission value???* >>>>>>> > >>>>>>> > Thanks, >>>>>>> > Ravi >>>>>>> > >>>>>>> > On Wed, May 27, 2009 at 9:53 AM, Hans Bakker >>>>>>> > <[hidden email]>wrote: >>>>>>> > >>>>>>> > > A search in docs.ofbiz.org with the word 'security' would have >>>>>>> given the >>>>>>> > > following result in the first position: >>>>>>> > > http://docs.ofbiz.org/display/OFBTECH/OFBiz+security >>>>>>> > > >>>>>>> > > Regards, Hans >>>>>>> > > >>>>>>> > > On Wed, 2009-05-27 at 09:42 +0530, Ravi Kumar wrote: >>>>>>> > > > HI ALL, >>>>>>> > > > >>>>>>> > > > Any one can explain how to create new security group and map >>>>>>> with >>>>>>> > custom >>>>>>> > > > module???? >>>>>>> > > > >>>>>>> > > > >>>>>>> > > > Bz i created one custom module and enable the login >>>>>>> authentication, but >>>>>>> > i >>>>>>> > > > cant map this module to new security group. >>>>>>> > > > >>>>>>> > > > If i specify my custom module name in base-permission in >>>>>>> > > ofbiz-component.xml >>>>>>> > > > then link is disabled in admin panel. >>>>>>> > > > If i specify base-permission="OFBTOOLS, ORDERMGR" then my >>>>>>> application >>>>>>> > > name >>>>>>> > > > is appear in Admin console(Application List). >>>>>>> > > > >>>>>>> > > > Thanks >>>>>>> > > > Ravi >>>>>>> > > -- >>>>>>> > > Antwebsystems.com: Quality OFBiz services for competitive rates >>>>>>> > > >>>>>>> > > >>>>>>> > >>>>>>> >>>>>> >>>>>> >>>>> >>>> >>> >> > |
Hello Ravi,
Attach your changes as a patch, if it is small. Hopefully this is allowed in the group. Or, paste the contents of each file at the end of the email, so that other will have a chance to review and find out easily. Or start from scratch using Practice application as the base. http://docs.ofbiz.org/pages/viewpageattachments.action?pageId=4432 Make sure you still have the following contents in the webapp element of the ofbiz-component.xml file app-bar-display="true" -Aswath On Fri, May 29, 2009 at 10:31 AM, Ravi Kumar <[hidden email]> wrote: > I'm using ofbiz-trunk-2009-05-01-v770590.zip > > Still i'm getting same error > > :( > > > > On Wed, May 27, 2009 at 2:24 PM, aswath narayana < > [hidden email]> wrote: > >> My examplesecuritydata.xml file looks like this. Where did you get the >> 'access:xyz' colon sytax. Maybe you need to update your source to the >> latest OFBiz. >> >> <entity-engine-xml> >> <!-- Example security --> >> <SecurityPermission description="View operations in the Example >> Management Screens." permissionId="EXAMPLE_VIEW"/> >> <SecurityPermission description="Create operations in the Example >> Management Screens." permissionId="EXAMPLE_CREATE"/> >> <SecurityPermission description="Update operations in the Example >> Management Screens." permissionId="EXAMPLE_UPDATE"/> >> <SecurityPermission description="Delete operations in the Example >> Management Screens." permissionId="EXAMPLE_DELETE"/> >> <SecurityPermission description="ALL operations in the Example >> Management Screens." permissionId="EXAMPLE_ADMIN"/> >> <SecurityGroupPermission groupId="FULLADMIN" >> permissionId="EXAMPLE_ADMIN"/> >> <SecurityGroupPermission groupId="FLEXADMIN" >> permissionId="EXAMPLE_CREATE"/> >> <SecurityGroupPermission groupId="FLEXADMIN" >> permissionId="EXAMPLE_DELETE"/> >> <SecurityGroupPermission groupId="FLEXADMIN" >> permissionId="EXAMPLE_UPDATE"/> >> <SecurityGroupPermission groupId="FLEXADMIN" >> permissionId="EXAMPLE_VIEW"/> >> <SecurityGroupPermission groupId="VIEWADMIN" >> permissionId="EXAMPLE_VIEW"/> >> <SecurityGroupPermission groupId="BIZADMIN" >> permissionId="EXAMPLE_ADMIN"/> >> </entity-engine-xml> >> >> >> >> >> On Wed, May 27, 2009 at 2:15 PM, Ravi Kumar <[hidden email]> wrote: >> >>> Just copy that examplesecuritydata.xml file into my application data >>> folder and replace all example text in xyz in examplesecuritydata.xml. >>> >>> file location xyz/data/ScurityData.xml >>> >>> >>> >>> On Wed, May 27, 2009 at 2:12 PM, aswath narayana < >>> [hidden email]> wrote: >>> >>>> See inline. >>>> >>>> On Wed, May 27, 2009 at 1:55 PM, Ravi Kumar <[hidden email]>wrote: >>>> >>>>> Still i cant get the result :( >>>>> >>>>> This is SecurityGroupPermission decleration. >>>>> <SecurityGroupPermission groupId="XYZ_ADMIN" >>>>> permissionId="access:xyz"/> >>>> >>>> The syntax seems unfamiliar to me. Where did you see this. >>>> Tell me where you created your securitydata.xml file? Can you follow >>>> the examplesecuritydata.xml file. >>>> >>>>> >>>>> >>>>> But i couldn't get the XYZ_ADMIN in SecurityGroups List. :( >>>> >>>> You should see this. Otherwise you have not loaded the security data >>>> properly >>>> >>>>> >>>>> >>>>> >>>>> If base-permission="OFBTOOLS,XYZ" then doesn't show my application name >>>>> in applications bar. >>>>> If base-permission="OFBTOOLS,ORDERMGR" the xyz application name in >>>>> applications bar. >>>>> >>>>> ofbiz-component.xml >>>>> <?xml version="1.0" encoding="UTF-8"?> >>>>> <ofbiz-component name="xyz" >>>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >>>>> xsi:noNamespaceSchemaLocation=" >>>>> http://www.ofbiz.org/dtds/ofbiz-component.xsd"> >>>>> <resource-loader name="main" type="component"/> >>>>> >>>>> <entity-resource type="model" reader-name="main" loader="main" >>>>> location="entitydef/entitymodel.xml"/> >>>>> <entity-resource type="model" reader-name="main" loader="main" >>>>> location="entitydef/entitymodel_view.xml"/> >>>>> <entity-resource type="group" reader-name="main" loader="main" >>>>> location="entitydef/entitygroup.xml"/> >>>>> <entity-resource type="data" reader-name="seed" loader="main" >>>>> location="data/SecurityData.xml"/> >>>>> >>>>> >>>>> <webapp name="xyz" >>>>> title="xyz Order Management" >>>>> server="default-server" >>>>> location="webapp/xyz" >>>>> base-permission="OFBTOOLS,XYZ" >>>>> mount-point="/xyz" >>>>> app-bar-display="true" >>>>> /> >>>>> </ofbiz-component> >>>>> >>>>> >>>>> SecurityData.xml >>>>> <?xml version="1.0" encoding="UTF-8"?> >>>>> <entity-engine-xml> >>>>> <!-- xyz security --> >>>>> <SecurityPermission description="ACCESS the xyz Application" >>>>> permissionId="access:xyz"/> >>>>> <SecurityPermission description="CREATE operations in the xyz >>>>> Application" permissionId="create:xyz" /> >>>>> <SecurityPermission description="READ operations in the xyz >>>>> Application" permissionId="read:xyz"/> >>>>> <SecurityPermission description="UPDATE operations in the xyz >>>>> Application" permissionId="update:xyz" /> >>>>> <SecurityPermission description="DELETE operations in the xyz >>>>> Application" permissionId="delete:xyz"/> >>>>> >>>>> <SecurityPermission description="CREATE STATUS operations in the >>>>> xyz Application" permissionId="create:xyz:status"/> >>>>> <SecurityPermission description="READ STATUS operations in the xyz >>>>> Application" permissionId="read:xyz:status"/> >>>>> <SecurityPermission description="UPDATE STATUS operations in the >>>>> xyz Application" permissionId="update:xyz:status"/> >>>>> <SecurityPermission description="DELETE STATUS operations in the >>>>> xyz Application" permissionId="delete:xyz:status"/> >>>>> >>>>> <SecurityPermission description="CREATE ITEM operations in the xyz >>>>> Application" permissionId="create:xyz:item"/> >>>>> <SecurityPermission description="READ ITEM operations in the xyz >>>>> Application" permissionId="read:xyz:item"/> >>>>> <SecurityPermission description="UPDATE ITEM operations in the xyz >>>>> Application" permissionId="update:xyz:item"/> >>>>> <SecurityPermission description="DELETE ITEM operations in the xyz >>>>> Application" permissionId="delete:xyz:item"/> >>>>> >>>>> <SecurityPermission description="CREATE FEATURE operations in the >>>>> xyz Application" permissionId="create:xyz:feature"/> >>>>> <SecurityPermission description="READ ITEM operations in the xyz >>>>> Application" permissionId="read:xyz:feature"/> >>>>> <SecurityPermission description="UPDATE ITEM operations in the xyz >>>>> Application" permissionId="update:xyz:feature"/> >>>>> <SecurityPermission description="DELETE ITEM operations in the xyz >>>>> Application" permissionId="delete:xyz:feature"/> >>>>> >>>>> <SecurityGroupPermission groupId="XYZ_ADMIN" >>>>> permissionId="access:xyz"/> >>>>> <SecurityGroupPermission groupId="XYZ_ADMIN" >>>>> permissionId="create:xyz"/> >>>>> <SecurityGroupPermission groupId="XYZ_ADMIN" >>>>> permissionId="read:xyz"/> >>>>> <SecurityGroupPermission groupId="XYZ_ADMIN" >>>>> permissionId="update:xyz"/> >>>>> <SecurityGroupPermission groupId="XYZ_ADMIN" >>>>> permissionId="delete:xyz"/> >>>>> </entity-engine-xml> >>>>> >>>>> >>>>> Please HELP me to FIX. >>>>> >>>>> :( >>>>> >>>>> >>>>> >>>>> On Wed, May 27, 2009 at 1:36 PM, aswath narayana < >>>>> [hidden email]> wrote: >>>>> >>>>>> ExampleSecurityData.xml is the best xml file to take as an example. >>>>>> I hope you have uploaded the security data. >>>>>> >>>>>> Following things you can do, so that it will be helpful for others in >>>>>> the group also to chime in and help you. >>>>>> >>>>>> Login as admin >>>>>> Click on the Party >>>>>> Click on the Security sub-tab >>>>>> Check whether your new SecurityPermissionGroup is listed or not. >>>>>> >>>>>> Login as admin >>>>>> Do you see your XYZ component in the main application bar? >>>>>> You should see XYZ, otherwise there is a basic issue in creating the >>>>>> XYZ component. >>>>>> >>>>>> -Aswath >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> On Wed, May 27, 2009 at 1:12 PM, Ravi Kumar <[hidden email]>wrote: >>>>>> >>>>>>> HI >>>>>>> >>>>>>> I tried with ExampleSecurityData.xml, but i couldn't get my >>>>>>> application name in application list. >>>>>>> >>>>>>> Can you provide some xml??? >>>>>>> >>>>>>> Thanks >>>>>>> >>>>>>> >>>>>>> >>>>>>> On Wed, May 27, 2009 at 11:13 AM, aswath narayana < >>>>>>> [hidden email]> wrote: >>>>>>> >>>>>>>> Hello Ravi, >>>>>>>> Here is what I understand about the permissions >>>>>>>> >>>>>>>> * Provide base-permission=OFBTOOLS, XYZ >>>>>>>> >>>>>>>> * Create SecurityPermissions. Follow the ExampleSecurityData.xml. >>>>>>>> You >>>>>>>> should create the datafile called xyzsecuritydata.xml and provide >>>>>>>> permissions XYZ_CREATE, XYZ_DELETE >>>>>>>> >>>>>>>> * Create SecurityPermissionGroup like XYZ_ADMIN and give the >>>>>>>> permissions. >>>>>>>> >>>>>>>> Load the above data using ant run-install or using webtools. >>>>>>>> >>>>>>>> Go to the PartyMgr and click on the desired party. >>>>>>>> Create a userlogin for that party and assign the SecurityGroups to >>>>>>>> that user >>>>>>>> login. >>>>>>>> >>>>>>>> Now, the user will be able to just see XYZ component. >>>>>>>> Hope this helps and I am correct. >>>>>>>> >>>>>>>> -Aswath >>>>>>>> >>>>>>>> On Wed, May 27, 2009 at 10:23 AM, Ravi Kumar <[hidden email]> >>>>>>>> wrote: >>>>>>>> >>>>>>>> > OK. >>>>>>>> > >>>>>>>> > I have very simple question. >>>>>>>> > >>>>>>>> > My custom application name is "xyz". >>>>>>>> > >>>>>>>> > What is the base-permission value??? >>>>>>>> > >>>>>>>> > *ofbiz-component.xml * >>>>>>>> > >>>>>>>> > <webapp name="xyz" >>>>>>>> > title="XYZ Management" >>>>>>>> > server="default-server" >>>>>>>> > location="webapp/xyz" >>>>>>>> > base-permission="OFBTOOLS,XYZ" >>>>>>>> > mount-point="/xyz" >>>>>>>> > app-bar-display="true" >>>>>>>> > /> >>>>>>>> > or >>>>>>>> > base-permission="XYZ" >>>>>>>> > >>>>>>>> > this is* not working*!!!! >>>>>>>> > my application name not appear in application list(admin user >>>>>>>> login). >>>>>>>> > >>>>>>>> > if i change my >>>>>>>> > *ofbiz-component.xml * >>>>>>>> > >>>>>>>> > <webapp name="xyz" >>>>>>>> > title="XYZ Management" >>>>>>>> > server="default-server" >>>>>>>> > location="webapp/ayz" >>>>>>>> > base-permission="OFBTOOLS,ORDERMGR" >>>>>>>> > mount-point="/xyz" >>>>>>>> > app-bar-display="true" >>>>>>>> > /> >>>>>>>> > >>>>>>>> > Title "XYZ Management" appear in application list and ORDERMGR >>>>>>>> user can >>>>>>>> > able >>>>>>>> > access my module. >>>>>>>> > >>>>>>>> > *What is the base-permission value???* >>>>>>>> > >>>>>>>> > Thanks, >>>>>>>> > Ravi >>>>>>>> > >>>>>>>> > On Wed, May 27, 2009 at 9:53 AM, Hans Bakker >>>>>>>> > <[hidden email]>wrote: >>>>>>>> > >>>>>>>> > > A search in docs.ofbiz.org with the word 'security' would have >>>>>>>> given the >>>>>>>> > > following result in the first position: >>>>>>>> > > http://docs.ofbiz.org/display/OFBTECH/OFBiz+security >>>>>>>> > > >>>>>>>> > > Regards, Hans >>>>>>>> > > >>>>>>>> > > On Wed, 2009-05-27 at 09:42 +0530, Ravi Kumar wrote: >>>>>>>> > > > HI ALL, >>>>>>>> > > > >>>>>>>> > > > Any one can explain how to create new security group and map >>>>>>>> with >>>>>>>> > custom >>>>>>>> > > > module???? >>>>>>>> > > > >>>>>>>> > > > >>>>>>>> > > > Bz i created one custom module and enable the login >>>>>>>> authentication, but >>>>>>>> > i >>>>>>>> > > > cant map this module to new security group. >>>>>>>> > > > >>>>>>>> > > > If i specify my custom module name in base-permission in >>>>>>>> > > ofbiz-component.xml >>>>>>>> > > > then link is disabled in admin panel. >>>>>>>> > > > If i specify base-permission="OFBTOOLS, ORDERMGR" then my >>>>>>>> application >>>>>>>> > > name >>>>>>>> > > > is appear in Admin console(Application List). >>>>>>>> > > > >>>>>>>> > > > Thanks >>>>>>>> > > > Ravi >>>>>>>> > > -- >>>>>>>> > > Antwebsystems.com: Quality OFBiz services for competitive rates >>>>>>>> > > >>>>>>>> > > >>>>>>>> > >>>>>>>> >>>>>>> >>>>>>> >>>>>> >>>>> >>>> >>> >> > |
This post was updated on .
In reply to this post by aswath narayana
Hi all, If i use two_permissions if i provide like this <check-permission permission="LEARN" action="VIEW">, Here permission is LEARN and what is the use of action attribute and if i provide value like CREATE OR DELETE values. How this action will do further. |
As the name suggests, action attribute controls what action is allowed
including create, view or delete; the code collectively uses permission and action attributes to decide the allowed access. - Sakthi On 11/26/11, Rasool <[hidden email]> wrote: > > Hi all, > > > If i use two_permissions if i provide like this <check-permission > permission="LEARN" action="VIEW">, > > what is the use of action attribute and if i provide value like CREATE OR > DELETE values. > > > > -- > View this message in context: > http://ofbiz.135035.n4.nabble.com/Security-Role-creation-tp161115p4110399.html > Sent from the OFBiz - User mailing list archive at Nabble.com. > -- Sent from my mobile device |
Free forum by Nabble | Edit this page |