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

JaccPortalPolicyConfigurator - JBOSS Portal 2.2 API 英文版文档


org.jboss.portal.security.impl.jacc
Class JaccPortalPolicyConfigurator

java.lang.Object
  extended byorg.jboss.mx.util.JBossNotificationBroadcasterSupport
      extended byorg.jboss.system.ServiceMBeanSupport
          extended byorg.jboss.portal.common.system.AbstractJBossService
              extended byorg.jboss.portal.security.impl.jacc.JaccPortalPolicyConfigurator
All Implemented Interfaces:
ConfigListener, javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, org.jboss.system.Service, org.jboss.system.ServiceMBean

public final class JaccPortalPolicyConfigurator
extends AbstractJBossService
implements ConfigListener

The bridging class between the portal policy configurator, and the jacc policy enforcement.

This ConfifListener takes policy configuration chage events and updates the appropriate JACC permissions with them.


Field Summary
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport
server, SERVICE_CONTROLLER_SIG, serviceName
 
Fields inherited from interface org.jboss.system.ServiceMBean
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED
 
Constructor Summary
JaccPortalPolicyConfigurator()
           
 
Method Summary
 JBossSecurityProvider getJBossSecurityProvider()
           
 PortalPermissionFactory getPermissionFactory()
           
 PortalPolicyConfig getPortalPolicyConfig()
           
 void resourceAdded(java.lang.String permissionType, java.lang.String uri, java.util.Set constraints)
          A resource has been added to the configuration.
 void resourceModified(java.lang.String permissionType, java.lang.String uri, java.util.Set constraints)
          A resource has been modified.
 void resourceRemoved(java.lang.String permissionType, java.lang.String uri)
          A resource has been removed from the configuration.
 void setJBossSecurityProvider(JBossSecurityProvider provider)
           
 void setPermissionFactory(PortalPermissionFactory permissionFactory)
           
 void setPortalPolicyConfig(PortalPolicyConfig config)
           
 void startService()
           
 
Methods inherited from class org.jboss.portal.common.system.AbstractJBossService
create, destroy, getState, getStateString, start, stop
 
Methods inherited from class org.jboss.system.ServiceMBeanSupport
createService, destroyService, getDeploymentInfo, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, stopService
 
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport
addNotificationListener, getNotificationInfo, handleNotification, nextNotificationSequenceNumber, removeNotificationListener, removeNotificationListener, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JaccPortalPolicyConfigurator

public JaccPortalPolicyConfigurator()
Method Detail

setJBossSecurityProvider

public void setJBossSecurityProvider(JBossSecurityProvider provider)

getJBossSecurityProvider

public JBossSecurityProvider getJBossSecurityProvider()

getPortalPolicyConfig

public PortalPolicyConfig getPortalPolicyConfig()

setPortalPolicyConfig

public void setPortalPolicyConfig(PortalPolicyConfig config)

getPermissionFactory

public PortalPermissionFactory getPermissionFactory()

setPermissionFactory

public void setPermissionFactory(PortalPermissionFactory permissionFactory)

resourceAdded

public void resourceAdded(java.lang.String permissionType,
                          java.lang.String uri,
                          java.util.Set constraints)
A resource has been added to the configuration. The method implementation can modify the constraints argument.

Specified by:
resourceAdded in interface ConfigListener
Parameters:
uri -
constraints - the set of constraints applied to this resource

resourceModified

public void resourceModified(java.lang.String permissionType,
                             java.lang.String uri,
                             java.util.Set constraints)
A resource has been modified. The method implementation can modify the constraints argument.

Specified by:
resourceModified in interface ConfigListener
Parameters:
uri -
constraints - the set of constraints applied to this resource

resourceRemoved

public void resourceRemoved(java.lang.String permissionType,
                            java.lang.String uri)
A resource has been removed from the configuration.

Specified by:
resourceRemoved in interface ConfigListener
Parameters:
uri -

startService

public void startService()
                  throws java.lang.Exception
Throws:
java.lang.Exception