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

JBossPortletSecurityService - JBOSS Portal 2.6 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.jems.as.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
Version:
$Revision: 5448 $
Author:
Anil Saldhana

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 class org.jboss.mx.util.JBossNotificationBroadcasterSupport
 
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()
           
 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.util.Set getSecurityBindings(java.lang.String uri)
          Return the set of constraints for the given uri.
 java.lang.String getType()
          The domain type.
 void removeSecurityBindings(java.lang.String uri)
          Remove the contstraints for the provided uri
 void setAuthorizationDomainRegistry(JBossAuthorizationDomainRegistry authorizationDomainRegistry)
           
 void setPortalAuthorizationManagerFactory(PortalAuthorizationManagerFactory portalAuthorizationManagerFactory)
           
 void setSecurityBindings(java.lang.String uri, java.util.Set securityBindings)
          Add the provided constraints to this policy configuration
protected  void startService()
           
protected  void stopService()
           
 
Methods inherited from class org.jboss.portal.jems.as.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

getSecurityBindings

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

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

setSecurityBindings

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

Specified by:
setSecurityBindings in interface DomainConfigurator
Parameters:
uri -
securityBindings -
Throws:
SecurityConfigurationException

removeSecurityBindings

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

Specified by:
removeSecurityBindings 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)