User: starksm
Date: 01/06/21 21:09:32
Modified: src/main/org/jboss/metadata Tag: Branch_2_4
ApplicationMetaData.java
Log:
Add an unauthenticatedPrincipal attribute
Revision Changes Path
No revision
No revision
1.16.4.1 +18 -6 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.16
retrieving revision 1.16.4.1
diff -u -r1.16 -r1.16.4.1
--- ApplicationMetaData.java 2001/06/10 07:46:16 1.16
+++ ApplicationMetaData.java 2001/06/22 04:09:32 1.16.4.1
@@ -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 Peter Antman ([EMAIL PROTECTED])
- * @author [EMAIL PROTECTED]
- * @version $Revision: 1.16 $
+ * @author <a href="mailto:[EMAIL PROTECTED]">Peter Antman</a>.
+ * @author <a href="mailto:[EMAIL PROTECTED]">Scott Stark</a>.
+ * @version $Revision: 1.16.4.1 $
*/
-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