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

DomainConfigurator - JBOSS Portal 2.6 API 英文版文档


org.jboss.portal.security.spi.provider
Interface DomainConfigurator

All Known Implementing Classes:
AbstractPortalObjectContainer, BaseAuthorizationDomain, JBossPortletSecurityService, PersistentInstanceContainer

public interface DomainConfigurator

Main interface to configure the policy for a specified permission type and manage security of portal resources.

Version:
$Revision: 5448 $
Author:
Martin Holzner, Julien Viet

Method Summary
 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
 

Method Detail

getSecurityBindings

public java.util.Set getSecurityBindings(java.lang.String uri)
Return the set of constraints for the given uri.

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
Add the provided constraints to this policy configuration

Parameters:
uri -
securityBindings -
Throws:
SecurityConfigurationException

removeSecurityBindings

public void removeSecurityBindings(java.lang.String uri)
                            throws SecurityConfigurationException
Remove the contstraints for the provided uri

Parameters:
uri - the identifier of the secured resource
Throws:
SecurityConfigurationException