Examples of AWResourceManager


Examples of ariba.ui.aribaweb.util.AWResourceManager

    }

    protected AWSingleLocaleResourceManager resourceManager ()
    {
        if (_resourceManager == null) {
            AWResourceManager resourceManager = null;
            HttpSession existingHttpSession = (_requestContext != null) ? _requestContext.existingHttpSession() : null;
            if (existingHttpSession != null) {
                resourceManager = AWSession.session(existingHttpSession).resourceManager();
            }
            else {
View Full Code Here

Examples of ariba.ui.aribaweb.util.AWResourceManager

    }

    public AWCharacterEncoding characterEncoding ()
    {
        if (_characterEncoding == null) {
            AWResourceManager resourceManager = resourceManager();
            _characterEncoding = (resourceManager != null) ? resourceManager.characterEncoding() : AWCharacterEncoding.Default;
        }
        return _characterEncoding;
    }
View Full Code Here

Examples of ariba.ui.aribaweb.util.AWResourceManager

        URL url = ResourceLocator.urlForRelativePath(path, parentComponent);
        if (url != null) {
            return dataSourceForURL(url);
        }

        AWResourceManager resourceManager = parentComponent.resourceManager();
        AWResource resource = resourceManager.resourceNamed(path);
        if (resource instanceof AWFileResource) {
            String filePath = ((AWFileResource)resource)._fullPath();
            File file = new File(filePath);
            return dataSourceForFile(file);
        }
View Full Code Here

Examples of ariba.ui.aribaweb.util.AWResourceManager

        }
    }

    public boolean loadRuleFile (String filename, boolean required, int rank)
    {
        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;
View Full Code Here

Examples of ariba.ui.aribaweb.util.AWResourceManager

    public void loadRuleFromResourceNamed (String name)
    {
        if (!name.endsWith(".oss")) name += ".oss";
        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

Examples of ariba.ui.aribaweb.util.AWResourceManager

    {
        private AWResourceManagerDictionary _localizedStringsHashtable = new AWResourceManagerDictionary();

        AWResourceManager resourceManager (Context context)
        {
            AWResourceManager resourceManager = null;
            if (context instanceof UIContext) {
                resourceManager = ((UIContext)context).resourceManager();
            }
            return (resourceManager != null) ? resourceManager
                    : AWConcreteApplication.SharedInstance.resourceManager(Locale.US);
View Full Code Here

Examples of ariba.ui.aribaweb.util.AWResourceManager

        return resource;
    }

    protected AWResource safeTemplateResource ()
    {
        AWResourceManager resourceManager = resourceManager();
        AWResource resource = resourceManager.resourceNamed(shortTemplateName());

        if (resource == null) {
            String templateName = templateName();
            int awlIndex = templateName.lastIndexOf(ComponentTemplateFileExtension);
            if (awlIndex != -1) {
                templateName = templateName.substring(0, awlIndex);
                templateName = StringUtil.strcat(templateName, ".htm");
            }
            resource = resourceManager.resourceNamed(templateName);
        }
        return resource;
    }
View Full Code Here

Examples of ariba.ui.aribaweb.util.AWResourceManager

                (AWConcreteApplication)requestContext.application();
        if (application.allowBrandingImages()) {
            AWBrand brand =
                    application.getBrand(requestContext);
            if (brand != null) {
                AWResourceManager rm = application.resourceManager();
                String brandVersion = brand.getSessionVersion(requestContext);
                rm = rm.resolveBrand(brand.getName(), brandVersion);
                boolean isProductImageBranded =
                    isImageBranded("cmdbar_prod.gif", ProductImageCRC, rm, requestContext, brandVersion);
                if (isProductImageBranded) {
                    boolean isBannerImageBranded =
                        isImageBranded("cmdbar_banner.gif", BannerImageCRC, rm, requestContext, brandVersion);
                    if (!isBannerImageBranded) {
                        return rm.imageInfoForName("cmdbar_prod.gif");
                    }
                }
            }
        }
        return null;
View Full Code Here

Examples of ariba.ui.aribaweb.util.AWResourceManager

    }

    private static void setupSystemImagesCRC ()
    {
        if (ProductImageCRC == 0) {
            AWResourceManager rm = AWConcreteApplication.SharedInstance.resourceManager();
            AWResource resource = rm.resourceNamed("cmdbar_prod.gif");
            ProductImageCRC = imageCRC(resource);
            resource = rm.resourceNamed("cmdbar_banner.gif");
            BannerImageCRC = imageCRC(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.