|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The Security Service manages Users, Groups Roles and Permissions in the system. The Jetspeed Security Service extends the interface of the Turbine Security Service, adding on the Jetspeed specific interface: AccessControl for controlling access to portal resources (portlets, panes).
Field Summary | |
static java.lang.String |
SERVICE_NAME
The name of this service |
Method Summary | |
boolean |
areActionsDisabledForAllUsers()
|
boolean |
areActionsDisabledForAnon()
Helper to PortalAuthorization. |
boolean |
checkDisableAccount(java.lang.String username)
|
boolean |
checkPermission(JetspeedRunData runData,
java.lang.String action,
Portlet portlet)
Helper to PortalAuthorization. |
java.lang.String |
convertPassword(java.lang.String password)
|
java.lang.String |
convertUserName(java.lang.String username)
|
java.util.List |
getAdminRoles()
|
java.lang.String |
getAnonymousUserName()
|
JetspeedUser |
getUser(java.lang.String username)
Helper to UserManagement. |
JetspeedUser |
getUserInstance()
|
boolean |
hasAdminRole(org.apache.turbine.om.security.User user)
|
boolean |
isDisableAccountCheckEnabled()
|
void |
resetDisableAccountCheck(java.lang.String username)
|
Methods inherited from interface org.apache.turbine.services.Service |
getConfiguration, getName, getProperties, setName, setServiceBroker |
Methods inherited from interface org.apache.turbine.services.Initable |
getInit, init, init, setInitableBroker, shutdown |
Field Detail |
public static final java.lang.String SERVICE_NAME
Method Detail |
public JetspeedUser getUserInstance()
public java.lang.String convertUserName(java.lang.String username)
public java.lang.String convertPassword(java.lang.String password)
public boolean checkDisableAccount(java.lang.String username)
public boolean isDisableAccountCheckEnabled()
public void resetDisableAccountCheck(java.lang.String username)
public JetspeedUser getUser(java.lang.String username) throws JetspeedSecurityException
JetspeedUser
given the primary principle username.
The principal can be any valid Jetspeed Security Principal:
org.apache.jetspeed.om.security.UserNamePrincipal
org.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.
username
- The username principal.
JetspeedUser
associated to the principal identity.
UserException
- when the security provider has a general failure retrieving a user.
UnknownUserException
- when the security provider cannot match
the principal identity to a user.
InsufficientPrivilegeException
- when the requestor is denied due to insufficient privilege
JetspeedSecurityException
public boolean checkPermission(JetspeedRunData runData, java.lang.String action, Portlet portlet)
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.
public boolean areActionsDisabledForAnon()
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.
public boolean areActionsDisabledForAllUsers()
public java.lang.String getAnonymousUserName()
public java.util.List getAdminRoles()
public boolean hasAdminRole(org.apache.turbine.om.security.User user)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |