public String getResourceId() { return super.getProperty(RESOURCE_ID); }
public String getNavGroupId() { return super.getProperty(NAV_GROUP_ID); }
public String getNavGroupId() { return super.getProperty(NAV_GROUP_ID); }
public String getResourceId() { return super.getProperty(RESOURCE_ID); }
public List<String> getPermissions() { List<String> permissionList = new ArrayList<>(); String str = super.getProperty(PERMISSIONS); if (str != null) { for (String p : str.split(",")) { permissionList.add(p.trim()); } } return permissionList; }
public List<String> getPermissions() { List<String> permissionList = new ArrayList<>(); String str = super.getProperty(PERMISSIONS); if (str != null) { for (String p : str.split(",")) { permissionList.add(p.trim()); } } return permissionList; }
public NavWorkbenchCtx addPermission(String permission) { String str = super.getProperty(PERMISSIONS); str = str == null ? permission : str + "," + permission; super.setProperty(PERMISSIONS, str); return this; } }
public NavWorkbenchCtx addPermission(String permission) { String str = super.getProperty(PERMISSIONS); str = str == null ? permission : str + "," + permission; super.setProperty(PERMISSIONS, str); return this; } }
public ActivityResourceType getResourceType() { String type = super.getProperty(RESOURCE_TYPE); return type != null ? ActivityResourceType.valueOf(type.toUpperCase()) : null; }
public ActivityResourceType getResourceType() { String type = super.getProperty(RESOURCE_TYPE); return type != null ? ActivityResourceType.valueOf(type.toUpperCase()) : null; }
@Override public boolean includesPropertiesOf(NavItemContext ctx) { for (String p : ctx.getPropertyIds()) { String v1 = this.getProperty(p); String v2 = ctx.getProperty(p); if (v1 == null && v2 != null) { return false; } if (v1 != null && !v1.equals(v2)) { return false; } } return true; }
@Override public boolean includesPropertiesOf(NavItemContext ctx) { for (String p : ctx.getPropertyIds()) { String v1 = this.getProperty(p); String v2 = ctx.getProperty(p); if (v1 == null && v2 != null) { return false; } if (v1 != null && !v1.equals(v2)) { return false; } } return true; }