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

PortalPolicyConfig - JBOSS Portal 2.2 API 英文版文档


org.jboss.portal.security.config
Interface PortalPolicyConfig

All Known Subinterfaces:
JBossPortalPolicyConfigStore
All Known Implementing Classes:
JBossPortalPolicyConfigStoreImpl

public interface PortalPolicyConfig

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


Method Summary
 void addListener(ConfigListener listener)
          Add a configuration change listener to notify when changes occur in this policy config
 java.util.Set getConstraints(java.lang.String uri)
           
 java.lang.String getPermissionType()
          The permission type managed by this config.
 void removeConstraints(java.lang.String uri)
          Remove the contstraints for the provided uri
 void removeListener(ConfigListener listener)
          Remove the provided listener from the list of listeners to notify about changes in this policy config
 void setConstraints(java.lang.String uri, java.util.Set constraints)
          add the provided constraints to this policy configuration
 

Method Detail

getPermissionType

public java.lang.String getPermissionType()
The permission type managed by this config.


setConstraints

public void setConstraints(java.lang.String uri,
                           java.util.Set constraints)
                    throws PortalPolicyConfigException
add the provided constraints to this policy configuration

Parameters:
uri -
constraints - a set of SecurityConstraint elements containing allowed roles and actions
Throws:
PortalPolicyConfigException

getConstraints

public java.util.Set getConstraints(java.lang.String uri)
Parameters:
uri -
Returns:
a set containing the roles and actions allowed for the resource

removeConstraints

public void removeConstraints(java.lang.String uri)
                       throws PortalPolicyConfigException
Remove the contstraints for the provided uri

Parameters:
uri - the identifier of the secured resource
Throws:
PortalPolicyConfigException - if the resource identified by uri is not secured

addListener

public void addListener(ConfigListener listener)
Add a configuration change listener to notify when changes occur in this policy config

Parameters:
listener - the listener to add

removeListener

public void removeListener(ConfigListener listener)
Remove the provided listener from the list of listeners to notify about changes in this policy config

Parameters:
listener -