portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Jencks <david_jen...@yahoo.com>
Subject Question about FolderPermission
Date Thu, 19 Jan 2006 01:55:18 GMT
I'm not sure I understand how FolderPermission works yet, but I  

FolderPermission A = new FolderPermission("/-", "view");
FolderPermission B = new FolderPermission("/", "view");

should A.implies(B)?

I would expect so, but currently it doesn't.

If it should, I can see two ways to make it happen:

1. make B.folder == true.
2. make the condition when A is a recursive folder and B is not a folder

((that.cpath.length() >= this.cpath.length()) && that.cpath.startsWith 

(i.e. length allowed to be equal).

Am I missing something?  Is one of these better than the other?

david jencks

To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org

View raw message