|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.turbine.services.BaseInitable
org.apache.turbine.services.BaseService
org.apache.turbine.services.TurbineBaseService
org.apache.jetspeed.services.security.turbine.TurbinePermissionManagement
Default Jetspeed-Turbine Permission Management implementation
| Field Summary |
| Fields inherited from class org.apache.turbine.services.BaseService |
configuration, name, properties, serviceBroker |
| Fields inherited from class org.apache.turbine.services.BaseInitable |
initableBroker, isInitialized |
| Fields inherited from interface org.apache.jetspeed.services.security.PermissionManagement |
SERVICE_NAME |
| Constructor Summary | |
TurbinePermissionManagement()
|
|
| Method Summary | |
void |
addPermission(Permission permission)
Adds a Permission into permanent storage. |
Permission |
getPermission(java.lang.String permissionName)
Retrieves a single Permission for a given permissionName principal. |
java.util.Iterator |
getPermissions()
Retrieves all Permissions. |
java.util.Iterator |
getPermissions(java.lang.String rolename)
Retrieves all Permissions for a given rolename principal. |
protected JetspeedRunData |
getRunData()
|
void |
grantPermission(java.lang.String roleName,
java.lang.String permissionName)
Grants a permission to a role. |
boolean |
hasPermission(java.lang.String roleName,
java.lang.String permissionName)
Checks for the relationship of role has a permission. |
void |
init(javax.servlet.ServletConfig conf)
This is the early initialization method called by the Turbine Service framework |
protected boolean |
permissionExists(java.lang.String permissionName)
Check whether a specified permission exists. |
void |
removePermission(java.lang.String permissionName)
Removes a Permission from the permanent store. |
void |
revokePermission(java.lang.String roleName,
java.lang.String permissionName)
Revokes a permission from a role. |
void |
savePermission(Permission permission)
Saves a Permission into permanent storage. |
| Methods inherited from class org.apache.turbine.services.TurbineBaseService |
init, init, init, shutdown |
| Methods inherited from class org.apache.turbine.services.BaseService |
getConfiguration, getName, getProperties, getServiceBroker, setName, setServiceBroker |
| Methods inherited from class org.apache.turbine.services.BaseInitable |
getInit, getInitableBroker, setInit, setInitableBroker |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 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 |
| Constructor Detail |
public TurbinePermissionManagement()
| Method Detail |
public java.util.Iterator getPermissions(java.lang.String rolename)
throws JetspeedSecurityException
Permissions for a given rolename principal.
The security service may optionally check the current user context
to determine if the requestor has permission to perform this action.
getPermissions in interface PermissionManagementrolename - a role name identity to be retrieved.
PermissionException - when the security provider has a general failure.
InsufficientPrivilegeException - when the requestor is denied due to insufficient privilege
JetspeedSecurityException
public java.util.Iterator getPermissions()
throws JetspeedSecurityException
Permissions.
The security service may optionally check the current user context
to determine if the requestor has permission to perform this action.
getPermissions in interface PermissionManagementPermissionException - when the security provider has a general failure.
InsufficientPrivilegeException - when the requestor is denied due to insufficient privilege
JetspeedSecurityException
public void addPermission(Permission permission)
throws JetspeedSecurityException
Permission into permanent storage.
The security service may optionally check the current user context
to determine if the requestor has permission to perform this action.
addPermission in interface PermissionManagementPermissionException - when the security provider has a general failure.
InsufficientPrivilegeException - when the requestor is denied due to insufficient privilege
JetspeedSecurityException
public void savePermission(Permission permission)
throws JetspeedSecurityException
Permission into permanent storage.
The security service may optionally check the current user context
to determine if the requestor has permission to perform this action.
savePermission in interface PermissionManagementPermissionException - when the security provider has a general failure.
InsufficientPrivilegeException - when the requestor is denied due to insufficient privilege
JetspeedSecurityException
public void removePermission(java.lang.String permissionName)
throws JetspeedSecurityException
Permission from the permanent store.
The security service may optionally check the current user context
to determine if the requestor has permission to perform this action.
removePermission in interface PermissionManagementpermissionName - the principal identity of the permission to be retrieved.
PermissionException - when the security provider has a general failure.
InsufficientPrivilegeException - when the requestor is denied due to insufficient privilege
JetspeedSecurityException
public void grantPermission(java.lang.String roleName,
java.lang.String permissionName)
throws JetspeedSecurityException
grantPermission in interface PermissionManagementroleName - grant a permission to this role.permissionName - the permission to grant to the role.
PermissionException - when the security provider has a general failure retrieving permissions.
InsufficientPrivilegeException - when the requestor is denied due to insufficient privilege
JetspeedSecurityException
public void revokePermission(java.lang.String roleName,
java.lang.String permissionName)
throws JetspeedSecurityException
revokePermission in interface PermissionManagementroleName - grant a permission to this role.permissionName - the permission to grant to the role.
PermissionException - when the security provider has a general failure retrieving permissions.
InsufficientPrivilegeException - when the requestor is denied due to insufficient privilege
JetspeedSecurityException
public boolean hasPermission(java.lang.String roleName,
java.lang.String permissionName)
throws JetspeedSecurityException
hasPermission in interface PermissionManagementroleName - grant a permission to this role.permissionName - the permission to grant to the role.
PermissionException - when the security provider has a general failure retrieving permissions.
InsufficientPrivilegeException - when the requestor is denied due to insufficient privilege
JetspeedSecurityException
public Permission getPermission(java.lang.String permissionName)
throws JetspeedSecurityException
Permission for a given permissionName principal.
The security service may optionally check the current user context
to determine if the requestor has permission to perform this action.
getPermission in interface PermissionManagementpermissionName - a permission principal identity to be retrieved.
PermissionException - when the security provider has a general failure.
InsufficientPrivilegeException - when the requestor is denied due to insufficient privilege
JetspeedSecurityExceptionprotected JetspeedRunData getRunData()
protected boolean permissionExists(java.lang.String permissionName)
throws PermissionException
permissionName - the name of the permission to check for existence.
PermissionException - if there was a general db access error
public void init(javax.servlet.ServletConfig conf)
throws org.apache.turbine.services.InitializationException
Service framework
conf - The ServletConfig
throws - a InitializationException if the service
fails to initialize
org.apache.turbine.services.InitializationException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||