Package org.auraframework.service

Examples of org.auraframework.service.DefinitionService.save()


        DefinitionService definitionService = Aura.getDefinitionService();
        String descriptors = (String) getAttributes().get("descriptor");
        String[] split = descriptorPattern.split(descriptors);
        for (String descriptor : split) {
            ComponentDef def = builderService.getComponentDefBuilder().setDescriptor(descriptor).build();
            definitionService.save(def);

            if (getBooleanAttribute("client.css")) {
                DefDescriptor<StyleDef> styleDescriptor = definitionService.getDefDescriptor(def.getDescriptor(),
                        "css", StyleDef.class);
                new CreateStyleDefQuickFix(styleDescriptor).fix();
View Full Code Here


        StyleDefBuilder builder = builderService.getStyleDefBuilder();

        builder.setDescriptor(styleDescriptor);
        builder.setClassName(styleDescriptor.getNamespace() + AuraTextUtil.initCap(styleDescriptor.getName()));
        StyleDef styleDef = builder.build();
        definitionService.save(styleDef);
    }

    public static final void doFix(@Key("attributes") Map<String, Object> attributes) throws QuickFixException {
        new CreateComponentDefQuickFix(attributes).fix();
    }
View Full Code Here

        DefinitionService definitionService = Aura.getDefinitionService();
        String descriptors = (String) getAttributes().get("descriptor");
        String[] split = CreateComponentDefQuickFix.descriptorPattern.split(descriptors);
        for (String descriptor : split) {
            ApplicationDef def = builderService.getApplicationDefBuilder().setDescriptor(descriptor).build();
            definitionService.save(def);

            if (getBooleanAttribute("client.css")) {
                DefDescriptor<StyleDef> styleDescriptor = definitionService.getDefDescriptor(def.getDescriptor(),
                        "css", StyleDef.class);
                new CreateStyleDefQuickFix(styleDescriptor).fix();
View Full Code Here

        DefinitionService definitionService = Aura.getDefinitionService();
        String descriptors = (String) getAttributes().get("descriptor");
        String[] split = CreateComponentDefQuickFix.descriptorPattern.split(descriptors);
        for (String descriptor : split) {
            ThemeDef def = builderService.getThemeDefBuilder().setDescriptor(descriptor).build();
            definitionService.save(def);
            resetCache(def.getDescriptor());
        }
    }

}
View Full Code Here

        // Build component where the new attribute is created
        BuilderService builderService = Aura.getBuilderService();
        DefinitionService definitionService = Aura.getDefinitionService();
        ComponentDef def = builderService.getComponentDefBuilder().setDescriptor(defDescriptor).build();
        definitionService.save(def);
    }

    @Override
    public void tearDown() throws Exception {
        util.deleteFiles(defDescriptor);
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.