Dear Gurus, dear Rishi, dear Jacques,
I’ve got a quick and easy question for you guys. How can I create Plugin (as shown in step 1 below) but without running step 2 below in order to show the newly created plugin in our production environment? Step 1: gradlew createPlugin -PpluginId=quality Step 2: gradlew loadDefault As I follow the tutorial written by Jacques, it seems it’s a MUST to run step 2 but I don’t want to mess up what I have done so far. Any hint? Many thanks and have a nice day! Schumann +86-18001501800 |
Administrator
|
Hi Schumann,
Sorry I don't remember having wrote a such tutorial (maybe I updated it). Have you an URL? Jacques Le 27/11/2018 à 13:09, Schumann Ye a écrit : > Dear Gurus, dear Rishi, dear Jacques, > > I’ve got a quick and easy question for you guys. > How can I create Plugin (as shown in step 1 below) but without running step 2 below in order to show the newly created plugin in our production environment? > Step 1: gradlew createPlugin -PpluginId=quality > Step 2: gradlew loadDefault > > As I follow the tutorial written by Jacques, it seems it’s a MUST to run step 2 but I don’t want to mess up what I have done so far. > Any hint? > > Many thanks and have a nice day! > Schumann > +86-18001501800 > > |
In reply to this post by Schumann
Hello Schumann,
I believe what you are looking for is to load specific readers, to avoid loading demo data. ./gradlew "ofbiz --load-data readers=seed" This command will load all seed data, and thus security data of your newly created plugin. You could also use webtools webapp to load reader (https://demo-stable.ofbiz.apache.org/webtools/control/EntityImportReaders) Or directly the data files you want (https://demo-stable.ofbiz.apache.org/webtools/control/EntityImport) Enjoy ! Gil Le mardi 27 nov. 2018 à 12:09:57 (+0000), Schumann Ye a écrit : > Dear Gurus, dear Rishi, dear Jacques, > > I’ve got a quick and easy question for you guys. > How can I create Plugin (as shown in step 1 below) but without running step 2 below in order to show the newly created plugin in our production environment? > Step 1: gradlew createPlugin -PpluginId=quality > Step 2: gradlew loadDefault > > As I follow the tutorial written by Jacques, it seems it’s a MUST to run step 2 but I don’t want to mess up what I have done so far. > Any hint? > > Many thanks and have a nice day! > Schumann > +86-18001501800 > |
In reply to this post by Schumann
Hi,
After you have (re)build and started your OFBiz implementation you don't need to (re)build and start it again loading all data (with ./gradlew loadDefault) unit you make changes to your java code or service definitions. You can make changes to your screens, forms, FTL and Groovy scripts without any rebuild and restart. You can then load (import) your data through functionalities in the Webtools component. Best regards, Pierre Smits *Apache Trafodion <https://trafodion.apache.org>, Vice President* *Apache Directory <https://directory.apache.org>, PMC Member* Apache Incubator <https://incubator.apache.org>, committer *Apache OFBiz <https://ofbiz.apache.org>, contributor (without privileges) since 2008* Apache Steve <https://steve.apache.org>, committer On Tue, Nov 27, 2018 at 1:10 PM Schumann Ye <[hidden email]> wrote: > Dear Gurus, dear Rishi, dear Jacques, > > I’ve got a quick and easy question for you guys. > How can I create Plugin (as shown in step 1 below) but without running > step 2 below in order to show the newly created plugin in our production > environment? > Step 1: gradlew createPlugin -PpluginId=quality > Step 2: gradlew loadDefault > > As I follow the tutorial written by Jacques, it seems it’s a MUST to run > step 2 but I don’t want to mess up what I have done so far. > Any hint? > > Many thanks and have a nice day! > Schumann > +86-18001501800 > > |
In reply to this post by Jacques Le Roux
Dear Jacques,
My bad memory! I double check it and it was written by Jacopo from Hotwax. Thanks Schumann ________________________________ 发件人: Jacques Le Roux <[hidden email]> 发送时间: Wednesday, November 28, 2018 3:47:32 AM 收件人: [hidden email] 主题: Re: How to Create Plugin without loadDefault Hi Schumann, Sorry I don't remember having wrote a such tutorial (maybe I updated it). Have you an URL? Jacques Le 27/11/2018 à 13:09, Schumann Ye a écrit : > Dear Gurus, dear Rishi, dear Jacques, > > I’ve got a quick and easy question for you guys. > How can I create Plugin (as shown in step 1 below) but without running step 2 below in order to show the newly created plugin in our production environment? > Step 1: gradlew createPlugin -PpluginId=quality > Step 2: gradlew loadDefault > > As I follow the tutorial written by Jacques, it seems it’s a MUST to run step 2 but I don’t want to mess up what I have done so far. > Any hint? > > Many thanks and have a nice day! > Schumann > +86-18001501800 > > |
In reply to this post by Gil Portenseigne
Dear Gil,
Many thanks for your feedback. However, I did try Gradlew “ofbiz �Cload-data readers=seed” and the newly created plugin didn’t show up. And I check the files and find the newly created plugin files has been created. IT JUST DOESN’T SHOW UP! I know if I use Gradlew loadDefault and then it will show up but I just don’t want to mess up what I have done. Any further hint? Thanks Schumann 发件人: Gil Portenseigne<mailto:[hidden email]> 发送时间: 2018年11月28日 4:37 收件人: [hidden email]<mailto:[hidden email]> 主题: Re: How to Create Plugin without loadDefault Hello Schumann, I believe what you are looking for is to load specific readers, to avoid loading demo data. ./gradlew "ofbiz --load-data readers=seed" This command will load all seed data, and thus security data of your newly created plugin. You could also use webtools webapp to load reader (https://demo-stable.ofbiz.apache.org/webtools/control/EntityImportReaders) Or directly the data files you want (https://demo-stable.ofbiz.apache.org/webtools/control/EntityImport) Enjoy ! Gil Le mardi 27 nov. 2018 à 12:09:57 (+0000), Schumann Ye a écrit : > Dear Gurus, dear Rishi, dear Jacques, > > I’ve got a quick and easy question for you guys. > How can I create Plugin (as shown in step 1 below) but without running step 2 below in order to show the newly created plugin in our production environment? > Step 1: gradlew createPlugin -PpluginId=quality > Step 2: gradlew loadDefault > > As I follow the tutorial written by Jacques, it seems it’s a MUST to run step 2 but I don’t want to mess up what I have done so far. > Any hint? > > Many thanks and have a nice day! > Schumann > +86-18001501800 > |
In reply to this post by Pierre Smits-3
Dear Pierre,
Could you be more specific how to load the data of the newly created Plugin through functionalities in the Webtools components? Many thanks Schumann 发件人: Pierre Smits<mailto:[hidden email]> 发送时间: 2018年11月28日 15:56 收件人: [hidden email]<mailto:[hidden email]> 主题: Re: How to Create Plugin without loadDefault Hi, After you have (re)build and started your OFBiz implementation you don't need to (re)build and start it again loading all data (with ./gradlew loadDefault) unit you make changes to your java code or service definitions. You can make changes to your screens, forms, FTL and Groovy scripts without any rebuild and restart. You can then load (import) your data through functionalities in the Webtools component. Best regards, Pierre Smits *Apache Trafodion <https://trafodion.apache.org>, Vice President* *Apache Directory <https://directory.apache.org>, PMC Member* Apache Incubator <https://incubator.apache.org>, committer *Apache OFBiz <https://ofbiz.apache.org>, contributor (without privileges) since 2008* Apache Steve <https://steve.apache.org>, committer On Tue, Nov 27, 2018 at 1:10 PM Schumann Ye <[hidden email]> wrote: > Dear Gurus, dear Rishi, dear Jacques, > > I’ve got a quick and easy question for you guys. > How can I create Plugin (as shown in step 1 below) but without running > step 2 below in order to show the newly created plugin in our production > environment? > Step 1: gradlew createPlugin -PpluginId=quality > Step 2: gradlew loadDefault > > As I follow the tutorial written by Jacques, it seems it’s a MUST to run > step 2 but I don’t want to mess up what I have done so far. > Any hint? > > Many thanks and have a nice day! > Schumann > +86-18001501800 > > |
In reply to this post by Schumann
Hello,
To make it show up the user you are using must have the base permission of your plugin ("QUALITY" for your example) associated to its securityGroup You can find the permission here : ❯ grep "base-permission" plugins/quality/ofbiz-component.xml base-permission="OFBTOOLS,QUALITY" Loading the seed make your plugin base permission load into db, you just need to add it to the security group of your user using partymgr webapp or loading files from your plugin : ❯ grep -R "QUALITY" plugins/quality/data plugins/quality/data/QualitySecurityPermissionSeedData.xml: <SecurityPermission description="View operations in the Quality Component." permissionId="QUALITY_VIEW"/> plugins/quality/data/QualitySecurityPermissionSeedData.xml: <SecurityPermission description="Create operations in the Quality Component." permissionId="QUALITY_CREATE"/> plugins/quality/data/QualitySecurityPermissionSeedData.xml: <SecurityPermission description="Update operations in the Quality Component." permissionId="QUALITY_UPDATE"/> plugins/quality/data/QualitySecurityPermissionSeedData.xml: <SecurityPermission description="Delete operations in the Quality Component." permissionId="QUALITY_DELETE"/> plugins/quality/data/QualitySecurityPermissionSeedData.xml: <SecurityPermission description="ALL operations in the Quality Component." permissionId="QUALITY_ADMIN"/> plugins/quality/data/QualitySecurityPermissionSeedData.xml: <SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" groupId="SUPER" permissionId="QUALITY_ADMIN"/> plugins/quality/data/QualitySecurityGroupDemoData.xml: <SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" groupId="FULLADMIN" permissionId="QUALITY_ADMIN"/> plugins/quality/data/QualitySecurityGroupDemoData.xml: <SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" groupId="FLEXADMIN" permissionId="QUALITY_CREATE"/> plugins/quality/data/QualitySecurityGroupDemoData.xml: <SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" groupId="FLEXADMIN" permissionId="QUALITY_DELETE"/> plugins/quality/data/QualitySecurityGroupDemoData.xml: <SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" groupId="FLEXADMIN" permissionId="QUALITY_UPDATE"/> plugins/quality/data/QualitySecurityGroupDemoData.xml: <SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" groupId="FLEXADMIN" permissionId="QUALITY_VIEW"/> plugins/quality/data/QualitySecurityGroupDemoData.xml: <SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" groupId="VIEWADMIN" permissionId="QUALITY_VIEW"/> plugins/quality/data/QualitySecurityGroupDemoData.xml: <SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" groupId="BIZADMIN" permissionId="QUALITY_ADMIN"/> You can see that there is the file plugins/quality/data/QualitySecurityGroupDemoData.xml That contains the association of QUALITY_ADMIN permission to the FULLADMIN group. If your user is FULLADMIN the plugin will show up. To load a specific file use EntityImport i already gave you with the absolute path of the wanted file. HTH Gil Le mercredi 28 nov. 2018 à 11:28:53 (+0000), Schumann Ye a écrit : > Dear Gil, > > Many thanks for your feedback. > However, I did try Gradlew “ofbiz –load-data readers=seed” and the newly created plugin didn’t show up. > > And I check the files and find the newly created plugin files has been created. > IT JUST DOESN’T SHOW UP! > > I know if I use Gradlew loadDefault and then it will show up but I just don’t want to mess up what I have done. > Any further hint? > > Thanks > Schumann > 发件人: Gil Portenseigne<mailto:[hidden email]> > 发送时间: 2018年11月28日 4:37 > 收件人: [hidden email]<mailto:[hidden email]> > 主题: Re: How to Create Plugin without loadDefault > > Hello Schumann, > > I believe what you are looking for is to load specific readers, to avoid > loading demo data. > > ./gradlew "ofbiz --load-data readers=seed" > > This command will load all seed data, and thus security data of your > newly created plugin. > > You could also use webtools webapp to load reader > (https://demo-stable.ofbiz.apache.org/webtools/control/EntityImportReaders) > > Or directly the data files you want > (https://demo-stable.ofbiz.apache.org/webtools/control/EntityImport) > > Enjoy ! > > Gil > > Le mardi 27 nov. 2018 à 12:09:57 (+0000), Schumann Ye a écrit : > > Dear Gurus, dear Rishi, dear Jacques, > > > > I’ve got a quick and easy question for you guys. > > How can I create Plugin (as shown in step 1 below) but without running step 2 below in order to show the newly created plugin in our production environment? > > Step 1: gradlew createPlugin -PpluginId=quality > > Step 2: gradlew loadDefault > > > > As I follow the tutorial written by Jacques, it seems it’s a MUST to run step 2 but I don’t want to mess up what I have done so far. > > Any hint? > > > > Many thanks and have a nice day! > > Schumann > > +86-18001501800 > > > |
Dear Gil,
You’re so right! Yes, I can do it from Party Manager and now it works perfectly! Millions of thanks and have a nice day to you! Schumann 发件人: Gil Portenseigne<mailto:[hidden email]> 发送时间: 2018年11月28日 20:10 收件人: [hidden email]<mailto:[hidden email]> 主题: Re: 答复: How to Create Plugin without loadDefault Hello, To make it show up the user you are using must have the base permission of your plugin ("QUALITY" for your example) associated to its securityGroup You can find the permission here : ❯ grep "base-permission" plugins/quality/ofbiz-component.xml base-permission="OFBTOOLS,QUALITY" Loading the seed make your plugin base permission load into db, you just need to add it to the security group of your user using partymgr webapp or loading files from your plugin : ❯ grep -R "QUALITY" plugins/quality/data plugins/quality/data/QualitySecurityPermissionSeedData.xml: <SecurityPermission description="View operations in the Quality Component." permissionId="QUALITY_VIEW"/> plugins/quality/data/QualitySecurityPermissionSeedData.xml: <SecurityPermission description="Create operations in the Quality Component." permissionId="QUALITY_CREATE"/> plugins/quality/data/QualitySecurityPermissionSeedData.xml: <SecurityPermission description="Update operations in the Quality Component." permissionId="QUALITY_UPDATE"/> plugins/quality/data/QualitySecurityPermissionSeedData.xml: <SecurityPermission description="Delete operations in the Quality Component." permissionId="QUALITY_DELETE"/> plugins/quality/data/QualitySecurityPermissionSeedData.xml: <SecurityPermission description="ALL operations in the Quality Component." permissionId="QUALITY_ADMIN"/> plugins/quality/data/QualitySecurityPermissionSeedData.xml: <SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" groupId="SUPER" permissionId="QUALITY_ADMIN"/> plugins/quality/data/QualitySecurityGroupDemoData.xml: <SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" groupId="FULLADMIN" permissionId="QUALITY_ADMIN"/> plugins/quality/data/QualitySecurityGroupDemoData.xml: <SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" groupId="FLEXADMIN" permissionId="QUALITY_CREATE"/> plugins/quality/data/QualitySecurityGroupDemoData.xml: <SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" groupId="FLEXADMIN" permissionId="QUALITY_DELETE"/> plugins/quality/data/QualitySecurityGroupDemoData.xml: <SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" groupId="FLEXADMIN" permissionId="QUALITY_UPDATE"/> plugins/quality/data/QualitySecurityGroupDemoData.xml: <SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" groupId="FLEXADMIN" permissionId="QUALITY_VIEW"/> plugins/quality/data/QualitySecurityGroupDemoData.xml: <SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" groupId="VIEWADMIN" permissionId="QUALITY_VIEW"/> plugins/quality/data/QualitySecurityGroupDemoData.xml: <SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" groupId="BIZADMIN" permissionId="QUALITY_ADMIN"/> You can see that there is the file plugins/quality/data/QualitySecurityGroupDemoData.xml That contains the association of QUALITY_ADMIN permission to the FULLADMIN group. If your user is FULLADMIN the plugin will show up. To load a specific file use EntityImport i already gave you with the absolute path of the wanted file. HTH Gil Le mercredi 28 nov. 2018 à 11:28:53 (+0000), Schumann Ye a écrit : > Dear Gil, > > Many thanks for your feedback. > However, I did try Gradlew “ofbiz –load-data readers=seed” and the newly created plugin didn’t show up. > > And I check the files and find the newly created plugin files has been created. > IT JUST DOESN’T SHOW UP! > > I know if I use Gradlew loadDefault and then it will show up but I just don’t want to mess up what I have done. > Any further hint? > > Thanks > Schumann > 发件人: Gil Portenseigne<mailto:[hidden email]> > 发送时间: 2018年11月28日 4:37 > 收件人: [hidden email]<mailto:[hidden email]> > 主题: Re: How to Create Plugin without loadDefault > > Hello Schumann, > > I believe what you are looking for is to load specific readers, to avoid > loading demo data. > > ./gradlew "ofbiz --load-data readers=seed" > > This command will load all seed data, and thus security data of your > newly created plugin. > > You could also use webtools webapp to load reader > (https://demo-stable.ofbiz.apache.org/webtools/control/EntityImportReaders) > > Or directly the data files you want > (https://demo-stable.ofbiz.apache.org/webtools/control/EntityImport) > > Enjoy ! > > Gil > > Le mardi 27 nov. 2018 à 12:09:57 (+0000), Schumann Ye a écrit : > > Dear Gurus, dear Rishi, dear Jacques, > > > > I’ve got a quick and easy question for you guys. > > How can I create Plugin (as shown in step 1 below) but without running step 2 below in order to show the newly created plugin in our production environment? > > Step 1: gradlew createPlugin -PpluginId=quality > > Step 2: gradlew loadDefault > > > > As I follow the tutorial written by Jacques, it seems it’s a MUST to run step 2 but I don’t want to mess up what I have done so far. > > Any hint? > > > > Many thanks and have a nice day! > > Schumann > > +86-18001501800 > > > |
Newly created plugins should work with seed data as
base-permission@_ADMIN permissions are assigned to SUPER group. Please make sure to associate your user login with SUPER security group. Thanks & Regards -- Deepak Dixit On Wed, Nov 28, 2018 at 6:58 PM Schumann Ye <[hidden email]> wrote: > Dear Gil, > > You’re so right! > Yes, I can do it from Party Manager and now it works perfectly! > > Millions of thanks and have a nice day to you! > > Schumann > 发件人: Gil Portenseigne<mailto:[hidden email]> > 发送时间: 2018年11月28日 20:10 > 收件人: [hidden email]<mailto:[hidden email]> > 主题: Re: 答复: How to Create Plugin without loadDefault > > Hello, > > To make it show up the user you are using must have the base > permission of your plugin ("QUALITY" for your example) associated to its > securityGroup > > You can find the permission here : > ❯ grep "base-permission" plugins/quality/ofbiz-component.xml > base-permission="OFBTOOLS,QUALITY" > > > Loading the seed make your plugin base permission load into db, you just > need to add it to the security group of your user using partymgr webapp > or loading files from your plugin : > > ❯ grep -R "QUALITY" plugins/quality/data > plugins/quality/data/QualitySecurityPermissionSeedData.xml: > <SecurityPermission description="View operations in the Quality > Component." permissionId="QUALITY_VIEW"/> > plugins/quality/data/QualitySecurityPermissionSeedData.xml: > <SecurityPermission description="Create operations in the Quality > Component." permissionId="QUALITY_CREATE"/> > plugins/quality/data/QualitySecurityPermissionSeedData.xml: > <SecurityPermission description="Update operations in the Quality > Component." permissionId="QUALITY_UPDATE"/> > plugins/quality/data/QualitySecurityPermissionSeedData.xml: > <SecurityPermission description="Delete operations in the Quality > Component." permissionId="QUALITY_DELETE"/> > plugins/quality/data/QualitySecurityPermissionSeedData.xml: > <SecurityPermission description="ALL operations in the Quality Component." > permissionId="QUALITY_ADMIN"/> > plugins/quality/data/QualitySecurityPermissionSeedData.xml: > <SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" groupId="SUPER" > permissionId="QUALITY_ADMIN"/> > plugins/quality/data/QualitySecurityGroupDemoData.xml: > <SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" > groupId="FULLADMIN" permissionId="QUALITY_ADMIN"/> > plugins/quality/data/QualitySecurityGroupDemoData.xml: > <SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" > groupId="FLEXADMIN" permissionId="QUALITY_CREATE"/> > plugins/quality/data/QualitySecurityGroupDemoData.xml: > <SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" > groupId="FLEXADMIN" permissionId="QUALITY_DELETE"/> > plugins/quality/data/QualitySecurityGroupDemoData.xml: > <SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" > groupId="FLEXADMIN" permissionId="QUALITY_UPDATE"/> > plugins/quality/data/QualitySecurityGroupDemoData.xml: > <SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" > groupId="FLEXADMIN" permissionId="QUALITY_VIEW"/> > plugins/quality/data/QualitySecurityGroupDemoData.xml: > <SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" > groupId="VIEWADMIN" permissionId="QUALITY_VIEW"/> > plugins/quality/data/QualitySecurityGroupDemoData.xml: > <SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" > groupId="BIZADMIN" permissionId="QUALITY_ADMIN"/> > > You can see that there is the file > plugins/quality/data/QualitySecurityGroupDemoData.xml > > That contains the association of QUALITY_ADMIN permission to the > FULLADMIN group. > > If your user is FULLADMIN the plugin will show up. > > To load a specific file use EntityImport i already gave you with the > absolute path of the wanted file. > > HTH > > Gil > > Le mercredi 28 nov. 2018 à 11:28:53 (+0000), Schumann Ye a écrit : > > Dear Gil, > > > > Many thanks for your feedback. > > However, I did try Gradlew “ofbiz –load-data readers=seed” and the newly > created plugin didn’t show up. > > > > And I check the files and find the newly created plugin files has been > created. > > IT JUST DOESN’T SHOW UP! > > > > I know if I use Gradlew loadDefault and then it will show up but I just > don’t want to mess up what I have done. > > Any further hint? > > > > Thanks > > Schumann > > 发件人: Gil Portenseigne<mailto:[hidden email]> > > 发送时间: 2018年11月28日 4:37 > > 收件人: [hidden email]<mailto:[hidden email]> > > 主题: Re: How to Create Plugin without loadDefault > > > > Hello Schumann, > > > > I believe what you are looking for is to load specific readers, to avoid > > loading demo data. > > > > ./gradlew "ofbiz --load-data readers=seed" > > > > This command will load all seed data, and thus security data of your > > newly created plugin. > > > > You could also use webtools webapp to load reader > > ( > https://demo-stable.ofbiz.apache.org/webtools/control/EntityImportReaders) > > > > Or directly the data files you want > > (https://demo-stable.ofbiz.apache.org/webtools/control/EntityImport) > > > > Enjoy ! > > > > Gil > > > > Le mardi 27 nov. 2018 à 12:09:57 (+0000), Schumann Ye a écrit : > > > Dear Gurus, dear Rishi, dear Jacques, > > > > > > I’ve got a quick and easy question for you guys. > > > How can I create Plugin (as shown in step 1 below) but without running > step 2 below in order to show the newly created plugin in our production > environment? > > > Step 1: gradlew createPlugin -PpluginId=quality > > > Step 2: gradlew loadDefault > > > > > > As I follow the tutorial written by Jacques, it seems it’s a MUST to > run step 2 but I don’t want to mess up what I have done so far. > > > Any hint? > > > > > > Many thanks and have a nice day! > > > Schumann > > > +86-18001501800 > > > > > > > |
Dear Deepak,
You’re right that SUPER security group has all it takes. In this case, SUPER security group meets all the requirements instead of FULLADMIN security group. Again, thank you guys all for your kind help!!! Have a nice day! Schumann 发件人: Deepak Dixit<mailto:[hidden email]> 发送时间: 2018年11月29日 16:02 收件人: [hidden email]<mailto:[hidden email]> 主题: Re: 答复: How to Create Plugin without loadDefault Newly created plugins should work with seed data as base-permission@_ADMIN permissions are assigned to SUPER group. Please make sure to associate your user login with SUPER security group. Thanks & Regards -- Deepak Dixit On Wed, Nov 28, 2018 at 6:58 PM Schumann Ye <[hidden email]> wrote: > Dear Gil, > > You’re so right! > Yes, I can do it from Party Manager and now it works perfectly! > > Millions of thanks and have a nice day to you! > > Schumann > 发件人: Gil Portenseigne<mailto:[hidden email]> > 发送时间: 2018年11月28日 20:10 > 收件人: [hidden email]<mailto:[hidden email]> > 主题: Re: 答复: How to Create Plugin without loadDefault > > Hello, > > To make it show up the user you are using must have the base > permission of your plugin ("QUALITY" for your example) associated to its > securityGroup > > You can find the permission here : > ❯ grep "base-permission" plugins/quality/ofbiz-component.xml > base-permission="OFBTOOLS,QUALITY" > > > Loading the seed make your plugin base permission load into db, you just > need to add it to the security group of your user using partymgr webapp > or loading files from your plugin : > > ❯ grep -R "QUALITY" plugins/quality/data > plugins/quality/data/QualitySecurityPermissionSeedData.xml: > <SecurityPermission description="View operations in the Quality > Component." permissionId="QUALITY_VIEW"/> > plugins/quality/data/QualitySecurityPermissionSeedData.xml: > <SecurityPermission description="Create operations in the Quality > Component." permissionId="QUALITY_CREATE"/> > plugins/quality/data/QualitySecurityPermissionSeedData.xml: > <SecurityPermission description="Update operations in the Quality > Component." permissionId="QUALITY_UPDATE"/> > plugins/quality/data/QualitySecurityPermissionSeedData.xml: > <SecurityPermission description="Delete operations in the Quality > Component." permissionId="QUALITY_DELETE"/> > plugins/quality/data/QualitySecurityPermissionSeedData.xml: > <SecurityPermission description="ALL operations in the Quality Component." > permissionId="QUALITY_ADMIN"/> > plugins/quality/data/QualitySecurityPermissionSeedData.xml: > <SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" groupId="SUPER" > permissionId="QUALITY_ADMIN"/> > plugins/quality/data/QualitySecurityGroupDemoData.xml: > <SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" > groupId="FULLADMIN" permissionId="QUALITY_ADMIN"/> > plugins/quality/data/QualitySecurityGroupDemoData.xml: > <SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" > groupId="FLEXADMIN" permissionId="QUALITY_CREATE"/> > plugins/quality/data/QualitySecurityGroupDemoData.xml: > <SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" > groupId="FLEXADMIN" permissionId="QUALITY_DELETE"/> > plugins/quality/data/QualitySecurityGroupDemoData.xml: > <SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" > groupId="FLEXADMIN" permissionId="QUALITY_UPDATE"/> > plugins/quality/data/QualitySecurityGroupDemoData.xml: > <SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" > groupId="FLEXADMIN" permissionId="QUALITY_VIEW"/> > plugins/quality/data/QualitySecurityGroupDemoData.xml: > <SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" > groupId="VIEWADMIN" permissionId="QUALITY_VIEW"/> > plugins/quality/data/QualitySecurityGroupDemoData.xml: > <SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" > groupId="BIZADMIN" permissionId="QUALITY_ADMIN"/> > > You can see that there is the file > plugins/quality/data/QualitySecurityGroupDemoData.xml > > That contains the association of QUALITY_ADMIN permission to the > FULLADMIN group. > > If your user is FULLADMIN the plugin will show up. > > To load a specific file use EntityImport i already gave you with the > absolute path of the wanted file. > > HTH > > Gil > > Le mercredi 28 nov. 2018 à 11:28:53 (+0000), Schumann Ye a écrit : > > Dear Gil, > > > > Many thanks for your feedback. > > However, I did try Gradlew “ofbiz –load-data readers=seed” and the newly > created plugin didn’t show up. > > > > And I check the files and find the newly created plugin files has been > created. > > IT JUST DOESN’T SHOW UP! > > > > I know if I use Gradlew loadDefault and then it will show up but I just > don’t want to mess up what I have done. > > Any further hint? > > > > Thanks > > Schumann > > 发件人: Gil Portenseigne<mailto:[hidden email]> > > 发送时间: 2018年11月28日 4:37 > > 收件人: [hidden email]<mailto:[hidden email]> > > 主题: Re: How to Create Plugin without loadDefault > > > > Hello Schumann, > > > > I believe what you are looking for is to load specific readers, to avoid > > loading demo data. > > > > ./gradlew "ofbiz --load-data readers=seed" > > > > This command will load all seed data, and thus security data of your > > newly created plugin. > > > > You could also use webtools webapp to load reader > > ( > https://demo-stable.ofbiz.apache.org/webtools/control/EntityImportReaders) > > > > Or directly the data files you want > > (https://demo-stable.ofbiz.apache.org/webtools/control/EntityImport) > > > > Enjoy ! > > > > Gil > > > > Le mardi 27 nov. 2018 à 12:09:57 (+0000), Schumann Ye a écrit : > > > Dear Gurus, dear Rishi, dear Jacques, > > > > > > I’ve got a quick and easy question for you guys. > > > How can I create Plugin (as shown in step 1 below) but without running > step 2 below in order to show the newly created plugin in our production > environment? > > > Step 1: gradlew createPlugin -PpluginId=quality > > > Step 2: gradlew loadDefault > > > > > > As I follow the tutorial written by Jacques, it seems it’s a MUST to > run step 2 but I don’t want to mess up what I have done so far. > > > Any hint? > > > > > > Many thanks and have a nice day! > > > Schumann > > > +86-18001501800 > > > > > > > |
Free forum by Nabble | Edit this page |