User: starksm
Date: 01/06/15 07:19:07
Modified: src/main/org/jboss/metadata BeanMetaData.java
SecurityIdentityMetaData.java
Log:
Add support for the security-identity tag
Revision Changes Path
1.23 +2 -2 jboss/src/main/org/jboss/metadata/BeanMetaData.java
Index: BeanMetaData.java
===================================================================
RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/metadata/BeanMetaData.java,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- BeanMetaData.java 2001/06/11 06:16:50 1.22
+++ BeanMetaData.java 2001/06/15 14:19:06 1.23
@@ -28,7 +28,7 @@
* @author Peter Antman ([EMAIL PROTECTED])
* @author Daniel OConnor ([EMAIL PROTECTED])
* @author [EMAIL PROTECTED]
- * @version $Revision: 1.22 $
+ * @version $Revision: 1.23 $
*/
public abstract class BeanMetaData extends MetaData {
// Constants -----------------------------------------------------
@@ -165,7 +165,7 @@
}
public String getSecurityProxy() { return securityProxy; }
- private SecurityIdentityMetaData getSecurityIdentityMetaData()
+ public SecurityIdentityMetaData getSecurityIdentityMetaData()
{
return securityIdentity;
}
1.2 +9 -2 jboss/src/main/org/jboss/metadata/SecurityIdentityMetaData.java
Index: SecurityIdentityMetaData.java
===================================================================
RCS file:
/cvsroot/jboss/jboss/src/main/org/jboss/metadata/SecurityIdentityMetaData.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- SecurityIdentityMetaData.java 2001/06/10 07:46:16 1.1
+++ SecurityIdentityMetaData.java 2001/06/15 14:19:06 1.2
@@ -13,14 +13,14 @@
/** The meta data object for the security-identity element.
The security-identity element specifies whether the caller�s security
identity is to be used for the execution of the methods of the enterprise
-bean or whether a specific run-as identity is to be used. It
+bean or whether a specific run-as role is to be used. It
contains an optional description and a specification of the security
identity to be used.
Used in: session, entity, message-driven
@author [EMAIL PROTECTED]
-@version $Revision: 1.1 $
+@version $Revision: 1.2 $
*/
public class SecurityIdentityMetaData extends MetaData
{
@@ -40,10 +40,15 @@
return description;
}
+ /**
+ */
public boolean getUseCallerIdentity()
{
return useCallerIdentity;
}
+ /** Get the run-as security identity. This is the principal to be used for
+ the run-as identity of an enterprise bean in terms of its security role.
+ */
public String getRunAsRoleName()
{
return runAsRoleName;
@@ -64,10 +69,12 @@
if( callerIdent != null )
{
useCallerIdentity = true;
+System.out.println("SecurityIdentity, useCallerIdentity");
}
else
{
runAsRoleName = getElementContent(getUniqueChild(runAs, "role-name"));
+System.out.println("SecurityIdentity, runAsRoleName="+runAsRoleName);
}
}
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development