jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From techie2k <developer.spr...@gmail.com>
Subject Creating empty string for 'rep:glob'
Date Wed, 03 Sep 2014 06:56:28 GMT
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.

Mime
View raw message