1 13 14 19 20 package org.ejbca.ui.web.admin.rainterface; 21 import java.util.HashMap ; 22 23 import org.ejbca.core.ejb.ra.raadmin.IRaAdminSessionLocal; 24 import org.ejbca.core.model.log.Admin; 25 26 32 public class EndEntityProfileNameProxy implements java.io.Serializable { 33 34 35 public EndEntityProfileNameProxy(Admin administrator, IRaAdminSessionLocal raadminsession){ 36 this.raadminsession = raadminsession; 38 39 profilenamestore = new HashMap (); 40 this.administrator = administrator; 41 } 42 43 49 public String getEndEntityProfileName(int profileid) { 50 String returnval = null; 51 returnval = (String ) profilenamestore.get(new Integer (profileid)); 53 54 if(returnval==null){ 55 returnval = raadminsession.getEndEntityProfileName(administrator, profileid); 57 if(returnval != null) 58 profilenamestore.put(new Integer (profileid),returnval); 59 } 60 61 return returnval; 62 } 63 64 private HashMap profilenamestore; 66 private IRaAdminSessionLocal raadminsession; 67 private Admin administrator; 68 69 } 70 | Popular Tags |