1 13 14 package org.ejbca.ui.web.admin.cainterface; 15 16 17 import java.util.HashMap ; 18 19 import org.ejbca.core.ejb.ca.store.ICertificateStoreSessionLocal; 20 import org.ejbca.core.model.log.Admin; 21 22 27 public class CertificateProfileNameProxy implements java.io.Serializable { 28 29 30 public CertificateProfileNameProxy(Admin administrator, ICertificateStoreSessionLocal certificatestoresession){ 31 this.certificatestoresession = certificatestoresession; 32 33 certificateprofilenamestore = new HashMap (); 34 this.admin= administrator; 35 36 } 37 38 44 public String getCertificateProfileName(int certificateprofileid) { 45 String returnval = null; 46 returnval = (String ) certificateprofilenamestore.get(new Integer (certificateprofileid)); 48 49 if(returnval==null){ 50 returnval = certificatestoresession.getCertificateProfileName(admin, certificateprofileid); 52 if(returnval != null) 53 certificateprofilenamestore.put(new Integer (certificateprofileid),returnval); 54 } 55 56 return returnval; 57 } 58 59 private HashMap certificateprofilenamestore; 61 private ICertificateStoreSessionLocal certificatestoresession; 62 private Admin admin; 63 64 } 65 | Popular Tags |