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

JBossPortletSecurityService - JBOSS Portal 2.4 API 英文版文档


org.jboss.portal.portlet.impl.security
Class JBossPortletSecurityService

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.portlet.impl.security.JBossPortletSecurityService
All Implemented Interfaces:
AuthorizationDomain, DomainConfigurator, javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, PermissionFactory, PermissionRepository, PortletSecurityService, org.jboss.system.Service, org.jboss.system.ServiceMBean

public class JBossPortletSecurityService
extends AbstractJBossService
implements PortletSecurityService, AuthorizationDomain, DomainConfigurator, PermissionRepository, PermissionFactory

Service that configures security for portlets

Since:
Mar 17, 2006

Field Summary
protected  JBossAuthorizationDomainRegistry authorizationDomainRegistry
          .
protected  PortalAuthorizationManagerFactory portalAuthorizationManagerFactory
          .
protected  EDU.oswego.cs.dl.util.concurrent.ConcurrentReaderHashMap securityConstraintsMap
          .
 
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
JBossPortletSecurityService()
           
 
Method Summary
 PortalPermission createPermission(java.lang.String uri, java.util.Collection actions)
           
 PortalPermission createPermission(java.lang.String uri, java.lang.String action)
           
 PortalPermission createPermissionContainer(PortalPermissionCollection collection)
           
protected  void createService()
           
protected  void destroyService()
           
 AuthorizationDomain getAuthorizationDomain()
           
 JBossAuthorizationDomainRegistry getAuthorizationDomainRegistry()
           
 java.util.Set getBindings(java.lang.String uri)
          Return the set of constraints for the given uri.
 DomainConfigurator getConfigurator()
          The domain configurator.
 PortalPermission getPermission(java.lang.String roleName, java.lang.String uri)
          Load a permission from the repository.
 PermissionFactory getPermissionFactory()
          The permission repository.
 PermissionRepository getPermissionRepository()
          The permission factory.
 PortalAuthorizationManagerFactory getPortalAuthorizationManagerFactory()
           
 java.lang.String getType()
          The domain type.
 void removeBindings(java.lang.String uri)
          Remove the contstraints for the provided uri
 void setAuthorizationDomainRegistry(JBossAuthorizationDomainRegistry authorizationDomainRegistry)
           
 void setBindings(java.lang.String uri, java.util.Set bindings)
          Add the provided constraints to this policy configuration
 void setPortalAuthorizationManagerFactory(PortalAuthorizationManagerFactory portalAuthorizationManagerFactory)
           
protected  void startService()
           
protected  void stopService()
           
 
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
 

Field Detail

securityConstraintsMap

protected EDU.oswego.cs.dl.util.concurrent.ConcurrentReaderHashMap securityConstraintsMap
.


portalAuthorizationManagerFactory

protected PortalAuthorizationManagerFactory portalAuthorizationManagerFactory
.


authorizationDomainRegistry

protected JBossAuthorizationDomainRegistry authorizationDomainRegistry
.

Constructor Detail

JBossPortletSecurityService

public JBossPortletSecurityService()
Method Detail

getAuthorizationDomain

public AuthorizationDomain getAuthorizationDomain()
Specified by:
getAuthorizationDomain in interface PortletSecurityService

getType

public java.lang.String getType()
Description copied from interface: AuthorizationDomain
The domain type.

Specified by:
getType in interface AuthorizationDomain

getConfigurator

public DomainConfigurator getConfigurator()
Description copied from interface: AuthorizationDomain
The domain configurator.

Specified by:
getConfigurator in interface AuthorizationDomain

getPermissionRepository

public PermissionRepository getPermissionRepository()
Description copied from interface: AuthorizationDomain
The permission factory.

Specified by:
getPermissionRepository in interface AuthorizationDomain

getPermissionFactory

public PermissionFactory getPermissionFactory()
Description copied from interface: AuthorizationDomain
The permission repository.

Specified by:
getPermissionFactory in interface AuthorizationDomain

getBindings

public java.util.Set getBindings(java.lang.String uri)
Description copied from interface: DomainConfigurator
Return the set of constraints for the given uri.

Specified by:
getBindings in interface DomainConfigurator
Parameters:
uri -
Returns:
a set of SecurityConstraint containing the roles and actions allowed for the resource

setBindings

public void setBindings(java.lang.String uri,
                        java.util.Set bindings)
                 throws SecurityConfigurationException
Description copied from interface: DomainConfigurator
Add the provided constraints to this policy configuration

Specified by:
setBindings in interface DomainConfigurator
Parameters:
uri -
bindings -
Throws:
SecurityConfigurationException

removeBindings

public void removeBindings(java.lang.String uri)
                    throws SecurityConfigurationException
Description copied from interface: DomainConfigurator
Remove the contstraints for the provided uri

Specified by:
removeBindings in interface DomainConfigurator
Parameters:
uri - the identifier of the secured resource
Throws:
SecurityConfigurationException

getPermission

public PortalPermission getPermission(java.lang.String roleName,
                                      java.lang.String uri)
                               throws PortalSecurityException
Description copied from interface: PermissionRepository
Load a permission from the repository.

Specified by:
getPermission in interface PermissionRepository
Throws:
PortalSecurityException

createPermissionContainer

public PortalPermission createPermissionContainer(PortalPermissionCollection collection)
                                           throws PortalSecurityException
Specified by:
createPermissionContainer in interface PermissionFactory
Throws:
PortalSecurityException

createPermission

public PortalPermission createPermission(java.lang.String uri,
                                         java.lang.String action)
                                  throws PortalSecurityException
Specified by:
createPermission in interface PermissionFactory
Throws:
PortalSecurityException

createPermission

public PortalPermission createPermission(java.lang.String uri,
                                         java.util.Collection actions)
                                  throws PortalSecurityException
Specified by:
createPermission in interface PermissionFactory
Throws:
PortalSecurityException

createService

protected void createService()
                      throws java.lang.Exception
Throws:
java.lang.Exception

destroyService

protected void destroyService()
                       throws java.lang.Exception
Throws:
java.lang.Exception

startService

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

stopService

protected void stopService()
                    throws java.lang.Exception
Throws:
java.lang.Exception

getAuthorizationDomainRegistry

public JBossAuthorizationDomainRegistry getAuthorizationDomainRegistry()

setAuthorizationDomainRegistry

public void setAuthorizationDomainRegistry(JBossAuthorizationDomainRegistry authorizationDomainRegistry)

getPortalAuthorizationManagerFactory

public PortalAuthorizationManagerFactory getPortalAuthorizationManagerFactory()

setPortalAuthorizationManagerFactory

public void setPortalAuthorizationManagerFactory(PortalAuthorizationManagerFactory portalAuthorizationManagerFactory)