Examples of WGPortlet


Examples of de.innovationgate.webgate.api.WGPortlet

    @CodeCompletion
    public List getchildrennames() throws WGAPIException {
        Iterator<WGPortlet> childRegs = profile.getprofile().getPortletRegistry().getChildPortlets(reg).iterator();
        List childKeys = new ArrayList();
        while (childRegs.hasNext()) {
            WGPortlet reg = (WGPortlet) childRegs.next();
            childKeys.add(reg.getName());
        }
        return childKeys;
}
View Full Code Here

Examples of de.innovationgate.webgate.api.WGPortlet

    public List getdescendantnames() throws WGAPIException {
        Iterator childRegs = getChildRegistrations(reg, true).iterator();
        List childKeys = new ArrayList();
        while (childRegs.hasNext()) {
            WGPortlet reg = (WGPortlet) childRegs.next();
            childKeys.add(reg.getName());
        }
        return childKeys;
    }
View Full Code Here

Examples of de.innovationgate.webgate.api.WGPortlet


  // register portlet and update Hashmap
  public String registerportlet(String tmlDb, String tmlCode, String title) throws WGAPIException {

    WGPortlet newPortlet = profile.getprofile().getPortletRegistry().createPortlet(tag.tmlContext.getmaincontext().db().getDbReference(), reg);
    newPortlet.setDesignDb(tmlDb);
    newPortlet.setDesign(tmlCode);
    newPortlet.setName(title);
    profile.getprofile().getPortletRegistry().insertPortlet(newPortlet);
   

    TMLPortlet newTMLPortlet = new TMLPortlet(tag, profile, newPortlet);
   
      // Fetch portlet session context (so the following init event will not be overridden)
    newTMLPortlet.getSessionContext();
       
        // Add portlet init event
        PortletEvent event = new PortletEvent("init");
        event.setSource(newPortlet.getKey());
        event.setSourceName(title);
        event.setTargetPortletKey(newPortlet.getKey());
        addEventToQueue(event, tag.tmlContext.gethttpsession());       
       
    return newPortlet.getKey();
  }
View Full Code Here

Examples of de.innovationgate.webgate.api.WGPortlet

    List<WGPortlet> childRegs = new ArrayList<WGPortlet>();

    Iterator<WGPortlet> iter = profile.getprofile().getPortletRegistry().getChildPortlets(parent).iterator();

    while (iter.hasNext()) {
      WGPortlet child = (WGPortlet) iter.next();
      childRegs.add(child);
            if (descendants) {
                childRegs.addAll(getChildRegistrations(child, 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.