Package org.auraframework.system

Examples of org.auraframework.system.MasterDefRegistry.assertAccess()


                throw new InvalidDefinitionException(String.format("Event %s cannot extend %s", getDescriptor(),
                        getExtendsDescriptor()), getLocation());
            }
           
            MasterDefRegistry registry = Aura.getDefinitionService().getDefRegistry();
            registry.assertAccess(descriptor, extended);

            // need to resolve duplicated attributes from supers
        }
       
        for (AttributeDef att : this.attributeDefs.values()) {
View Full Code Here


       
        AuraContext context = Aura.getContextService().getCurrentContext();
        DefDescriptor<?> referencingDesc = context.getCurrentCallingDescriptor();
      if (referencingDesc != null) {
          MasterDefRegistry registry = Aura.getDefinitionService().getDefRegistry();
        registry.assertAccess(referencingDesc, getComponentDef());
      }

        validateAttributesValues(referencingDesc);

        // validateMissingAttributes();
View Full Code Here

                if (registeredEvent == null) {
                    throw new AttributeNotFoundException(rootDef.getDescriptor(), attributeDefDesc.getName(),
                            getLocation());
                }
               
              registry.assertAccess(referencingDesc, registeredEvent);
            } else {
              if (referencingDesc != null) {
                // Validate that the referencing component has access to the attribute
                registry.assertAccess(referencingDesc, attributeDef);
              }
View Full Code Here

               
              registry.assertAccess(referencingDesc, registeredEvent);
            } else {
              if (referencingDesc != null) {
                // Validate that the referencing component has access to the attribute
                registry.assertAccess(referencingDesc, attributeDef);
              }
             
                // so it was an attribute, make sure to parse it
                entry.getValue().parseValue(attributeDef.getTypeDef());
            }
View Full Code Here

    }

    public static void assertAccess(Definition def) throws QuickFixException {
        DefinitionService definitionService = Aura.getDefinitionService();
        MasterDefRegistry registry = definitionService.getDefRegistry();
        registry.assertAccess(getReferencingDescriptor(), def);
    }

    public static boolean isRunningInPrivilegedNamespace() {
        String ns = Aura.getConfigAdapter().getDefaultNamespace();
        return ns != null ? Aura.getConfigAdapter().isPrivilegedNamespace(ns) : true;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.