[Admin Tools | log4j2]: Allow curators with profile to be invisible in the Gateway | Dynamically align custom menu.
1. Curator.java & CuratorResponse.java: Added field private boolean visible = true; to allow curators have a profile but not be visible in the Gateway. 2. CuratorService.java: In method "getCurators()" called by /{pid}/curator, return curators that have a profile and the profile is visible. 3. MenuAlignment.java: Enum created for menu alignment options. 4. Menu.java & MenuFull.java: Added field public MenuAlignment featuredAlignment = MenuAlignment.CENTER; to allow dynamic alignment of the Gateway custom menu. 5. MenuController.java: Added api method "alignMenu()" (/community/{pid}/menu/align), to change alignment of the custom menu. 6. MenuService.java: Added method "alignMenu()" | Set featuredAlignment field (default to "CENTER").pull/1/head
parent
22d010c096
commit
4f62befa74
@ -0,0 +1,5 @@
|
||||
package eu.dnetlib.uoaadmintools.entities.menu;
|
||||
|
||||
public enum MenuAlignment {
|
||||
LEFT, CENTER, RIGHT
|
||||
}
|
Loading…
Reference in New Issue