Package ariba.ui.aribaweb.util

Examples of ariba.ui.aribaweb.util.AWResource.relativePath()


                                        if (componentClass == null) {
                                            componentClass = DefaultComponentClass;
                                        }
                                        if (AWComponent.ClassObject.isAssignableFrom(componentClass)) {
                                            componentDefinition = createComponentDefinitionForNameAndClass(componentName, componentClass);
                                            componentDefinition.setTemplateName(resource.relativePath());
                                            _componentDefinitionHashtable.put(componentName.intern(), componentDefinition);
                                        }
                                        else {
                                            throw new AWGenericException(getClass().getName() + ": invalid class specified for Classless component: " + componentClass.getName());
                                        }
View Full Code Here


        Map alreadyParsedTemplates = MapUtil.map();
        List allResources = resourceManager().allResources();

        for (int index = 0, length = allResources.size(); index < length; index++) {
            AWResource resource = (AWResource)allResources.get(index);
            String relativePath = resource.relativePath();
            if (relativePath == null) {
                logWarning("**** Skipping malformed resource: " + resource);
            }
            else if (!relativePath.equals(alreadyParsedTemplates.get(relativePath))) {
                alreadyParsedTemplates.put(relativePath, relativePath);
View Full Code Here

        Map alreadyParsedTemplates = MapUtil.map();
        List allResources = resourceManager().allResources();

        for (int index = 0, length = allResources.size(); index < length; index++) {
            AWResource resource = (AWResource)allResources.get(index);
            String relativePath = resource.relativePath();
            if (relativePath != null) {
                if (!relativePath.equals(alreadyParsedTemplates.get(relativePath))) {
                    alreadyParsedTemplates.put(relativePath, relativePath);
                    if (relativePath.endsWith("AXEtd.awl")) {
                        continue;
View Full Code Here

    }

    public static String resourceRelative (String baseResourcePath, String relativePath, AWRequestContext requestContext)
    {
        AWResource resource = lookupRelativeResource(baseResourcePath, relativePath, requestContext);
        return resource != null ? resource.relativePath().replace('\\', '/') : null;
    }

    public static String moduleForResource (String resourcePath, UIMeta.UIContext context)
    {
        List<UIMeta.ModuleProperties> modules = MetaNavTabBar.getState(context.requestContext().session()).moduleInfo().modules;
View Full Code Here

                        List<String> l = line;
                        Currency currency = new Currency(l.get(0), l.get(3), l.get(4), Integer.parseInt(l.get(6)));
                        _Currencies.put(currency.getCode(), currency);
                    }
                });
                reader.readForSpecifiedEncoding(in, resource.relativePath(), "UTF-8");
            }
            catch (IOException e) {
                throw new AWGenericException(e);
            }
            finally {
View Full Code Here

    {
        AWResourceManager resourceManager = AWConcreteServerApplication.sharedInstance().resourceManager();
        AWResource resource = resourceManager.packageResourceNamed(filename);
        Assert.that(!required || resource != null, "Rule file not found in resource search path: %s", filename);
        if (resource != null) {
            beginRuleSet(rank, resource.relativePath());
            _loadRuleFile(resource);
            return true;
        }
        return false;
    }
View Full Code Here

        if (!_loadedNames.contains(name)) {
            _loadedNames.add(name);
            AWResourceManager resourceManager = AWConcreteServerApplication.sharedInstance().resourceManager();
            AWResource resource = resourceManager.resourceNamed(name);
            if (resource != null) {
                beginRuleSet(resource.relativePath());
                _loadRuleFile(resource);
            }
        }
    }
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.