Package org.exoplatform.portal.config.model

Examples of org.exoplatform.portal.config.model.Container


        //
        UIContainer uicontainer = addChild(UIContainer.class, null, null);

        //
        Container container = createContainer(COLUMN_CONTAINER, null);

        //
        PortalDataMapper.toUIContainer(uicontainer, container);

        //
View Full Code Here


        // Get current ui portlet containing this dashboard
        UIPortlet currentUIPortlet = UIPortlet.getCurrentUIPortlet();

        // Get dashboard for merging
        Container dashboard = null;
        if (currentUIPortlet.getStorageId() != null) {
            dashboard = service.loadDashboard(currentUIPortlet.getStorageId());
        }

        //
View Full Code Here

     * @see UIDashboardContainer#toContainer(String)
     */
    public Container createContainer(final String type, final String id) throws Exception {
        for (SelectItemOption<String> item : containerOptions) {
            if (item.getLabel().equals(type)) {
                Container container = toContainer(item.getValue());
                if (id != null) {
                    container.setId(id);
                }
                return container;
            }
        }
        return null;
View Full Code Here

    private void initWorkspaces() throws Exception {
        UIWorkingWorkspace uiWorkingWorkspace = addChild(UIWorkingWorkspace.class, UIPortalApplication.UI_WORKING_WS_ID, null);
        UIComponentDecorator uiViewWS = uiWorkingWorkspace.addChild(UIComponentDecorator.class, null, UI_VIEWING_WS_ID);

        DataStorage dataStorage = getApplicationComponent(DataStorage.class);
        Container container = dataStorage.getSharedLayout();

        uiWorkingWorkspace.addChild(UIEditInlineWorkspace.class, null, UI_EDITTING_WS_ID).setRendered(false);
        if (container != null) {
            org.exoplatform.portal.webui.container.UIContainer uiContainer = createUIComponent(
                    org.exoplatform.portal.webui.container.UIContainer.class, null, null);
            uiContainer.setStorageId(container.getStorageId());
            PortalDataMapper.toUIContainer(uiContainer, container);
            uiContainer.setRendered(true);
            uiViewWS.setUIComponent(uiContainer);
        }
        addChild(UIMaskWorkspace.class, UIPortalApplication.UI_MASK_WS_ID, null);
View Full Code Here

                UITabPane subTabPane = portalComposer.getChild(UITabPane.class);
                UIContainerList uiContainerConfig = subTabPane.getChild(UIContainerList.class);
                if (uiContainerConfig != null && subTabPane.getSelectedTabId().equals(uiContainerConfig.getId())) {
                    org.exoplatform.portal.webui.container.UIContainer uiContainer = uiTarget.createUIComponent(
                            org.exoplatform.portal.webui.container.UIContainer.class, null, null);
                    Container container = uiContainerConfig.getContainer(sourceId);
                    // GTNPORTAL-3118: IBM JDK creates negative hashCodes and drag and drop webui logic expects abs values.
                    container.setId(String.valueOf(Math.abs(container.hashCode())));
                    uiContainer.setStorageId(container.getStorageId());
                    PortalDataMapper.toUIContainer(uiContainer, container);
                    String[] accessPers = uiContainer.getAccessPermissions();
                    for (String accessPer : accessPers) {
                        if (accessPer.equals(""))
                            accessPer = null;
View Full Code Here

        // itemInput.setItemCategories(categories);
    }

    public void setValues(final UIContainer uiContainer) throws Exception {
        uiContainer_ = uiContainer;
        Container container = (Container) PortalDataMapper.buildModelObject(uiContainer);
        getUIStringInput("id").setReadOnly(true);
        invokeGetBindingBean(container);
    }
View Full Code Here

        //
        UIContainer uicontainer = addChild(UIContainer.class, null, null);

        //
        Container container = createContainer(COLUMN_CONTAINER, null);

        //
        PortalDataMapper.toUIContainer(uicontainer, container);

        //
View Full Code Here

        // Get current ui portlet containing this dashboard
        UIPortlet currentUIPortlet = UIPortlet.getCurrentUIPortlet();

        // Get dashboard for merging
        Container dashboard = null;
        if (currentUIPortlet.getStorageId() != null) {
            dashboard = service.loadDashboard(currentUIPortlet.getStorageId());
        }

        //
View Full Code Here

     * @see UIDashboardContainer#toContainer(String)
     */
    public Container createContainer(final String type, final String id) throws Exception {
        for (SelectItemOption<String> item : containerOptions) {
            if (item.getLabel().equals(type)) {
                Container container = toContainer(item.getValue());
                if (id != null) {
                    container.setId(id);
                }
                return container;
            }
        }
        return null;
View Full Code Here

        model.setModifiable(uiPortlet.isModifiable());
        return model;
    }

    private static Container toContainer(UIContainer uiContainer) {
        Container model = new Container(uiContainer.getStorageId());
        toContainer(model, uiContainer);
        return model;
    }
View Full Code Here

TOP

Related Classes of org.exoplatform.portal.config.model.Container

Copyright © 2018 www.massapicom. 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.