Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jboss.portal.cms.security
Class AuthorizationProviderImpl

    java.lang.Object
      org.jboss.mx.util.JBossNotificationBroadcasterSupport
          org.jboss.system.ServiceMBeanSupport
              org.jboss.portal.jems.as.system.AbstractJBossService
                  org.jboss.portal.cms.security.AuthorizationProviderImpl

All Implemented Interfaces:
  javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, AuthorizationProvider, AuthorizationDomain, DomainConfigurator, org.jboss.system.Service, org.jboss.system.ServiceMBean

    public class AuthorizationProviderImpl

extends AbstractJBossService
implements AuthorizationProvider

Created on : Jan 23, 2007

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

Field Summary

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
`AuthorizationProviderImpl()`

Method Summary
`java.lang.String` | `getCmsRootUserName()`
`DomainConfigurator` | `getConfigurator()` The domain configurator.
`java.lang.String` | `getCriteriaURI(java.lang.String name, java.lang.String value)`
`java.lang.String` | `getDefaultAdminRole()`
`IdentityServiceController` | `getIdentityServiceController()`
`MembershipModule` | `getMembershipModule()`
`PermissionFactory` | `getPermissionFactory()` The permission repository.
`PermissionRepository` | `getPermissionRepository()` The permission factory.
`java.lang.String` | `getRoleURI(java.lang.String roleId)`
`User` | `getRoot()`
`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` | `setCmsRootUserName(java.lang.String cmsRootUserName)`
`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 org.jboss.system.ServiceMBeanSupport
`createService, destroyService, getDeploymentInfo, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, stopService`

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

### AuthorizationProviderImpl

    public AuthorizationProviderImpl()

Method Detail

### startService

    public void startService()
                      throws java.lang.Exception

  Overrides:
    `startService` in class `org.jboss.system.ServiceMBeanSupport`
  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`

### getCmsRootUserName

    public java.lang.String getCmsRootUserName()

  Returns:

### setCmsRootUserName

    public void setCmsRootUserName(java.lang.String cmsRootUserName)

  Parameters:
    `cmsRootUserName` -

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

### getRoot

    public User getRoot()

  Specified by:
    `getRoot` in interface `AuthorizationProvider`
  Returns:

### getDefaultAdminRole

    public java.lang.String getDefaultAdminRole()

  Specified by:
    `getDefaultAdminRole` in interface `AuthorizationProvider`
  Returns:

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

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD