psdi.plusc.webclient.beans.plusctmplt

Class PlusCGenerateNewAssetsBean

  • All Implemented Interfaces:
    java.util.EventListener, javax.servlet.http.HttpSessionBindingListener, DataBeanListener


    public class PlusCGenerateNewAssetsBean
    extends DataBean
    Bean class for the Generate New Assets dialog
    • Constructor Detail

      • PlusCGenerateNewAssetsBean

        public PlusCGenerateNewAssetsBean()
    • Method Detail

      • initialize

        protected void initialize()
                           throws MXException,
                                  java.rmi.RemoteException
        Description copied from class: DataBean
        Typically called after the DataBean gets a new MboSetRemote On the MboSetRemote it sets the app, the app defaults, user defaults If the remote is an instanceof NonPersistentMboSetRemote then setup is called on it and sets the current row to 0. If the DataBean isn't bound to a table then initialize fetches the first mbo (sets the current row to 0). If this method is overridden under most case you will want to call super.initalize at the end of the the new initialize method.
        Overrides:
        initialize in class DataBean
        Throws:
        MXException
        java.rmi.RemoteException
      • GENERATEASSETSPREVIEW

        public int GENERATEASSETSPREVIEW()
                                  throws java.rmi.RemoteException,
                                         MXException
        Event to preview the assets that will be generated from the template
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
      • execute

        public int execute()
                    throws MXException,
                           java.rmi.RemoteException
        Generate the assets from the records of PLUSCPreviewGenAssetSet mboSet and apply the template on each asset
        Overrides:
        execute in class DataBean
        Returns:
        Throws:
        java.rmi.RemoteException
        MXException
      • CLEARFIELDS

        public int CLEARFIELDS()
                        throws java.rmi.RemoteException,
                               MXException
        Event to clear the fields of the DefaultAssetData mbo
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
      • setupBean

        public void setupBean(WebClientSession wcs)
        Description copied from class: DataBean
        This method must be call after the bean is instantiated. It tells the bean what it's clientSession is , the control that created the bean and the event that caused the creation of the bean. Also gets the values the orderyby, whereclause, apprestrictions, rowsperpage, and parentdatasrc properties from the control (the one that instantiated the bean) if any are set. Plus it gets the list of bound controls from the presentations control handler.
        Overrides:
        setupBean in class DataBean