Package org.jboss.metadata

Examples of org.jboss.metadata.ApplicationMetaData


        
         BeanMetaData bmd = container.getBeanMetaData();
         SecurityIdentityMetaData ejbTimeoutIdentity = bmd.isEntity() ? null : bmd.getEjbTimeoutIdentity();
         if( ejbTimeoutIdentity != null && ejbTimeoutIdentity.getUseCallerIdentity() == false )
         {
            ApplicationMetaData applicationMetaData = bmd.getApplicationMetaData();
            AssemblyDescriptorMetaData assemblyDescriptor = applicationMetaData.getAssemblyDescriptor();
            String roleName = ejbTimeoutIdentity.getRunAsRoleName();
            String principalName = ejbTimeoutIdentity.getRunAsPrincipalName();
            // the run-as principal might have extra roles mapped in the assembly-descriptor
            Set extraRoleNames = assemblyDescriptor.getSecurityRoleNamesByPrincipal(principalName);
            RunAs runAsIdentity = new RunAsIdentity(roleName, principalName, extraRoleNames);
View Full Code Here


/*     */   }
/*     */
/*     */   private JDBCEntityMetaData loadJDBCEntityMetaData()
/*     */     throws DeploymentException
/*     */   {
/* 721 */     ApplicationMetaData amd = this.container.getBeanMetaData().getApplicationMetaData();
/*     */
/* 724 */     JDBCApplicationMetaData jamd = (JDBCApplicationMetaData)amd.getPluginData("CMP-JDBC");
/*     */
/* 726 */     if (jamd == null)
/*     */     {
/* 730 */       JDBCXmlFileLoader jfl = new JDBCXmlFileLoader(this.container, this.log);
/*     */
/* 732 */       jamd = jfl.load();
/* 733 */       amd.addPluginData("CMP-JDBC", jamd);
/*     */     }
/*     */
/* 737 */     String ejbName = this.container.getBeanMetaData().getEjbName();
/* 738 */     JDBCEntityMetaData metadata = jamd.getBeanByEjbName(ejbName);
/* 739 */     if (metadata == null)
View Full Code Here

/* 113 */       if (stdMetaData != null) {
/* 114 */         unit.addAttachment("standardjboss.xml", stdMetaData);
/*     */       }
/* 116 */       if (jbossMetaData != null)
/*     */       {
/* 119 */         ApplicationMetaData amd = new ApplicationMetaData(jbossMetaData);
/* 120 */         unit.addAttachment(ApplicationMetaData.class, amd);
/*     */
/* 123 */         LoaderRepositoryFactory.LoaderRepositoryConfig loaderRepositoryConfig = createLoaderRepositoryConfig(jbossMetaData);
/* 124 */         if (loaderRepositoryConfig != null)
/* 125 */           unit.addAttachment(LoaderRepositoryFactory.LoaderRepositoryConfig.class.getName(), loaderRepositoryConfig);
View Full Code Here

/*    */
/* 90 */       BeanMetaData bmd = this.container.getBeanMetaData();
/* 91 */       SecurityIdentityMetaData ejbTimeoutIdentity = bmd.isEntity() ? null : bmd.getEjbTimeoutIdentity();
/* 92 */       if ((ejbTimeoutIdentity != null) && (!ejbTimeoutIdentity.getUseCallerIdentity()))
/*    */       {
/* 94 */         ApplicationMetaData applicationMetaData = bmd.getApplicationMetaData();
/* 95 */         AssemblyDescriptorMetaData assemblyDescriptor = applicationMetaData.getAssemblyDescriptor();
/* 96 */         String roleName = ejbTimeoutIdentity.getRunAsRoleName();
/* 97 */         String principalName = ejbTimeoutIdentity.getRunAsPrincipalName();
/*    */
/* 99 */         Set extraRoleNames = assemblyDescriptor.getSecurityRoleNamesByPrincipal(principalName);
/* 100 */         RunAs runAsIdentity = new RunAsIdentity(roleName, principalName, extraRoleNames);
View Full Code Here

/*     */   }
/*     */
/*     */   private JDBCEntityMetaData loadJDBCEntityMetaData()
/*     */     throws DeploymentException
/*     */   {
/* 498 */     ApplicationMetaData amd = this.container.getBeanMetaData().getApplicationMetaData();
/*     */
/* 501 */     JDBCApplicationMetaData jamd = (JDBCApplicationMetaData)amd.getPluginData("CMP-JDBC");
/*     */
/* 503 */     if (jamd == null)
/*     */     {
/* 507 */       JDBCXmlFileLoader jfl = new JDBCXmlFileLoader(this.container, this.log);
/*     */
/* 509 */       jamd = jfl.load();
/* 510 */       amd.addPluginData("CMP-JDBC", jamd);
/*     */     }
/*     */
/* 514 */     String ejbName = this.container.getBeanMetaData().getEjbName();
/* 515 */     JDBCEntityMetaData metadata = jamd.getBeanByEjbName(ejbName);
/* 516 */     if (metadata == null)
View Full Code Here

/* 109 */       this.pm = ec.getPersistenceManager();
/* 110 */       ec.setPersistenceManager(this);
/*     */     }
/*     */
/* 114 */     BeanMetaData bmd = this.container.getBeanMetaData();
/* 115 */     ApplicationMetaData appMetaData = bmd.getApplicationMetaData();
/*     */
/* 119 */     for (Iterator iter = bmd.getResourceReferences(); iter.hasNext(); )
/*     */     {
/* 121 */       ResourceRefMetaData resRefMetaData = (ResourceRefMetaData)iter.next();
/* 122 */       String jndiName = resRefMetaData.getJndiName();
/* 123 */       if (jndiName == null)
/*     */       {
/* 125 */         jndiName = appMetaData.getResourceByName(resRefMetaData.getResourceName());
/*     */       }
/* 127 */       if ((jndiName == null) || (resRefMetaData.isShareable()))
/*     */         continue;
/* 129 */       int i = jndiName.indexOf(':');
/* 130 */       if (jndiName.charAt(i + 1) == '/')
View Full Code Here

/*  907 */     Iterator it = bmd.getInvokerBindings();
/*  908 */     int count = 0;
/*  909 */     while (it.hasNext())
/*      */     {
/*  911 */       String invoker = (String)it.next();
/*  912 */       ApplicationMetaData amd = bmd.getApplicationMetaData();
/*  913 */       InvokerProxyBindingMetaData imd = amd.getInvokerProxyBindingMetaDataByName(invoker);
/*      */
/*  915 */       if (imd == null)
/*      */       {
/*  917 */         String msg = "Failed to find InvokerProxyBindingMetaData for: '" + invoker + "'. Check the invoker-proxy-binding-name to " + "invoker-proxy-binding/name mappings in jboss.xml";
/*      */
View Full Code Here

/*     */   {
/*  60 */     super.setContainer(container);
/*  61 */     if (container != null)
/*     */     {
/*  63 */       BeanMetaData beanMetaData = container.getBeanMetaData();
/*  64 */       ApplicationMetaData applicationMetaData = beanMetaData.getApplicationMetaData();
/*  65 */       AssemblyDescriptorMetaData assemblyDescriptor = applicationMetaData.getAssemblyDescriptor();
/*  66 */       this.securityRoles = assemblyDescriptor.getSecurityRoles();
/*     */
/*  68 */       this.realmMapping = container.getRealmMapping();
/*     */     }
/*     */   }
View Full Code Here

/*     */   {
/*  65 */     super.setContainer(container);
/*  66 */     if (container != null)
/*     */     {
/*  68 */       BeanMetaData beanMetaData = container.getBeanMetaData();
/*  69 */       ApplicationMetaData application = beanMetaData.getApplicationMetaData();
/*  70 */       AssemblyDescriptorMetaData assemblyDescriptor = application.getAssemblyDescriptor();
/*     */
/*  72 */       SecurityIdentityMetaData secMetaData = beanMetaData.getSecurityIdentityMetaData();
/*  73 */       if ((secMetaData != null) && (!secMetaData.getUseCallerIdentity()))
/*     */       {
/*  75 */         String roleName = secMetaData.getRunAsRoleName();
/*  76 */         String principalName = secMetaData.getRunAsPrincipalName();
/*  77 */         if (principalName == null) {
/*  78 */           principalName = application.getUnauthenticatedPrincipal();
/*     */         }
/*  80 */         Set extraRoleNames = assemblyDescriptor.getSecurityRoleNamesByPrincipal(principalName);
/*  81 */         this.runAsIdentity = new RunAsIdentity(roleName, principalName, extraRoleNames);
/*     */       }
/*     */
View Full Code Here

/* 384 */               caller = EnterpriseContext.this.principal;
/*     */             }
/*     */           }
/*     */           else
/*     */           {
/* 389 */             ApplicationMetaData appMetaData = EnterpriseContext.this.con.getBeanMetaData().getApplicationMetaData();
/* 390 */             String name = appMetaData.getUnauthenticatedPrincipal();
/* 391 */             if (name != null) {
/* 392 */               caller = new SimplePrincipal(name);
/*     */             }
/*     */           }
/*     */         }
View Full Code Here

TOP

Related Classes of org.jboss.metadata.ApplicationMetaData

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.