Examples of CarbonUIDefinitions


Examples of org.wso2.carbon.ui.deployment.beans.CarbonUIDefinitions

                                 ArrayList<String> userPermission,
                                 HttpServletRequest request) {
        BundleContext bundleContext = CarbonUIUtil.getBundleContext();
        if (bundleContext != null) {
            ServiceReference reference = bundleContext.getServiceReference(CarbonUIDefinitions.class.getName());
            CarbonUIDefinitions carbonUIDefinitions;
            if (reference != null) {
                carbonUIDefinitions = (CarbonUIDefinitions) bundleContext.getService(reference);
                Menu[] userMenus = carbonUIDefinitions.getMenuDefinitions(loggedInUserName,
                            isSuperTenant, userPermission,request);
                if (userMenus != null) {
                    Set<Menu> menuList = new LinkedHashSet<Menu>();
                    menuList.addAll(Arrays.<Menu>asList(userMenus));
                    Menu[] customMenus =
View Full Code Here

Examples of org.wso2.carbon.ui.deployment.beans.CarbonUIDefinitions

            //Retrieving available contexts
            Context defaultContext = null;
            Context defaultAdditionalContext = null;
            ServiceReference reference = ctxt.getBundleContext().getServiceReference(CarbonUIDefinitions.class.getName());
            CarbonUIDefinitions carbonUIDefinitions = null;
            if (reference != null) {
                carbonUIDefinitions =
                        (CarbonUIDefinitions) ctxt.getBundleContext().getService(reference);
                if (carbonUIDefinitions != null) {
                    if (carbonUIDefinitions.getContexts().containsKey("default-context")) {
                        defaultContext = carbonUIDefinitions.getContexts().get("default-context");
                    }if (carbonUIDefinitions.getContexts().containsKey("default-additional-context")) {
                        defaultAdditionalContext = carbonUIDefinitions.getContexts().get("default-additional-context");
                    }

                }
            }
View Full Code Here

Examples of org.wso2.carbon.ui.deployment.beans.CarbonUIDefinitions

        ConfigurationContext clientConfigContext = getConfigurationContextService().getClientConfigContext();
        //This is applicable only when the FE and BE runs in the same JVM.
        ConfigurationContext serverConfigContext = getConfigurationContextService().getServerConfigContext();

        CarbonUIDefinitions carbonUIDefinitions = new CarbonUIDefinitions();
        context.registerService(CarbonUIDefinitions.class.getName(), carbonUIDefinitions, null);

        // create a CustomUIDefinitions object and set it as a osgi service. UIBundleDeployer can access this
        // service and populate it with custom UI definitions of the deployed UI bundle, if available.
        CustomUIDefenitions customUIDefenitions = new CustomUIDefenitions();
View Full Code Here

Examples of org.wso2.carbon.ui.deployment.beans.CarbonUIDefinitions

    @SuppressWarnings({ "unchecked", "rawtypes" })
    private void populateUrlsToBeBypassed() {
        if (bundle != null && urlsToBeByPassed.isEmpty()) {
            ServiceReference reference = bundle.getBundleContext().getServiceReference(
                    CarbonUIDefinitions.class.getName());
            CarbonUIDefinitions carbonUIDefinitions;
            if (reference != null) {
                carbonUIDefinitions = (CarbonUIDefinitions) bundle.getBundleContext().getService(
                        reference);
                if (carbonUIDefinitions != null) {
                    urlsToBeByPassed = carbonUIDefinitions.getUnauthenticatedUrls();
                }
            }
        }
    }
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.