Package de.innovationgate.webgate.api

Examples of de.innovationgate.webgate.api.WGPortletDefaultBean


        synchronized (this) {
            // Generate portlet key
            String childPortletKey = generateNewPortletKey(portlet.getApplicationDb());
   
            // Register portlet
            WGPortletDefaultBean portletBean = (WGPortletDefaultBean) portlet;
            insertPortletId(portletBean, childPortletKey);
            _profile.getPortletkeys().add(serializePortlet(portlet));
        }
       
    }
View Full Code Here


        // separate string into components
       
        String key  = (String) regElements.get(0);
        String parentPortletId = (String) regElements.get(1);
        WGPortletDefaultBean portlet = createPortletDefaultBean(key, appDb, parentPortletId);
       
        String db = null;
        String design = (String) regElements.get(2);
       
        int slashPos = design.indexOf("/");
       
        // Extract database if available
        if (slashPos != -1) {
            db = design.substring(0, slashPos);
            design = design.substring(slashPos + 1);
        }
        String title = (String) regElements.get(3);
       
        portlet.setDesignDb(db);
        portlet.setDesign(design);
        portlet.setName(title);
       
        return portlet;
       
       
    }
View Full Code Here

        List<WGPortlet> children = new ArrayList<WGPortlet>();
       
        List regs = _profile.getPortletkeys();
        for (int idx=0; idx < regs.size(); idx++) {
            String reg = (String) regs.get(idx);
            WGPortletDefaultBean portlet = deserializePortlet(reg, parent.getApplicationDb());
           
            if (parent.getKey().equals(portlet.getParentPortletKey())) {
                children.add(portlet);
            }
        }
       
        return children;
View Full Code Here

        List regs = _profile.getPortletkeys();
        boolean oldStylePresent = false;
       
        for (int idx=0; idx < regs.size(); idx++) {
            String reg = (String) regs.get(idx);
            WGPortletDefaultBean portlet = deserializePortlet(reg, "");
            if (!PATTERN_OLD_STYLE_PORTLETKEY.matcher(portlet.getKey()).matches()) {
                String app = portlet.getKey().substring(0, 3);
                apps.add(app);
            }
            else {
                oldStylePresent = true;
            }
View Full Code Here

TOP

Related Classes of de.innovationgate.webgate.api.WGPortletDefaultBean

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.