Examples of DataStorage


Examples of org.exoplatform.portal.config.DataStorage

            tmp.clearUIPage(pageRef);
        }
    }

    public void refreshCachedUI() throws Exception {
        DataStorage storage = this.getApplicationComponent(DataStorage.class);
        all_UIPortals.clear();

        UIPortal uiPortal = getCurrentSite();
        if (uiPortal != null) {
            SiteKey siteKey = uiPortal.getSiteKey();

            UIPortal tmp = null;
            PortalConfig portalConfig = storage.getPortalConfig(siteKey.getTypeName(), siteKey.getName());
            if (portalConfig != null) {
                tmp = this.createUIComponent(UIPortal.class, null, null);
                PortalDataMapper.toUIPortal(tmp, portalConfig);
                this.putCachedUIPortal(tmp);
                tmp.setNavPath(uiPortal.getNavPath());
View Full Code Here

Examples of org.exoplatform.portal.config.DataStorage

@ComponentConfig(template = "system:/groovy/portal/webui/application/UIStandaloneGadget.gtmpl", events = { @EventConfig(listeners = UIStandaloneGadget.SaveUserPrefActionListener.class) })
public class UIStandaloneGadget extends UIGadget {

    @Override
    public boolean isLossData() {
        DataStorage ds = getApplicationComponent(DataStorage.class);
        try {
            ds.getId(getState());
        } catch (Exception e) {
            return true;
        }
        return super.isLossData();
    }
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.