Package org.jboss.metadata.javaee.spec

Examples of org.jboss.metadata.javaee.spec.RunAsMetaData


/* 609 */         synchronized (this.runAsIdentity)
/*     */         {
/* 611 */           SecurityIdentityMetaData si = ejb.getSecurityIdentity();
/* 612 */           if (si != null)
/*     */           {
/* 614 */             RunAsMetaData runAs = si.getRunAs();
/* 615 */             if (runAs != null)
/*     */             {
/* 617 */               String roleName = runAs.getRoleName();
/* 618 */               identity = new RunAsIdentityMetaData(roleName, null);
/* 619 */               this.runAsIdentity.put(ejbName, identity);
/*     */             }
/*     */           }
/*     */         }
View Full Code Here


/*    */   {
/* 53 */     RunAs annotation = (RunAs)this.finder.getAnnotation(type, RunAs.class);
/* 54 */     if (annotation == null) {
/* 55 */       return;
/*    */     }
/* 57 */     RunAsMetaData runAs = super.create(type);
/* 58 */     SecurityIdentityMetaData identity = metaData.getSecurityIdentity();
/* 59 */     if (identity == null)
/*    */     {
/* 61 */       identity = new SecurityIdentityMetaData();
/* 62 */       metaData.setSecurityIdentity(identity);
View Full Code Here

/*    */   {
/* 49 */     RunAs runAs = (RunAs)this.finder.getAnnotation(element, RunAs.class);
/* 50 */     if (runAs == null) {
/* 51 */       return null;
/*    */     }
/* 53 */     RunAsMetaData metaData = new RunAsMetaData();
/* 54 */     metaData.setRoleName(runAs.value());
/* 55 */     Descriptions descriptions = ProcessorUtils.getDescription("RunAs(" + runAs.value() + ") on class: " + element.getName());
/* 56 */     metaData.setDescriptions(descriptions);
/* 57 */     return metaData;
/*    */   }
View Full Code Here

/*    */   {
/* 53 */     RunAs annotation = (RunAs)this.finder.getAnnotation(type, RunAs.class);
/* 54 */     if (annotation == null) {
/* 55 */       return;
/*    */     }
/* 57 */     RunAsMetaData runAs = super.create(type);
/* 58 */     ServletMetaData servlet = new ServletMetaData();
/* 59 */     servlet.setServletName(type.getSimpleName());
/* 60 */     servlet.setServletClass(type.getName());
/* 61 */     servlet.setRunAs(runAs);
/* 62 */     metaData.add(servlet);
View Full Code Here

/*      */
/*      */   private void addSecurityIdentityAnnotation(EJBContainer container, SecurityIdentityMetaData identity)
/*      */   {
/* 2001 */     if ((identity != null) && (!identity.isUseCallerId()))
/*      */     {
/* 2003 */       RunAsMetaData runAs = identity.getRunAs();
/* 2004 */       RunAsImpl annotation = null;
/* 2005 */       if (runAs != null)
/*      */       {
/* 2007 */         annotation = new RunAsImpl(runAs.getRoleName());
/* 2008 */         addClassAnnotation(container, annotation.annotationType(), annotation);
/*      */       }
/*      */
/* 2012 */       String runAsPrincipal = identity.getRunAsPrincipal();
/* 2013 */       if (runAsPrincipal != null)
View Full Code Here

/*  89 */     return ((org.jboss.metadata.ejb.spec.SecurityIdentityMetaData)getDelegate()).isUseCallerId();
/*     */   }
/*     */
/*     */   public String getRunAsRoleName()
/*     */   {
/*  94 */     RunAsMetaData runAs = ((org.jboss.metadata.ejb.spec.SecurityIdentityMetaData)getDelegate()).getRunAs();
/*  95 */     if (runAs == null)
/*  96 */       return null;
/*  97 */     return runAs.getRoleName();
/*     */   }
View Full Code Here

/*  816 */         ServletMetaData servlet = (ServletMetaData)servlets.get(servletName);
/*  817 */         if (servlet != null)
/*      */         {
/*  820 */           synchronized (this.runAsIdentity)
/*      */           {
/*  822 */             RunAsMetaData runAs = servlet.getRunAs();
/*  823 */             if (runAs != null)
/*      */             {
/*  825 */               String roleName = runAs.getRoleName();
/*  826 */               identity = new RunAsIdentityMetaData(roleName, null);
/*  827 */               this.runAsIdentity.put(servletName, identity);
/*      */             }
/*      */           }
/*      */         }
View Full Code Here

   private void addSecurityIdentityAnnotation(EJBContainer container,
         SecurityIdentityMetaData identity)
   {
      if (identity != null && !identity.isUseCallerId())
      {
         RunAsMetaData runAs = identity.getRunAs();
         RunAsImpl annotation = null;
         if (runAs != null)
         {
            annotation = new RunAsImpl(runAs.getRoleName());
            addClassAnnotation(container, annotation.annotationType(),
                  annotation);
         }
        
         String runAsPrincipal = identity.getRunAsPrincipal();
View Full Code Here

   private void addSecurityIdentityAnnotation(EJBContainer container,
         SecurityIdentityMetaData identity)
   {
      if (identity != null && !identity.isUseCallerId())
      {
         RunAsMetaData runAs = identity.getRunAs();
         RunAsImpl annotation = null;
         if (runAs != null)
         {
            annotation = new RunAsImpl(runAs.getRoleName());
            addClassAnnotation(container, annotation.annotationType(),
                  annotation);
         }
        
         String runAsPrincipal = identity.getRunAsPrincipal();
View Full Code Here

   private void addSecurityIdentityAnnotation(EJBContainer container,
         SecurityIdentityMetaData identity)
   {
      if (identity != null && !identity.isUseCallerId())
      {
         RunAsMetaData runAs = identity.getRunAs();
         RunAsImpl annotation = null;
         if (runAs != null)
         {
            annotation = new RunAsImpl(runAs.getRoleName());
            addClassAnnotation(container, annotation.annotationType(),
                  annotation);
         }
        
         String runAsPrincipal = identity.getRunAsPrincipal();
View Full Code Here

TOP

Related Classes of org.jboss.metadata.javaee.spec.RunAsMetaData

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.