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

JBossPortalPolicyConfigStoreImpl - JBOSS Portal 2.2 API 英文版文档


org.jboss.portal.security.impl
Class JBossPortalPolicyConfigStoreImpl

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.store.JBossTreeCacheStore
                  extended byorg.jboss.portal.security.impl.JBossPortalPolicyConfigStoreImpl
All Implemented Interfaces:
JBossPortalPolicyConfigStore, javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, ObjectManager, PortalPolicyConfig, org.jboss.system.Service, org.jboss.system.ServiceMBean

public class JBossPortalPolicyConfigStoreImpl
extends JBossTreeCacheStore
implements JBossPortalPolicyConfigStore

MBean to allow access to one portal policy config.


Field Summary
 
Fields inherited from class org.jboss.portal.security.impl.store.JBossTreeCacheStore
cacheAdapter
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport
log, 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
JBossPortalPolicyConfigStoreImpl()
           
 
Method Summary
 void addListener(ConfigListener listener)
          Add a configuration change listener to notify when changes occur in this policy config
 void createContent()
          Give a chance to the manager to create the initial content when the cache adapter has detected it does not exist.
 java.util.Set getConstraints(java.lang.String reference)
           
 ObjectModelAdapter getModelAdapter()
          Return the object model adapter.
 java.lang.String getPermissionType()
          The permission type managed by this config.
 JBossPortalPolicyConfigService getPortalPolicyConfigService()
           
 void removeConstraints(java.lang.String reference)
          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 setConfigListener(ConfigListener listener)
           
 void setConstraints(java.lang.String reference, java.util.Set constraints)
          add the provided constraints to this policy configuration
 void setPermissionType(java.lang.String permissionType)
           
 void setPortalPolicyConfigService(JBossPortalPolicyConfigService portalPolicyService)
           
 void startService()
           
 void stopService()
           
 
Methods inherited from class org.jboss.portal.security.impl.store.JBossTreeCacheStore
createService, destroyService, getCacheAdapter, getCacheProvider, getFQNPrefix, getPrefix, setCacheProvider, setPrefix, toID
 
Methods inherited from class org.jboss.portal.common.system.AbstractJBossService
create, destroy, getState, getStateString, start, stop
 
Methods inherited from class org.jboss.system.ServiceMBeanSupport
getDeploymentInfo, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister
 
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

JBossPortalPolicyConfigStoreImpl

public JBossPortalPolicyConfigStoreImpl()
Method Detail

getPortalPolicyConfigService

public JBossPortalPolicyConfigService getPortalPolicyConfigService()
Specified by:
getPortalPolicyConfigService in interface JBossPortalPolicyConfigStore

setPortalPolicyConfigService

public void setPortalPolicyConfigService(JBossPortalPolicyConfigService portalPolicyService)
Specified by:
setPortalPolicyConfigService in interface JBossPortalPolicyConfigStore

setConfigListener

public void setConfigListener(ConfigListener listener)

createContent

public void createContent()
                   throws java.lang.Exception
Description copied from interface: ObjectManager
Give a chance to the manager to create the initial content when the cache adapter has detected it does not exist.

Specified by:
createContent in interface ObjectManager
Throws:
java.lang.Exception - any exception that will cause a rollback of the transaction

getPermissionType

public java.lang.String getPermissionType()
Description copied from interface: PortalPolicyConfig
The permission type managed by this config.

Specified by:
getPermissionType in interface PortalPolicyConfig

setPermissionType

public void setPermissionType(java.lang.String permissionType)

setConstraints

public void setConstraints(java.lang.String reference,
                           java.util.Set constraints)
                    throws PortalPolicyConfigException
Description copied from interface: PortalPolicyConfig
add the provided constraints to this policy configuration

Specified by:
setConstraints in interface PortalPolicyConfig
Parameters:
reference -
constraints - a set of SecurityConstraint elements containing allowed roles and actions
Throws:
PortalPolicyConfigException

removeConstraints

public void removeConstraints(java.lang.String reference)
                       throws PortalPolicyConfigException
Description copied from interface: PortalPolicyConfig
Remove the contstraints for the provided uri

Specified by:
removeConstraints in interface PortalPolicyConfig
Parameters:
reference -
Throws:
PortalPolicyConfigException - if the resource identified by uri is not secured

getConstraints

public java.util.Set getConstraints(java.lang.String reference)
Specified by:
getConstraints in interface PortalPolicyConfig
Parameters:
reference -
Returns:
a set containing the roles and actions allowed for the resource

getModelAdapter

public ObjectModelAdapter getModelAdapter()
Description copied from interface: ObjectManager
Return the object model adapter.

Specified by:
getModelAdapter in interface ObjectManager
Returns:
the object model adapter

startService

public void startService()
                  throws java.lang.Exception
Overrides:
startService in class JBossTreeCacheStore
Throws:
java.lang.Exception

stopService

public void stopService()
                 throws java.lang.Exception
Overrides:
stopService in class JBossTreeCacheStore
Throws:
java.lang.Exception

addListener

public void addListener(ConfigListener listener)
Description copied from interface: PortalPolicyConfig
Add a configuration change listener to notify when changes occur in this policy config

Specified by:
addListener in interface PortalPolicyConfig
Parameters:
listener - the listener to add

removeListener

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

Specified by:
removeListener in interface PortalPolicyConfig
Parameters:
listener -