org.jboss.portal.cms.security
Class AuthorizationManagerImpl

java.lang.Object
  extended by org.jboss.mx.util.JBossNotificationBroadcasterSupport
      extended by org.jboss.system.ServiceMBeanSupport
          extended by org.jboss.portal.jems.as.system.AbstractJBossService
              extended by org.jboss.portal.cms.security.AuthorizationManagerImpl
All Implemented Interfaces:
javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, AuthorizationManager, PortalAuthorizationManager, PortalAuthorizationManagerFactory, org.jboss.system.Service, org.jboss.system.ServiceMBean

public class AuthorizationManagerImpl
extends AbstractJBossService
implements AuthorizationManager

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.portal.cms.security.AuthorizationManager
Anonymous
 
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
AuthorizationManagerImpl()
           
 
Method Summary
 boolean checkPermission(PortalPermission permission)
           
 boolean checkPermission(javax.security.auth.Subject checkedSubject, PortalPermission permission)
           
 java.lang.String getJNDIName()
           
 PortalAuthorizationManager getManager()
          Return the portal authorization manager instance.
 AuthorizationProvider getProvider()
           
 void setJNDIName(java.lang.String jndiName)
           
 void setProvider(AuthorizationProvider provider)
           
 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

AuthorizationManagerImpl

public AuthorizationManagerImpl()
Method Detail

getProvider

public AuthorizationProvider getProvider()
Specified by:
getProvider in interface AuthorizationManager
Returns:

setProvider

public void setProvider(AuthorizationProvider provider)
Parameters:
provider -

getJNDIName

public java.lang.String getJNDIName()
Returns:

setJNDIName

public void setJNDIName(java.lang.String jndiName)
Parameters:
jndiName -

startService

public void startService()
                  throws java.lang.Exception
Overrides:
startService in class org.jboss.system.ServiceMBeanSupport
Throws:
java.lang.Exception

getManager

public PortalAuthorizationManager getManager()
                                      throws PortalSecurityException
Description copied from interface: PortalAuthorizationManagerFactory
Return the portal authorization manager instance.

Specified by:
getManager in interface PortalAuthorizationManagerFactory
Returns:
the portal authorization manager
Throws:
PortalSecurityException

checkPermission

public boolean checkPermission(PortalPermission permission)
                        throws PortalSecurityException
Specified by:
checkPermission in interface PortalAuthorizationManager
Returns:
Throws:
PortalSecurityException

checkPermission

public boolean checkPermission(javax.security.auth.Subject checkedSubject,
                               PortalPermission permission)
                        throws PortalSecurityException
Specified by:
checkPermission in interface PortalAuthorizationManager
Returns:
Throws:
PortalSecurityException