/** * Role group names mostly follow the same conventions as role names. The only difference is that the role group * "_" is a reserved null-substitution for the absence of a group. */ public static boolean isLegalRoleGroupName(String group) { return isLegalRoleName(group) && !"_".equals(group); } }
/** * Role group names mostly follow the same conventions as role names. The only difference is that the role group * "_" is a reserved null-substitution for the absence of a group. */ public static boolean isLegalRoleGroupName(String group) { return isLegalRoleName(group) && !"_".equals(group); } }
@Override public Role createRole(RoleIdentifier id, RoleModification modification) { checkNotNull(id, "id"); checkArgument(isLegalRoleName(id.getId()), "Role cannot have ID %s", id.getId()); String groupKey = checkGroup(id.getGroup());
@Override public Role createRole(RoleIdentifier id, RoleModification modification) { checkNotNull(id, "id"); checkArgument(isLegalRoleName(id.getId()), "Role cannot have ID %s", id.getId()); String groupKey = checkGroup(id.getGroup());