ICustomUserDataSource.java :  » Authentication-Authorization » ejbca » org » ejbca » core » model » ra » userdatasource » Java Open Source

Java Open Source » Authentication Authorization » ejbca 
ejbca » org » ejbca » core » model » ra » userdatasource » ICustomUserDataSource.java
/*************************************************************************
 *                                                                       *
 *  EJBCA: The OpenSource Certificate Authority                          *
 *                                                                       *
 *  This software is free software; you can redistribute it and/or       *
 *  modify it under the terms of the GNU Lesser General Public           *
 *  License as published by the Free Software Foundation; either         *
 *  version 2.1 of the License, or any later version.                    *
 *                                                                       *
 *  See terms of license at gnu.org.                                     *
 *                                                                       *
 *************************************************************************/
 
package org.ejbca.core.model.ra.userdatasource;

import java.util.Collection;
import java.util.Properties;

import org.ejbca.core.model.log.Admin;





/**
 * Interface contating methods that need to be implementet in order 
 * to have a custom user data source. All Custom user data sources must implement this interface.
 * 
 * @version $Id: ICustomUserDataSource.java,v 1.2 2007/04/13 06:16:51 herrvendil Exp $
 */

public interface ICustomUserDataSource {
  
  /**
   *  Method called to all newly created IUserDataSource to set it up with
   *  saved configuration.
   */
  public abstract void init(Properties properties);
  
  /**
   * @see org.ejbca.core.model.ra.userdatasource.BaseUserDataSource#fetch(Admin, String)
   */   
  public Collection fetch(Admin admin, String searchstring) throws UserDataSourceException;
  
  /**
   * @see org.ejbca.core.model.ra.userdatasource.BaseUserDataSource#removeUserData(Admin, String, boolean)
   */   
  public boolean removeUserData(Admin admin, String searchstring, boolean removeMultipleMatch) throws MultipleMatchException, UserDataSourceException;
  
  
  /**
   * @see org.ejbca.core.model.ra.userdatasource.BaseUserDataSource
   */    
  public abstract void testConnection(Admin admin) throws UserDataSourceConnectionException;
  

}

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.