Examples of resourceManager()


Examples of ariba.ui.aribaweb.core.AWApplication.resourceManager()

    }

    private static AWMultiLocaleResourceManager resourceManager ()
    {
        AWApplication application = AWConcreteApplication.defaultApplication();
        return application.resourceManager();
    }

    private static void registerComponentAliases ()
    {
        AWTemplateParser templateParser = AWComponent.defaultTemplateParser();
View Full Code Here

Examples of ariba.ui.aribaweb.core.AWApplication.resourceManager()

            // Register the brand directory itself (e.g. brands/simple)
        resourceManager.registerResourceDirectory(directory, urlPrefix);

            // Chain to the default resource manager so non branded resources
            // are found.
        resourceManager.setNextResourceManager(application.resourceManager());
        return resourceManager;
    }
}
View Full Code Here

Examples of ariba.ui.aribaweb.core.AWConcreteApplication.resourceManager()

                AWConcreteApplication application = (AWConcreteApplication)AWConcreteApplication.sharedInstance();
                AWComponentDefinition componentDefinition = application._componentDefinitionForName(name, null);
                if (componentDefinition != null) {
                    pkg = componentDefinition.componentPackageName();
                } else {
                    Class componentClass = application.resourceManager().classForName(name);
                    if (componentClass != null) {
                        Package compPkg = componentClass.getPackage();
                        pkg = (compPkg != null) ? compPkg.getName() : "";
                    }
                }
View Full Code Here

Examples of ariba.ui.aribaweb.core.AWConcreteApplication.resourceManager()

        final AWConcreteApplication application = (AWConcreteApplication)AWConcreteApplication.sharedInstance();
        String css = AWUtil.stringWithContentsOfInputStream(cssResource.inputStream());
        Matcher m = _CssUrlRef.matcher(css);
        while (m.find()) {
            String ref = m.group(1);
            AWResource resource = cssResource.relativeResource(ref , application.resourceManager());
            System.out.printf("     -- CSS %s ref to resource %s (%s)\n", file.getPath(), ref, resource.name());
            noteResource(resource.name(), resource);
        }
    }
View Full Code Here

Examples of ariba.ui.aribaweb.core.AWConcreteApplication.resourceManager()

        createDefaultUsers();
        processAccessAnnotations(_AccessAnnotatedClasses);

        AWConcreteApplication application = (AWConcreteApplication)AWConcreteApplication.SharedInstance;
        Loader loader = new Loader();
        loader.prepareAllLoads(application.resourceManager(), "dataloads/");
        loader.runLoads();
    }

    public static final String RequiredPermissions = "requiredPermissionIds";
View Full Code Here

Examples of ariba.ui.aribaweb.core.AWConcreteApplication.resourceManager()

            // register our resources with the AW
            AWConcreteApplication application = (AWConcreteApplication)AWConcreteServerApplication.sharedInstance();

            String resourceUrl = (String)FieldValue.getFieldValue(application, "resourceUrl");
            AWMultiLocaleResourceManager resourceManager = application.resourceManager();

            // lookups should check for files with extension ".oss"
            resourceManager.registerPackagedResourceExtension(".oss");

            // resourceManager.registerResourceDirectory("./ariba/ui/meta", resourceUrl+"ariba/ui/meta/");
View Full Code Here

Examples of ariba.ui.aribaweb.core.AWConcreteApplication.resourceManager()

            // ariba.ui.meta.core.Log.meta_context.setLevel(ariba.util.log.Log.DebugLevel);

            application.registerDidInitCallback(new AWConcreteApplication.DidInitCallback() {
                public void applicationDidInit (AWConcreteApplication application) {
                    // Default the home page
                    if (application.resourceManager().packageResourceNamed(application.mainPageName()+".awl") == null) {
                        application.setMainPageName(MetaHomePage.class.getName());
                    }

                    if (ActionHandler.resolveHandler(AribaAction.HomeAction) == null) {
                        ActionHandler.setHandler(AribaAction.HomeAction, new ActionHandler() {
View Full Code Here

Examples of ariba.ui.aribaweb.core.AWConcreteApplication.resourceManager()

                (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) {
View Full Code Here

Examples of ariba.ui.aribaweb.core.AWConcreteServerApplication.resourceManager()

            _DidInit = true;
            // register our resources with the AW
            AWConcreteServerApplication application = (AWConcreteServerApplication)AWConcreteServerApplication.sharedInstance();
            String resourceUrl = (String)FieldValue.getFieldValue(application, "resourceUrl");

            application.resourceManager().registerResourceDirectory("./ariba/ui/richtext", resourceUrl+"ariba/ui/richtext/");
            application.resourceManager().registerPackageName("ariba.ui.richtext", true);
        }
    }

}
View Full Code Here

Examples of ariba.ui.aribaweb.core.AWConcreteServerApplication.resourceManager()

            // register our resources with the AW
            AWConcreteServerApplication application = (AWConcreteServerApplication)AWConcreteServerApplication.sharedInstance();
            String resourceUrl = (String)FieldValue.getFieldValue(application, "resourceUrl");

            application.resourceManager().registerResourceDirectory("./ariba/ui/richtext", resourceUrl+"ariba/ui/richtext/");
            application.resourceManager().registerPackageName("ariba.ui.richtext", 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.