org.jboss.deployment.security
Class AbstractSecurityDeployer<T extends org.jboss.metadata.javaee.support.IdMetaData>

java.lang.Object
  extended by org.jboss.deployers.spi.deployer.helpers.AbstractDeployer
      extended by org.jboss.deployment.security.AbstractSecurityDeployer<T>
All Implemented Interfaces:
org.jboss.deployers.spi.deployer.Deployer, org.jboss.deployers.spi.Ordered
Direct Known Subclasses:
EarSecurityDeployer, EjbSecurityDeployer, WarSecurityDeployer

public abstract class AbstractSecurityDeployer<T extends org.jboss.metadata.javaee.support.IdMetaData>
extends org.jboss.deployers.spi.deployer.helpers.AbstractDeployer

Abstract Security Deployer Sets up the top level JaccPolicy service beans

Since:
Feb 18, 2008
Version:
$Revision: 86126 $
Author:
Anil.Saldhana@redhat.com

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jboss.deployers.spi.Ordered
org.jboss.deployers.spi.Ordered.OrderedComparator
 
Field Summary
 
Fields inherited from class org.jboss.deployers.spi.deployer.helpers.AbstractDeployer
log
 
Fields inherited from interface org.jboss.deployers.spi.Ordered
COMPARATOR
 
Constructor Summary
AbstractSecurityDeployer()
           
 
Method Summary
 void deploy(org.jboss.deployers.structure.spi.DeploymentUnit unit)
           
protected abstract  String getJaccPolicyName()
          Get the name of the JaccPolicy subclass (EjbJaccPolicy,WebJaccPolicy etc)
protected abstract  Class<T> getMetaDataClassType()
          Return the type of metadata
 org.jboss.security.authorization.PolicyRegistration getPolicyRegistration()
           
protected abstract  ServiceMetaData getServiceMetaData()
          Get the top level service bean meta data
 void setPolicyRegistration(org.jboss.security.authorization.PolicyRegistration policyRegistration)
           
 void undeploy(org.jboss.deployers.structure.spi.DeploymentUnit unit)
           
 
Methods inherited from class org.jboss.deployers.spi.deployer.helpers.AbstractDeployer
addInput, addInput, addOutput, addOutput, getInput, getInputs, getOutput, getOutputs, getRelativeOrder, getStage, isAllInputs, isComponentsOnly, isParentFirst, isTopLevelOnly, isWantComponents, setAllInputs, setComponentsOnly, setInput, setInputs, setInputs, setInputs, setOutput, setOutputs, setOutputs, setOutputs, setParentFirst, setRelativeOrder, setStage, setTopLevelOnly, setWantComponents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractSecurityDeployer

public AbstractSecurityDeployer()
Method Detail

getPolicyRegistration

public org.jboss.security.authorization.PolicyRegistration getPolicyRegistration()
Returns:

setPolicyRegistration

public void setPolicyRegistration(org.jboss.security.authorization.PolicyRegistration policyRegistration)
Parameters:
policyRegistration -

deploy

public void deploy(org.jboss.deployers.structure.spi.DeploymentUnit unit)
            throws org.jboss.deployers.spi.DeploymentException
Throws:
org.jboss.deployers.spi.DeploymentException

undeploy

public void undeploy(org.jboss.deployers.structure.spi.DeploymentUnit unit)
Specified by:
undeploy in interface org.jboss.deployers.spi.deployer.Deployer
Overrides:
undeploy in class org.jboss.deployers.spi.deployer.helpers.AbstractDeployer

getJaccPolicyName

protected abstract String getJaccPolicyName()
Get the name of the JaccPolicy subclass (EjbJaccPolicy,WebJaccPolicy etc)

Returns:

getMetaDataClassType

protected abstract Class<T> getMetaDataClassType()
Return the type of metadata

Returns:

getServiceMetaData

protected abstract ServiceMetaData getServiceMetaData()
Get the top level service bean meta data

Returns:


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.