in src/main/java/org/apache/sling/cassandra/resource/provider/security/AccessControlUtil.java [148:158]
private void addACE(String path, String policy) throws Exception {
String rid = getrowID(path);
createColumnFamily(ACL_CF, provider.getKeyspace(), new StringSerializer());
String getAllACEs = "select * from " + ACL_CF + " where KEY = '" + rid + "'";
QueryResult<CqlRows<String, String, String>> results = CassandraResourceProviderUtil.executeQuery(getAllACEs, provider.getKeyspace(), new StringSerializer());
if (CassandraResourceProviderUtil.recordExists(results, "policy")) {
updateACL(rid, policy, new StringSerializer(), results);
} else {
addACL(rid, policy, new StringSerializer());
}
}