|
|
@ -1,6 +1,7 @@
|
|
|
|
package info.bukova.isspst;
|
|
|
|
package info.bukova.isspst;
|
|
|
|
|
|
|
|
|
|
|
|
import info.bukova.isspst.data.Permission;
|
|
|
|
import info.bukova.isspst.data.Permission;
|
|
|
|
|
|
|
|
import info.bukova.isspst.data.PermissionType;
|
|
|
|
import info.bukova.isspst.data.Role;
|
|
|
|
import info.bukova.isspst.data.Role;
|
|
|
|
import info.bukova.isspst.reporting.Report;
|
|
|
|
import info.bukova.isspst.reporting.Report;
|
|
|
|
import info.bukova.isspst.reporting.ReportMapping;
|
|
|
|
import info.bukova.isspst.reporting.ReportMapping;
|
|
|
@ -55,6 +56,7 @@ public class Constants {
|
|
|
|
public final static String MOD_MUNITS = "MUNITS";
|
|
|
|
public final static String MOD_MUNITS = "MUNITS";
|
|
|
|
public final static String MOD_MATERIAL = "MATERIAL";
|
|
|
|
public final static String MOD_MATERIAL = "MATERIAL";
|
|
|
|
public final static String MOD_WORKGROUPS = "WORKGROUPS";
|
|
|
|
public final static String MOD_WORKGROUPS = "WORKGROUPS";
|
|
|
|
|
|
|
|
public final static String MOD_REQUIREMENTS = "REQUIREMENTS";
|
|
|
|
public final static Module MODULES[] = {
|
|
|
|
public final static Module MODULES[] = {
|
|
|
|
new Module(MOD_USERS, "Uživatelé", UserService.class),
|
|
|
|
new Module(MOD_USERS, "Uživatelé", UserService.class),
|
|
|
|
new Module(MOD_PERMISSIONS, "Práva", RoleService.class),
|
|
|
|
new Module(MOD_PERMISSIONS, "Práva", RoleService.class),
|
|
|
@ -62,9 +64,28 @@ public class Constants {
|
|
|
|
new Module(MOD_BUILDINGS, "Budovy", BuildingService.class),
|
|
|
|
new Module(MOD_BUILDINGS, "Budovy", BuildingService.class),
|
|
|
|
new Module(MOD_MUNITS, "Měrné jednotky", MUnitService.class),
|
|
|
|
new Module(MOD_MUNITS, "Měrné jednotky", MUnitService.class),
|
|
|
|
new Module(MOD_MATERIAL, "Materiál", MaterialService.class),
|
|
|
|
new Module(MOD_MATERIAL, "Materiál", MaterialService.class),
|
|
|
|
new Module(MOD_WORKGROUPS, "Pracovní skupiny", WorkgroupService.class)
|
|
|
|
new Module(MOD_WORKGROUPS, "Pracovní skupiny", WorkgroupService.class),
|
|
|
|
|
|
|
|
new Module(MOD_REQUIREMENTS, "Požadavky", null)
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public final static String PERM_APPROVE_WORKGROUP = "PERM_APPROVE_WORKGROUP";
|
|
|
|
|
|
|
|
public final static String PERM_APPROVE_CENTRE = "PERM_APPROVE_CENTRE";
|
|
|
|
|
|
|
|
public final static String PERM_APPROVE_LIMIT = "PERM_APPROVE_LIMIT";
|
|
|
|
|
|
|
|
public final static String PERM_APPROVE_FINAL = "PERM_APPROVE_FINAL";
|
|
|
|
|
|
|
|
public final static String PERM_SHOW_WORKGROUP_REQ = "PERM_SHOW_WORKGROUP_REQ";
|
|
|
|
|
|
|
|
public final static String PERM_SHOW_CENTRE_REQ = "PERM_SHOW_CENTRE_REQ";
|
|
|
|
|
|
|
|
public final static String PERM_SHOW_ALL_REQ = "PERM_SHOW_ALL_REQ";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public final static Permission SPECIAL_PERMISSIONS[] = {
|
|
|
|
|
|
|
|
new Permission(PERM_SHOW_WORKGROUP_REQ, "Zobrazení požadavků komise", MOD_REQUIREMENTS, PermissionType.WORKGROUP),
|
|
|
|
|
|
|
|
new Permission(PERM_SHOW_CENTRE_REQ, "Zobrazení požadavků střediska", MOD_REQUIREMENTS, PermissionType.CENTRE),
|
|
|
|
|
|
|
|
new Permission(PERM_SHOW_ALL_REQ, "Zobrazení všech požadavků", MOD_REQUIREMENTS, PermissionType.GLOBAL),
|
|
|
|
|
|
|
|
new Permission(PERM_APPROVE_WORKGROUP, "Schválení v komisi", MOD_REQUIREMENTS, PermissionType.WORKGROUP),
|
|
|
|
|
|
|
|
new Permission(PERM_APPROVE_CENTRE, "Schválení ve středisku", MOD_REQUIREMENTS, PermissionType.CENTRE),
|
|
|
|
|
|
|
|
new Permission(PERM_APPROVE_LIMIT, "Schválení nadlimitních", MOD_REQUIREMENTS, PermissionType.GLOBAL),
|
|
|
|
|
|
|
|
new Permission(PERM_APPROVE_FINAL, "Konečné schválení", MOD_REQUIREMENTS, PermissionType.CENTRE),
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
public final static String DYNAMIC_REPORT_NAME = "Tabulková sestava";
|
|
|
|
public final static String DYNAMIC_REPORT_NAME = "Tabulková sestava";
|
|
|
|
public final static ReportMapping REPORTS[] = {
|
|
|
|
public final static ReportMapping REPORTS[] = {
|
|
|
|
new ReportMapping(MOD_ADDRESSBOOK, new Report("Adresní karty", "address")),
|
|
|
|
new ReportMapping(MOD_ADDRESSBOOK, new Report("Adresní karty", "address")),
|
|
|
|