User: starksm 
  Date: 01/06/21 20:56:27

  Modified:    src/main/org/jboss/metadata ApplicationMetaData.java
  Log:
  Add an unauthenticatedPrincipal attribute
  
  Revision  Changes    Path
  1.18      +16 -4     jboss/src/main/org/jboss/metadata/ApplicationMetaData.java
  
  Index: ApplicationMetaData.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/metadata/ApplicationMetaData.java,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- ApplicationMetaData.java  2001/06/18 20:01:27     1.17
  +++ ApplicationMetaData.java  2001/06/22 03:56:27     1.18
  @@ -20,17 +20,17 @@
   import org.jboss.ejb.DeploymentException;
   
   
  -/**
  - *   <description> 
  +/** The top level meta data from the jboss.xml descriptor.
    *     
    *   MessageDriven Bean added 
    *   @see <related>
    *   @author <a href="mailto:[EMAIL PROTECTED]";>Sebastien Alborini</a>
    *   @author <a href="mailto:[EMAIL PROTECTED]";>Peter Antman</a>.
    *   @author <a href="mailto:[EMAIL PROTECTED]";>Scott Stark</a>.
  - *   @version $Revision: 1.17 $
  + *   @version $Revision: 1.18 $
    */
  -public class ApplicationMetaData extends MetaData {
  +public class ApplicationMetaData extends MetaData
  +{
       // Constants -----------------------------------------------------
       
       // Attributes ----------------------------------------------------
  @@ -41,7 +41,10 @@
       private HashMap configurations = new HashMap();
       private HashMap resources = new HashMap();
       private HashMap plugins = new HashMap();
  +    /** The security-domain value assigned to the application */
       private String securityDomain;
  +    /** The  unauthenticated-principal value assigned to the application */
  +    private String  unauthenticatedPrincipal;
       private boolean enforceEjbRestrictions;
       
       // Static --------------------------------------------------------
  @@ -99,6 +102,10 @@
       {
           return securityDomain;
       }
  +    public String getUnauthenticatedPrincipal()
  +    {
  +        return unauthenticatedPrincipal;
  +    }
       public boolean getEnforceEjbRestrictions()
       {
           return enforceEjbRestrictions;
  @@ -306,6 +313,11 @@
          Element securityDomainElement = getOptionalChild(element, "security-domain");
          if( securityDomainElement != null )
           securityDomain = getElementContent(securityDomainElement);
  +
  +       // Get the unauthenticated-principal name
  +       Element unauth = getOptionalChild(element, "unauthenticated-principal");
  +       if( unauth != null )
  +         unauthenticatedPrincipal = getElementContent(unauth);
   
          // find the container configurations (we need them first to use them in the 
beans)
          Element confs = getOptionalChild(element, "container-configurations");
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to