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 <[email protected]> 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:[email protected]> > 发送时间: 2018年11月28日 20:10 > 收件人: [email protected]<mailto:[email protected]> > 主题: 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:[email protected]> > > 发送时间: 2018年11月28日 4:37 > > 收件人: [email protected]<mailto:[email protected]> > > 主题: 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 > > > > > > >
