public void checkUserPortletPermission(String actionId) throws AuthorizationException {
try {
if (!userHasPortletPermission(actionId)) {
throw new AuthorizationException("User " + getUserId() + " not authorized to perform action " +
actionId);
}
}
catch (Exception e) {
throw new AuthorizationException("Exception checking permissions for actionId " + actionId, e);
}
}