Package org.apache.pluto.portalImpl.om.page.impl

Examples of org.apache.pluto.portalImpl.om.page.impl.PortalImpl


*/

  public Iterator getPageRegistry() {
    final String METHOD_NAME = "getPageRegistry()";
    List pages = new ArrayList();
    PortalImpl portal;
    try {
      org.apache.pluto.portlet.admin.model.PageRegistryXao xao = new org.apache.pluto.portlet.admin.model.PageRegistryXao();
      portal = xao.load();
    } catch (Exception e) {
      PlutoAdminException pae = new PlutoAdminException(e);
      logError(CLASS_NAME, METHOD_NAME, e);
      throw pae;
    }
    Collection prpages = portal.getFragments();
    Iterator iter = prpages.iterator();
    while (iter.hasNext()) {
          FragmentImpl frag = (FragmentImpl) iter.next();
          //exclude navigation fragment
          if(!frag.getName().equals("navigation")) {
View Full Code Here


        logDebug(METHOD_NAME, "File to load: " + filename);

        Unmarshaller unmarshaller = new Unmarshaller(this.mapping);
        unmarshaller.setMapping(this.mapping);

        PortalImpl pages = (PortalImpl)unmarshaller.unmarshal(new FileReader(filename));
        return pages;
    }
View Full Code Here

    public boolean pageExists(String page) {
      final String METHOD_NAME = "pageExists(page)";
      boolean exists = false;
      Collection frags = null;
      try {
        PortalImpl portal = load();
        frags = portal.getFragments();
      } catch (Exception e) {
        logError(METHOD_NAME, e);
        throw new PlutoAdminException(e);
      }
      Iterator iter = frags.iterator();
View Full Code Here

*/

  public Iterator getPageRegistry() {
    final String METHOD_NAME = "getPageRegistry()";
    List pages = new ArrayList();
    PortalImpl portal;
    try {
      org.apache.pluto.portlet.admin.model.PageRegistryXao xao = new org.apache.pluto.portlet.admin.model.PageRegistryXao();
      portal = xao.load();
    } catch (Exception e) {
      PlutoAdminException pae = new PlutoAdminException(e);
      logError(CLASS_NAME, METHOD_NAME, e);
      throw pae;
    }
    Collection prpages = portal.getFragments();
    Iterator iter = prpages.iterator();
    while (iter.hasNext()) {
          FragmentImpl frag = (FragmentImpl) iter.next();
          //exclude navigation fragment
          if(!frag.getName().equals("navigation")) {
View Full Code Here

        logDebug(METHOD_NAME, "File to load: " + filename);

        Unmarshaller unmarshaller = new Unmarshaller(this.mapping);
        unmarshaller.setMapping(this.mapping);

        PortalImpl pages = (PortalImpl)unmarshaller.unmarshal(new FileReader(filename));
        return pages;
    }
View Full Code Here

    public boolean pageExists(String page) {
      final String METHOD_NAME = "pageExists(page)";
      boolean exists = false;
      Collection frags = null;
      try {
        PortalImpl portal = load();
        frags = portal.getFragments();
      } catch (Exception e) {
        logError(METHOD_NAME, e);
        throw new PlutoAdminException(e);
      }
      Iterator iter = frags.iterator();
View Full Code Here

TOP

Related Classes of org.apache.pluto.portalImpl.om.page.impl.PortalImpl

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.