@Test(expected = IllegalArgumentException.class) public void testSerializeManagedAclWithNull() throws Exception { AccessInformationUtil.serializeManagedAcl(null); }
public static JSONObject serializeManagedAcl(ManagedAcl managedAcl) { if (managedAcl == null) throw new IllegalArgumentException("The parameter managedAcl must not be null"); JSONObject systemAclJson = new JSONObject(); try { systemAclJson.put("id", managedAcl.getId()); systemAclJson.put("name", managedAcl.getName()); } catch (JSONException e) { logger.error("An unexpected error occured:", e); } return systemAclJson; }
AccessInformationUtil { public static JSONObject serializeManagedAcl(ManagedAcl managedAcl) { if (managedAcl == null) throw new IllegalArgumentException("The parameter managedAcl must not be null"); JSONObject systemAclJson = new JSONObject(); try { systemAclJson.put("id", managedAcl.getId()); systemAclJson.put("name", managedAcl.getName()); } catch (JSONException e) { logger.error("An unexpected error occured:", e); } return systemAclJson; } }
AccessInformationUtil { public static JSONObject serializeManagedAcl(ManagedAcl managedAcl) { if (managedAcl == null) throw new IllegalArgumentException("The parameter managedAcl must not be null"); JSONObject systemAclJson = new JSONObject(); try { systemAclJson.put("id", managedAcl.getId()); systemAclJson.put("name", managedAcl.getName()); } catch (JSONException e) { logger.error("An unexpected error occured:", e); } return systemAclJson; } private  AccessInformationUtil(); }
AccessInformationUtil { public static JSONObject serializeManagedAcl(ManagedAcl managedAcl) { if (managedAcl == null) throw new IllegalArgumentException("The parameter managedAcl must not be null"); JSONObject systemAclJson = new JSONObject(); try { systemAclJson.put("id", managedAcl.getId()); systemAclJson.put("name", managedAcl.getName()); } catch (JSONException e) { logger.error("An unexpected error occured:", e); } return systemAclJson; } private  AccessInformationUtil(); static JSONObject serializeManagedAcl(ManagedAcl managedAcl); static JSONObject serializePrivilegesByRole(AccessControlList acl); static Option<ManagedAcl> matchAcls(List<ManagedAcl> acls, final AccessControlList acl); }
AccessInformationUtil { public static JSONObject serializeManagedAcl(ManagedAcl managedAcl) { if (managedAcl == null) throw new IllegalArgumentException("The parameter managedAcl must not be null"); JSONObject systemAclJson = new JSONObject(); try { systemAclJson.put("id", managedAcl.getId()); systemAclJson.put("name", managedAcl.getName()); } catch (JSONException e) { logger.error("An unexpected error occured:", e); } return systemAclJson; } private  AccessInformationUtil(); static JSONObject serializeManagedAcl(ManagedAcl managedAcl); static JSONObject serializePrivilegesByRole(AccessControlList acl); static Option<ManagedAcl> matchAcls(List<ManagedAcl> acls, final AccessControlList acl);  }