I want to add a whole new Module in Admin/CMS.
For the same i want to add a new Menu item Below - User Administration, with its own sub menus.
I follow below steps to do the same,
1) Perform DB entries as follows,
Code: Select all
INSERT INTO BLC_ADMIN_PERMISSION (ADMIN_PERMISSION_ID, DESCRIPTION, NAME, PERMISSION_TYPE) VALUES (64,'All MyModule','PERMISSION_ALL_MYMODULE', 'ALL');
INSERT INTO BLC_ADMIN_ROLE_PERMISSION_XREF (ADMIN_ROLE_ID, ADMIN_PERMISSION_ID) VALUES (1,64);
INSERT INTO BLC_ADMIN_MODULE (ADMIN_MODULE_ID, NAME, MODULE_KEY, ICON, DISPLAY_ORDER) VALUES (5,'MyModule Defination','EBONMyModuleDefination', 'icon-user', 5);
INSERT INTO BLC_ADMIN_SECTION (ADMIN_SECTION_ID, ADMIN_MODULE_ID, NAME, SECTION_KEY, URL, USE_DEFAULT_HANDLER) VALUES (14, 5, 'MyModule Management', 'MyModuleManagement', '/MyModule-management', TRUE);
After that i created,
Code: Select all
public class MyModuleManagementModule extends AbstractModule {
@Override
public void onModuleLoad() {
setModuleTitle("MyModule Management");
setModuleKey("EBONMyModuleDefination");
List<String> cleafManagementPermissions = new ArrayList<String>();
cleafManagementPermissions.add("PERMISSION_CREATE_ADMIN_USER");
cleafManagementPermissions.add("PERMISSION_UPDATE_ADMIN_USER");
cleafManagementPermissions.add("PERMISSION_DELETE_ADMIN_USER");
cleafManagementPermissions.add("PERMISSION_READ_ADMIN_USER");
setSection(
BLCMain.getMessageManager().getString("roleManagementMainTitle"),
"role",
"org.broadleafcommerce.openadmin.client.view.user.RoleManagementView",
"rolePresenter",
"org.broadleafcommerce.openadmin.client.presenter.user.RoleManagementPresenter",
cleafManagementPermissions
);
setOrder(250);
registerModule();
}
}
And an entry in myAdmin.gwt.xml,
Code: Select all
<inherits name="com.ebon.webshop.admin.myModuleManagementModule" />
where my myModuleManagementModule.gwt.xml, resides at the above location provided. And below is the code for the same
Code: Select all
<module>
<inherits name="com.google.gwt.user.User" />
<!-- <inherits name="org.broadleafcommerce.admin.customerCareModule" /> -->
<source path="client" />
<entry-point class="com.ebon.webshop.admin.client.cleaf.EbonCleafManagementModule" />
</module>
Still when i compile and run the application there is no left menu item available for the same.
Can you please provide any documentation on how to add a new module in CMS, as the current section for the same is empty.