Helper to UserManagement.
Retrieves a JetspeedUser given the primary principle username.
The principal can be any valid Jetspeed Security Principal:
org.apache.jetspeed.om.security.UserNamePrincipalorg.apache.jetspeed.om.security.UserIdPrincipal
The security service may optionally check the current user context
to determine if the requestor has permission to perform this action.
public boolean checkPermission(JetspeedRunData runData,
java.lang.String action,
Portlet portlet)
Helper to PortalAuthorization.
Gets a JetspeedUser from rundata, authorize user to perform the secured action on
the given Portlet resource. If the user does not have
sufficient privilege to perform the action on the resource, the check returns false,
otherwise when sufficient privilege is present, checkPermission returns true.
action - the secured action to be performed on the resource by the user.
portlet - the portlet resource.
Returns:
boolean true if the user has sufficient privilege.
areActionsDisabledForAnon
public boolean areActionsDisabledForAnon()
Helper to PortalAuthorization.
Gets a JetspeedUser from rundata, authorize user to perform the secured action on
the given Entry resource. If the user does not have
sufficient privilege to perform the action on the resource, the check returns false,
otherwise when sufficient privilege is present, checkPermission returns true.
boolean true if the user has sufficient privilege.
public boolean checkPermission(JetspeedRunData runData, String action, RegistryEntry entry)
{
return JetspeedPortalAccessController.checkPermission(runData.getJetspeedUser(),
entry,
action);
}