All Downloads are FREE. Search and download functionalities are using the official Maven repository.

it.cnr.contab.doccont00.bp.CaricaFileCassiereBP Maven / Gradle / Ivy

/*
 * Copyright (C) 2019  Consiglio Nazionale delle Ricerche
 *
 *     This program is free software: you can redistribute it and/or modify
 *     it under the terms of the GNU Affero General Public License as
 *     published by the Free Software Foundation, either version 3 of the
 *     License, or (at your option) any later version.
 *
 *     This program is distributed in the hope that it will be useful,
 *     but WITHOUT ANY WARRANTY; without even the implied warranty of
 *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *     GNU Affero General Public License for more details.
 *
 *     You should have received a copy of the GNU Affero General Public License
 *     along with this program.  If not, see .
 */

package it.cnr.contab.doccont00.bp;

import it.cnr.contab.doccont00.intcass.bulk.Ext_cassiere00_logsBulk;
import it.cnr.contab.doccont00.intcass.bulk.V_ext_cassiere00Bulk;
import it.cnr.jada.action.ActionContext;
import it.cnr.jada.action.BusinessProcessException;
import it.cnr.jada.action.Config;
import it.cnr.jada.util.jsp.Button;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * Insert the type's description here.
 * Creation date: (10/04/2003 12.00.24)
 *
 * @author: Gennaro Borriello
 */
public class CaricaFileCassiereBP extends it.cnr.jada.util.action.SelezionatoreListaBP {

    public static final String CARICA = "C";
    public static final String PROCESSA = "P";
    private final LogsController logs = new LogsController("Logs", Ext_cassiere00_logsBulk.class, "logs", this);
    private String azione;


    /**
     * CaricaFileCassiereBP constructor comment.
     */
    public CaricaFileCassiereBP() {
        super();
        setBulkInfo(it.cnr.jada.bulk.BulkInfo.getBulkInfo(V_ext_cassiere00Bulk.class));

    }

    /**
     * CaricaFileCassiereBP constructor comment.
     *
     * @param function java.lang.String
     */
    public CaricaFileCassiereBP(String function) {
        super(function);
        setBulkInfo(it.cnr.jada.bulk.BulkInfo.getBulkInfo(V_ext_cassiere00Bulk.class));
    }

    /**
     * Crea la {@link it.cnr.contab.doccont00.ejb.DistintaCassiereComponentSession } da usare per effettuare operazioni.
     * Si è resa necessaria la sua implementazione, poichè il BP è un BulkBP piuttosto
     * che un SimpleCRUDBP.
     *
     * @return DistintaCassiereComponentSession
     **/
    public it.cnr.contab.doccont00.ejb.DistintaCassiereComponentSession createComponentSession() throws javax.ejb.EJBException, java.rmi.RemoteException, BusinessProcessException {

        return (it.cnr.contab.doccont00.ejb.DistintaCassiereComponentSession) createComponentSession("CNRDOCCONT00_EJB_DistintaCassiereComponentSession", it.cnr.contab.doccont00.ejb.DistintaCassiereComponentSession.class);
    }

    /**
     * Reimplementato per disegnare, insieme agli altri pulsanti, il pulsante per processare
     * il File selezionato. Aggiunto anche il pulsante per la visualizzazione dei dettagli,
     * ed il pulsante per filtrare i file visualizzati.
     */
    public it.cnr.jada.util.jsp.Button[] createNavigatorToolbar() {
        List




© 2015 - 2025 Weber Informatics LLC | Privacy Policy