To restrict node access to user(using principalbased acl), tried with
following snippet, but turns ineffective.
/Map<String, Value> restrictions = new HashMap<String, Value>();
//Apply privilege to user to have read only access to root folder
restrictions.put("rep:nodePath", valueFactory.createValue(ROOT,
PropertyType.PATH));
restrictions.put("rep:glob", valueFactory.createValue(""));
accessControlList.addEntry(userPrincipal, privileges, true , restrictions);
accessControlManager.setPolicy(accessControlList.getPath(),
accessControlList);/
Is there any other way to set 'rep:glob' property to ""?
--
View this message in context:
http://jackrabbit.510166.n4.nabble.com/Creating-empty-string-for-rep-glob-tp4661354.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.