it.cnr.contab.anagraf00.bp.CRUDAnagraficaStrutturaCNRBP 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.anagraf00.bp;
/**
* Insert the type's description here.
* Creation date: (23/07/2001 10:33:18)
* @author: CNRADM
*/
public class CRUDAnagraficaStrutturaCNRBP extends CRUDAnagraficaBP {
/**
* CRUDAnagraficaStrutturaCNRBP constructor comment.
* @param function java.lang.String
* @exception it.cnr.jada.action.BusinessProcessException The exception description.
*/
public CRUDAnagraficaStrutturaCNRBP(String function) throws it.cnr.jada.action.BusinessProcessException {
super(function);
}
public it.cnr.jada.bulk.OggettoBulk createNewBulk(it.cnr.jada.action.ActionContext context) throws it.cnr.jada.action.BusinessProcessException {
it.cnr.contab.anagraf00.core.bulk.AnagraficoBulk anagrafico = (it.cnr.contab.anagraf00.core.bulk.AnagraficoBulk)super.createNewBulk(context);
anagrafico.setTi_entita_persona_struttura(anagrafico.ENTITA_STRUTTURA);
anagrafico.setTi_entita(anagrafico.STRUT_CNR);
return anagrafico;
}
protected void init(it.cnr.jada.action.Config config,it.cnr.jada.action.ActionContext context) throws it.cnr.jada.action.BusinessProcessException {
super.init(config,context);
try {
edit(context,
((it.cnr.contab.anagraf00.ejb.AnagraficoComponentSession)createComponentSession()
).getAnagraficoEnte(context.getUserContext())
);
} catch(Throwable e) {
}
}
public boolean isDeleteButtonEnabled() {
return false;
}
public boolean isDeleteButtonHidden() {
return true;
}
public boolean isNewButtonEnabled() {
return false;
}
public boolean isNewButtonHidden() {
return true;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy