1 package gov.bnl.gums.db; 2 3 import java.text.DateFormat; 4 import java.util.Collection; 5 import java.util.Date; 6 7 import org.apache.log4j.Logger; 8 9 import gov.bnl.gums.persistence.HibernatePersistenceFactory; 10 import gov.bnl.gums.persistence.LDAPPersistenceFactory; 11 12 public class LDAPConfigurationDB implements ConfigurationDB { 13 private Logger log = Logger.getLogger(LDAPUserGroupDB.class); 14 private LDAPPersistenceFactory factory; 15 16 public LDAPConfigurationDB(LDAPPersistenceFactory factory) { 17 this.factory = factory; 18 log.trace("LDAPConfigurationDB object create: factory " + factory); 19 } 20 21 public boolean deleteBackupConfiguration(String name) { 22 throw new RuntimeException("LDAP Configuration DB not yet supported"); 23 } 24 25 public Collection getBackupNames(DateFormat format) { 26 throw new RuntimeException("LDAP Configuration DB not yet supported"); 27 } 28 29 public Date getLastModification() { 30 throw new RuntimeException("LDAP Configuration DB not yet supported"); 31 } 32 33 public boolean isActive() { 34 return false; 35 } 36 37 public String restoreConfiguration(String name) { 38 throw new RuntimeException("LDAP Configuration DB not yet supported"); 39 } 40 41 public String retrieveCurrentConfiguration() { 42 throw new RuntimeException("LDAP Configuration DB not yet supported"); 43 } 44 45 public void setConfiguration(String text, boolean backupCopy, String name, Date date) { 46 throw new RuntimeException("LDAP Configuration DB not yet supported"); 47 } 48 }