|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.mx.util.JBossNotificationBroadcasterSupport org.jboss.system.ServiceMBeanSupport org.jboss.portal.common.system.AbstractJBossService org.jboss.portal.security.impl.store.JBossTreeCacheStore org.jboss.portal.security.impl.JBossPortalPolicyConfigStoreImpl
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 |
public JBossPortalPolicyConfigStoreImpl()
Method Detail |
public JBossPortalPolicyConfigService getPortalPolicyConfigService()
getPortalPolicyConfigService
in interface JBossPortalPolicyConfigStore
public void setPortalPolicyConfigService(JBossPortalPolicyConfigService portalPolicyService)
setPortalPolicyConfigService
in interface JBossPortalPolicyConfigStore
public void setConfigListener(ConfigListener listener)
public void createContent() throws java.lang.Exception
ObjectManager
createContent
in interface ObjectManager
java.lang.Exception
- any exception that will cause a rollback of the transactionpublic java.lang.String getPermissionType()
PortalPolicyConfig
getPermissionType
in interface PortalPolicyConfig
public void setPermissionType(java.lang.String permissionType)
public void setConstraints(java.lang.String reference, java.util.Set constraints) throws PortalPolicyConfigException
PortalPolicyConfig
setConstraints
in interface PortalPolicyConfig
reference
- constraints
- a set of SecurityConstraint
elements containing allowed roles and actions
PortalPolicyConfigException
public void removeConstraints(java.lang.String reference) throws PortalPolicyConfigException
PortalPolicyConfig
removeConstraints
in interface PortalPolicyConfig
reference
-
PortalPolicyConfigException
- if the resource identified by uri
is not securedpublic java.util.Set getConstraints(java.lang.String reference)
getConstraints
in interface PortalPolicyConfig
reference
-
public ObjectModelAdapter getModelAdapter()
ObjectManager
getModelAdapter
in interface ObjectManager
public void startService() throws java.lang.Exception
startService
in class JBossTreeCacheStore
java.lang.Exception
public void stopService() throws java.lang.Exception
stopService
in class JBossTreeCacheStore
java.lang.Exception
public void addListener(ConfigListener listener)
PortalPolicyConfig
addListener
in interface PortalPolicyConfig
listener
- the listener to addpublic void removeListener(ConfigListener listener)
PortalPolicyConfig
removeListener
in interface PortalPolicyConfig
listener
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |