How to add a module in Admin Menu

Any communication concerning the translations of the Cyclos3 version

Moderators: hugo, alexandre, rmvanarkel

Post Reply
manojvrm
Posts: 1
Joined: Mon Sep 07, 2015 12:58 pm

How to add a module in Admin Menu

Post by manojvrm » Tue Sep 15, 2015 10:21 pm

I want to add the module token management in cyclos 3.7.3. The module(token management) is already available in cyclos 3.6. In the first step I added 'Reset PIN' menu in menuAdmin.jsp. Foe this followed following steps :

1. Added following line in ApplicationResources_en_US.properties

menu.admin.tokens.resetPin=Reset PIN

2. Added following code in menuAdmin.jsp file :

<c:if test="${cyclos:granted(AdminMemberPermission.TOKEN_MANAGE)}">
<cyclos:menu key="menu.member.tokens">
<cyclos:menu url="/do/admin/resetPinToken" key="menu.admin.tokens.resetPin" />
</cyclos:menu>
</c:if>


3. Added following line in AdminMemberPermission.java

TOKEN_MANAGE(Module.ADMIN_MEMBER_TOKEN),


4. Added following line Module.java :

ADMIN_MEMBER_TOKEN(ModuleType.ADMIN_MEMBER),

5. I did not add/modify anything ModuleType.java :

6. Build war file and deployed in apache tomcat server. All other menus of 3.7.3 are visible but this menu 'Reset PIN' is not visible.


How can we make it visible ?

Post Reply