org.jboss.portal.cms.security
Class AuthorizationProviderImpl

java.lang.Object
  extended by ServiceMBeanSupport
      extended by org.jboss.portal.jems.as.system.AbstractJBossService
          extended by org.jboss.portal.cms.security.AuthorizationProviderImpl
All Implemented Interfaces:
AuthorizationProvider, AuthorizationDomain, DomainConfigurator

public class AuthorizationProviderImpl
extends AbstractJBossService
implements AuthorizationProvider

Created on : Jan 23, 2007

Author:
Sohil Shah - sohil.shah@jboss.com

Constructor Summary
AuthorizationProviderImpl()
           
 
Method Summary
 DomainConfigurator getConfigurator()
          The domain configurator.
 java.lang.String getCriteriaURI(java.lang.String name, java.lang.String value)
           
 IdentityServiceController getIdentityServiceController()
           
 MembershipModule getMembershipModule()
           
 PermissionFactory getPermissionFactory()
          The permission repository.
 PermissionRepository getPermissionRepository()
          The permission factory.
 java.lang.String getRoleURI(java.lang.String roleId)
           
 java.util.Set getSecurityBindings(java.lang.String uri)
          Return the set of constraints for the given uri.
 java.lang.String getType()
          The domain type.
 java.lang.String getUserURI(java.lang.String userId)
           
 void removeSecurityBindings(java.lang.String uri)
          Remove the contstraints for the provided uri
 void setIdentityServiceController(IdentityServiceController identityServiceController)
           
 void setSecurityBindings(java.lang.String uri, java.util.Set securityBindings)
          Add the provided constraints to this policy configuration
 void startService()
           
 
Methods inherited from class org.jboss.portal.jems.as.system.AbstractJBossService
create, destroy, getState, getStateString, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthorizationProviderImpl

public AuthorizationProviderImpl()
Method Detail

startService

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

getConfigurator

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

Specified by:
getConfigurator in interface AuthorizationDomain

getPermissionFactory

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

Specified by:
getPermissionFactory in interface AuthorizationDomain

getPermissionRepository

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

Specified by:
getPermissionRepository in interface AuthorizationDomain

getType

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

Specified by:
getType in interface AuthorizationDomain

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
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

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
Returns:
a set of SecurityConstraint containing the roles and actions allowed for the resource

getUserURI

public java.lang.String getUserURI(java.lang.String userId)
Specified by:
getUserURI in interface AuthorizationProvider
Returns:

getRoleURI

public java.lang.String getRoleURI(java.lang.String roleId)
Specified by:
getRoleURI in interface AuthorizationProvider
Parameters:
roleId -
Returns:

getCriteriaURI

public java.lang.String getCriteriaURI(java.lang.String name,
                                       java.lang.String value)
Specified by:
getCriteriaURI in interface AuthorizationProvider
Parameters:
name -
value -
Returns:

getMembershipModule

public MembershipModule getMembershipModule()
Specified by:
getMembershipModule in interface AuthorizationProvider
Returns:

getIdentityServiceController

public IdentityServiceController getIdentityServiceController()

setIdentityServiceController

public void setIdentityServiceController(IdentityServiceController identityServiceController)
Parameters:
identityServiceController -