01: /* LdapFixtureOperation.java
02: *
03: * DDSteps - Data Driven JUnit Test Steps
04: * Copyright (C) 2005 Jayway AB
05: * www.ddsteps.org
06: *
07: * This library is free software; you can redistribute it and/or
08: * modify it under the terms of the GNU Lesser General Public
09: * License version 2.1 as published by the Free Software Foundation.
10: *
11: * This library is distributed in the hope that it will be useful,
12: * but WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14: * Lesser General Public License for more details.
15: *
16: * You should have received a copy of the GNU Lesser General Public
17: * License along with this library; if not, visit
18: * http://www.opensource.org/licenses/lgpl-license.php
19: */
20:
21: package org.ddsteps.fixture.ldap.support;
22:
23: import org.ddsteps.dataset.DataRow;
24:
25: import net.sf.ldaptemplate.LdapOperations;
26:
27: /**
28: * Implementors handle a fixture operation on DataRows.
29: *
30: * @author Mattias Arthursson
31: */
32: public interface LdapFixtureOperation {
33:
34: /**
35: * The default setup operation for LDAP Fixtures.
36: */
37: public static final LdapFixtureOperation LDAP_FIXTURE_OPERATION_SET_UP = new SetupLdapFixtureOperation();
38:
39: /**
40: * The default teardown operation for LDAP Fixtures.
41: */
42: public static final LdapFixtureOperation LDAP_FIXTURE_OPERATION_TEAR_DOWN = new TeardownLdapFixtureOperation();
43:
44: /**
45: * The default name for the DN column.
46: */
47: public static final String DEFAULT_DN_COLUMN_NAME = "dn";
48:
49: /**
50: * Handle a single row.
51: *
52: * @param ldapOperations
53: * the LdapOperations instance to use for LDAP communication.
54: * @param dataRow
55: * the DataRow to handle.
56: */
57: public void handleRow(LdapOperations ldapOperations, DataRow dataRow);
58: }
|