Package org.nextime.ion.framework.business

Examples of org.nextime.ion.framework.business.Publication


        String style = request.getParameter("style");
       
        try {
          Mapping.begin();
         
          Publication publication = Publication.getInstance(id);
          TypePublication type = publication.getType();
          // list only XSL styles (not XSL-FO)
          Vector styleNames = type.listStyles();
          Vector styles = new Vector();
          for( int i=0; i<styleNames.size(); i++ ) {
            String n = styleNames.get(i).toString();
View Full Code Here


        String id = request.getParameter("id");       
       
        try {
          Mapping.begin();
         
          Publication publication = Publication.getInstance(id);
          request.setAttribute("history", publication.getWorkflow().getHistorySteps());
          request.setAttribute("current", publication.getWorkflow().getCurrentSteps());
         
          Mapping.rollback();
        } catch( Exception e ) {
          Mapping.rollback();
          throw new ServletException(e);
View Full Code Here

   * @see org.nextime.ion.framework.event.WcmListener#objectCreated(WcmEvent)
   */
  public void objectCreated(WcmEvent event) {
    Object o = event.getSource();
    if( o instanceof Publication ) {
      Publication p = (Publication)o;
      Vector v = p.listSections();
      for( int i=0; i<v.size(); i++ ) {
        Section s = (Section)v.get(i);
        new File(cachePath,"section$"+s.getId()+".html").delete();
      }
      new File(cachePath,"publication$"+p.getId()+".html").delete();
    }
    if( o instanceof Section ) {
      cleanCache();
    }
  }
View Full Code Here

   * @see org.nextime.ion.framework.event.WcmListener#objectDeleted(WcmEvent)
   */
  public void objectDeleted(WcmEvent event) {
    Object o = event.getSource();
    if( o instanceof Publication ) {
      Publication p = (Publication)o;
      Vector v = p.listSections();
      for( int i=0; i<v.size(); i++ ) {
        Section s = (Section)v.get(i);
        new File(cachePath,"section$"+s.getId()+".html").delete();
      }
      new File(cachePath,"publication$"+p.getId()+".html").delete();
    }
    if( o instanceof Section ) {
      cleanCache();
    }
  }
View Full Code Here

   * @see org.nextime.ion.framework.event.WcmListener#objectModified(WcmEvent)
   */
  public void objectModified(WcmEvent event) {
    Object o = event.getSource();
    if( o instanceof Publication ) {
      Publication p = (Publication)o;
      Vector v = p.listSections();
      for( int i=0; i<v.size(); i++ ) {
        Section s = (Section)v.get(i);
        new File(cachePath,"section$"+s.getId()+".html").delete();
      }
      new File(cachePath,"publication$"+p.getId()+".html").delete();
    }
    if( o instanceof Section ) {
      cleanCache();
    }
  }
View Full Code Here

TOP

Related Classes of org.nextime.ion.framework.business.Publication

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.