站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.6 API 英文版文档

BaseAuthorizationDomain - JBOSS Portal 2.6 API 英文版文档


org.jboss.portal.test.security
Class BaseAuthorizationDomain

java.lang.Object
  extended byorg.jboss.portal.test.security.BaseAuthorizationDomain
All Implemented Interfaces:
AuthorizationDomain, DomainConfigurator, PermissionRepository
Direct Known Subclasses:
FlatAuthorizationDomain, HierarchyAuthorizationDomain

public abstract class BaseAuthorizationDomain
extends java.lang.Object
implements AuthorizationDomain, DomainConfigurator, PermissionRepository

Version:
$Revision: 5448 $
Author:
Julien Viet

Field Summary
private  java.util.Map repository
          .
 
Constructor Summary
BaseAuthorizationDomain()
           
 
Method Summary
 DomainConfigurator getConfigurator()
          The domain configurator.
 PortalPermission getPermission(java.lang.String roleName, java.lang.String uri)
          Load a permission from the repository.
 PermissionRepository getPermissionRepository()
          The permission factory.
 java.util.Set getSecurityBindings(java.lang.String uri)
          Return the set of constraints for the given uri.
 void removeSecurityBindings(java.lang.String uri)
          Remove the contstraints for the provided uri
 void setSecurityBindings(java.lang.String uri, java.util.Set securityBindings)
          Add the provided constraints to this policy configuration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.portal.security.spi.provider.AuthorizationDomain
getPermissionFactory, getType
 

Field Detail

repository

private java.util.Map repository
.

Constructor Detail

BaseAuthorizationDomain

public BaseAuthorizationDomain()
Method Detail

getConfigurator

public DomainConfigurator getConfigurator()
Description copied from interface: AuthorizationDomain
The domain configurator.

Specified by:
getConfigurator in interface AuthorizationDomain

getPermissionRepository

public PermissionRepository getPermissionRepository()
Description copied from interface: AuthorizationDomain
The permission factory.

Specified by:
getPermissionRepository in interface AuthorizationDomain

getPermission

public PortalPermission getPermission(java.lang.String roleName,
                                      java.lang.String uri)
                               throws PortalSecurityException
Description copied from interface: PermissionRepository
Load a permission from the repository.

Specified by:
getPermission in interface PermissionRepository
Throws:
PortalSecurityException

getSecurityBindings

public java.util.Set getSecurityBindings(java.lang.String uri)
Description copied from interface: DomainConfigurator
Return the set of constraints for the given uri.

Specified by:
getSecurityBindings in interface DomainConfigurator
Parameters:
uri -
Returns:
a set of SecurityConstraint containing the roles and actions allowed for the resource

setSecurityBindings

public void setSecurityBindings(java.lang.String uri,
                                java.util.Set securityBindings)
                         throws SecurityConfigurationException
Description copied from interface: DomainConfigurator
Add the provided constraints to this policy configuration

Specified by:
setSecurityBindings in interface DomainConfigurator
Parameters:
uri -
securityBindings -
Throws:
SecurityConfigurationException

removeSecurityBindings

public void removeSecurityBindings(java.lang.String uri)
                            throws SecurityConfigurationException
Description copied from interface: DomainConfigurator
Remove the contstraints for the provided uri

Specified by:
removeSecurityBindings in interface DomainConfigurator
Parameters:
uri - the identifier of the secured resource
Throws:
SecurityConfigurationException