Hi all, I'm having a problem getting an AccessControlList from within a
VelocityPortletAction. I'm using the passed RunData object to grab the
ACL, but it returns null. The getUser() works, and the current user has
roles and permissions (they can run the portlet, which is secured with a
role). Here's my code:
public void doSend(RunData data, Context context)
{
try {
String userName = data.getUser().getUserName();
PermissionSet permissions = null;
AccessControlList acl = data.getACL();
if (acl == null) {
System.out.println("ACL is NULL!");
} else {
permissions = data.getACL().getPermissions();
}
System.out.println("userName: " + userName + ",
permissions: " + permissions);
} catch (Exception e) {
e.printStackTrace();
context.put("message", e.getMessage());
}
}
The above prints:
[9/17/02 9:18:20:734 CDT] 50795bb5 SystemOut U ACL is NULL!
[9/17/02 9:18:20:734 CDT] 50795bb5 SystemOut U userName: wsturges,
permissions: null
Can anyone offer any suggestions? Thanks in advance,
Woody
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>