@Test void testParamValueToPermissionSetWrite() { assertEquals(WRITE, paramValueToPermissionSet("write")); }
public static PermissionSet paramValueToPermissionSet(String paramValue) { switch (paramValue.toUpperCase()) { case READMETA: return PermissionSet.READMETA; case COUNT: return PermissionSet.COUNT; case READ: return PermissionSet.READ; case WRITE: return PermissionSet.WRITE; case WRITEMETA: return PermissionSet.WRITEMETA; default: throw new IllegalArgumentException(format("Unknown PermissionSet '%s'", paramValue)); } }
PermissionSetUtils { public static PermissionSet paramValueToPermissionSet(String paramValue) { switch (paramValue.toUpperCase()) { case READMETA: return PermissionSet.READMETA; case COUNT: return PermissionSet.COUNT; case READ: return PermissionSet.READ; case WRITE: return PermissionSet.WRITE; case WRITEMETA: return PermissionSet.WRITEMETA; default: throw new IllegalArgumentException(format("Unknown PermissionSet '%s'", paramValue)); } } }
PermissionSetUtils { public static PermissionSet paramValueToPermissionSet(String paramValue) { switch (paramValue.toUpperCase()) { case READMETA: return PermissionSet.READMETA; case COUNT: return PermissionSet.COUNT; case READ: return PermissionSet.READ; case WRITE: return PermissionSet.WRITE; case WRITEMETA: return PermissionSet.WRITEMETA; default: throw new IllegalArgumentException(format("Unknown PermissionSet '%s'", paramValue)); } } private  PermissionSetUtils(); }
PermissionSetUtils { public static PermissionSet paramValueToPermissionSet(String paramValue) { switch (paramValue.toUpperCase()) { case READMETA: return PermissionSet.READMETA; case COUNT: return PermissionSet.COUNT; case READ: return PermissionSet.READ; case WRITE: return PermissionSet.WRITE; case WRITEMETA: return PermissionSet.WRITEMETA; default: throw new IllegalArgumentException(format("Unknown PermissionSet '%s'", paramValue)); } } private  PermissionSetUtils(); static PermissionSet getPermissionSet(AccessControlEntry accessControlEntry); static PermissionSet paramValueToPermissionSet(String paramValue); static Optional<String> getPermissionStringValue(LabelledPermission labelledPermission); static String getPermissionStringValue(PermissionSet permissionSet); }
PermissionSetUtils { public static PermissionSet paramValueToPermissionSet(String paramValue) { switch (paramValue.toUpperCase()) { case READMETA: return PermissionSet.READMETA; case COUNT: return PermissionSet.COUNT; case READ: return PermissionSet.READ; case WRITE: return PermissionSet.WRITE; case WRITEMETA: return PermissionSet.WRITEMETA; default: throw new IllegalArgumentException(format("Unknown PermissionSet '%s'", paramValue)); } } private  PermissionSetUtils(); static PermissionSet getPermissionSet(AccessControlEntry accessControlEntry); static PermissionSet paramValueToPermissionSet(String paramValue); static Optional<String> getPermissionStringValue(LabelledPermission labelledPermission); static String getPermissionStringValue(PermissionSet permissionSet); static final String READMETA; static final String COUNT; static final String READ; static final String WRITE; static final String WRITEMETA; static final String UNEXPECTED_MASK_MESSAGE; }