Package de.innovationgate.webgate.api

Examples of de.innovationgate.webgate.api.WGPortletRegistry


        TMLUserProfile profile = this.getmaincontext().getprofile();
        if (profile == null) {
            return null;
        }
       
        WGPortletRegistry portletRegistry = profile.getprofile().getPortletRegistry();
        if (portletRegistry == null) {
            return null;
        }
       
    WGPortlet portlet;
        if (nameSpace != null) {
        portlet = portletRegistry.getPortlet(getmaincontext().db().getDbReference(), nameSpace);
    }
    else {
      portlet = portletRegistry.getRootPortlet(getmaincontext().db().getDbReference());
    }

    if (portlet != null) {
        return new TMLPortlet(_designContext.getTag(), profile, portlet);
    }
View Full Code Here


    return null;
  }

  @CodeCompletion
  public Object item(String name) throws WGAPIException {
      WGPortletRegistry registry = this.profile.getprofile().getPortletRegistry();
      if (registry.hasItem(reg, name)) {
          return TMLContext.flattenList(registry.getItemValue(reg, name));
      }
      else {
          return profile.getprofile().getDatabase().getNoItemBehaviour().getForTMLItem();
      }
     
View Full Code Here

       
  }

  @CodeCompletion
  public List itemlist(String name) throws WGAPIException {
      WGPortletRegistry registry = this.profile.getprofile().getPortletRegistry();
      if (registry.hasItem(reg, name)) {
          return TMLContext.toList(registry.getItemValue(reg, name));
      }
      else {
          return profile.getprofile().getDatabase().getNoItemBehaviour().getForTMLItemList();
      }
  }
View Full Code Here

TOP

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

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.