Examples of DefType


Examples of org.auraframework.def.DefDescriptor.DefType

        AuraContext context = Aura.getContextService().getCurrentContext();
        BaseComponent<?, ?> component = context.getCurrentComponent();

        String desc = (String) component.getAttributes().getValue("descriptor");

        DefType defType = DefType.valueOf(((String) component.getAttributes().getValue("defType")).toUpperCase());
        DefinitionService definitionService = Aura.getDefinitionService();
    DefDescriptor<?> descriptor = definitionService.getDefDescriptor(desc, defType.getPrimaryInterface());

        Definition def = descriptor.getDef();
    ReferenceTreeModel.assertAccess(def);
   
        Map<DefType, List<DefModel>> depsMap = Maps.newEnumMap(DefType.class);

        Set<DefDescriptor<?>> deps = Sets.newHashSet();

        def.appendDependencies(deps);

        for (DefDescriptor<?> dep : deps) {
            DefType type = dep.getDefType();

            List<DefModel> depsList = depsMap.get(type);
            if (depsList == null) {
                depsList = Lists.newArrayList();
                depsMap.put(type, depsList);
View Full Code Here

Examples of org.auraframework.def.DefDescriptor.DefType

        AuraContext context = Aura.getContextService().getCurrentContext();
        BaseComponent<?, ?> component = context.getCurrentComponent();

        String desc = (String) component.getAttributes().getValue("descriptor");

        DefType defType = DefType.valueOf(((String) component.getAttributes().getValue("defType")).toUpperCase());
        DefinitionService definitionService = Aura.getDefinitionService();
        descriptor = definitionService.getDefDescriptor(desc, defType.getPrimaryInterface());
        definition = descriptor.getDef();

        ReferenceTreeModel.assertAccess(definition);

        String type = null;
View Full Code Here

Examples of org.auraframework.def.DefDescriptor.DefType

        if (name != null && !name.isEmpty()) {
            Set<DefDescriptor<?>> descriptors = definitionService.find(new DescriptorFilter("markup://" + name, DefType.DOCUMENTATION.name()));
            if (descriptors.size() > 0) {
                for (DefDescriptor<?> descriptor : descriptors) {

                    DefType type = descriptor.getDefType();
                    switch (type) {
                    case DOCUMENTATION:
                        Map<String, String> m;
                       
                        try {
View Full Code Here

Examples of org.auraframework.def.DefDescriptor.DefType

        AuraContext context = Aura.getContextService().getCurrentContext();
        BaseComponent<?, ?> component = context.getCurrentComponent();

        String desc = (String) component.getAttributes().getValue("descriptor");

        DefType defType = DefType.valueOf(((String) component.getAttributes().getValue("defType")).toUpperCase());
        DefDescriptor<? extends RootDefinition> descriptor = (DefDescriptor<? extends RootDefinition>) Aura
                .getDefinitionService().getDefDescriptor(desc, defType.getPrimaryInterface());

        Definition def = descriptor.getDef();

        defs.add(new DefModel(descriptor));
View Full Code Here

Examples of org.auraframework.def.DefDescriptor.DefType

                }
            }
        }

        private String getUrl() {
            DefType defType = caseDef.getDefType();
            String baseUrl = suite.getUrl(defType);
            Set<Entry<String, Object>> attributes = caseDef.getAttributeValues().entrySet();
            if (attributes.isEmpty()) {
                return baseUrl;
            } else {
View Full Code Here

Examples of org.auraframework.def.DefDescriptor.DefType

        AuraContext context = Aura.getContextService().getCurrentContext();
        BaseComponent<?, ?> component = context.getCurrentComponent();

        String desc = (String) component.getAttributes().getValue("descriptor");

        DefType defType = DefType.valueOf(((String) component.getAttributes().getValue("defType")).toUpperCase());
        DefDescriptor<?> descriptor = Aura.getDefinitionService().getDefDescriptor(desc, defType.getPrimaryInterface());

        Definition def = descriptor.getDef();
        ReferenceTreeModel.assertAccess(def);

        Map<DefType, List<DefModel>> depsMap = Maps.newEnumMap(DefType.class);

        Set<DefDescriptor<?>> deps = Sets.newHashSet();

        def.appendDependencies(deps);

        for (DefDescriptor<?> dep : deps) {
          if (ReferenceTreeModel.hasAccess(dep.getDef())) {
              DefType type = dep.getDefType();
 
              List<DefModel> depsList = depsMap.get(type);
              if (depsList == null) {
                  depsList = Lists.newArrayList();
                  depsMap.put(type, depsList);
View Full Code Here

Examples of org.auraframework.def.DefDescriptor.DefType

        } else if (topic != null) {
            return getTopic(topic);
        } else {
            Preconditions.checkNotNull(descriptor);
            Preconditions.checkNotNull(defType);
            DefType dt = DefType.valueOf(defType.toUpperCase());
            attributes.put("descriptor", descriptor);
            attributes.put("defType", dt.name());
            return Aura.getInstanceService().getInstance("auradocs:def", ComponentDef.class, attributes);
        }
    }
View Full Code Here

Examples of org.auraframework.def.DefDescriptor.DefType

                String key = entry.getKey();
                int posn = key.indexOf("@");
                if (posn > 0) {
                    String typeStr = key.substring(0, posn);
                    String defStr = key.substring(posn + 1);
                    DefType type = null;
                    try {
                        type = DefType.valueOf(typeStr);
                    } catch (Throwable t) {
                        // ignore unknown types...
                        // We really should log these at a level where we can
                        // see them, but, well, we don't have that now.
                    }
                    if (type != null) {
                        DefDescriptor<?> ld = null;

                        ld = definitionService.getDefDescriptor(defStr, type.getPrimaryInterface());
                        clientLoaded.put(ld, uid);
                    }
                }
            }
        }
View Full Code Here

Examples of org.auraframework.def.DefDescriptor.DefType

    @Override
    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        DefinitionService definitionService;
        AuraContext context;
        String tagName;
        DefType defType;

        //
        // Initial setup. This should never fail.
        //
        try {
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.