Author: bdaw
Date: 2008-11-06 18:37:49 -0500 (Thu, 06 Nov 2008)
New Revision: 121
Removed:
trunk/identity-impl/src/test/java/org/jboss/identity/impl/store/ldap/SimpleLDAPIdentityObjectTypeConfiguration.java
trunk/identity-impl/src/test/java/org/jboss/identity/impl/store/ldap/SimpleLDAPIdentityStoreConfiguration.java
Log:
cleanup
Deleted:
trunk/identity-impl/src/test/java/org/jboss/identity/impl/store/ldap/SimpleLDAPIdentityObjectTypeConfiguration.java
===================================================================
---
trunk/identity-impl/src/test/java/org/jboss/identity/impl/store/ldap/SimpleLDAPIdentityObjectTypeConfiguration.java 2008-11-06
23:36:08 UTC (rev 120)
+++
trunk/identity-impl/src/test/java/org/jboss/identity/impl/store/ldap/SimpleLDAPIdentityObjectTypeConfiguration.java 2008-11-06
23:37:49 UTC (rev 121)
@@ -1,186 +0,0 @@
-/*
-* JBoss, a division of Red Hat
-* Copyright 2006, Red Hat Middleware, LLC, and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This 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 (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-
-package org.jboss.identity.impl.store.ldap;
-
-import java.util.Map;
-import java.util.Set;
-import java.util.Collections;
-
-/**
- * @author <a href="mailto:boleslaw.dawidowicz at redhat.com">Boleslaw
Dawidowicz</a>
- * @version : 0.1 $
- */
-public class SimpleLDAPIdentityObjectTypeConfiguration implements
LDAPIdentityObjectTypeConfiguration
-{
- private String idAttributeName;
-
- private String[] ctxDNs;
-
- private String entrySearchFilter;
-
- private boolean allowCreateEntry;
-
- private Map<String, String[]> createEntryAttributeValues;
-
- private String[] allowedMembershipTypes;
-
- private String membershipAttributeName;
-
- private boolean isMembershipAttributeDN;
-
- private boolean allowEmptyMemberships;
-
- private Map<String, String> attributeNames;
-
- public SimpleLDAPIdentityObjectTypeConfiguration()
- {
- }
-
- public SimpleLDAPIdentityObjectTypeConfiguration(String idAttributeName,
- String[] ctxDNs,
- String entrySearchFilter,
- boolean allowCreateEntry,
- Map<String, String[]>
createEntryAttributeValues,
- String[] allowedMembershipTypes,
- String membershipAttributeName,
- boolean membershipAttributeDN,
- boolean allowEmptyMemberships,
- Map<String, String>
attributeNames)
- {
- this.idAttributeName = idAttributeName;
- this.ctxDNs = ctxDNs;
- this.entrySearchFilter = entrySearchFilter;
- this.allowCreateEntry = allowCreateEntry;
- this.createEntryAttributeValues = createEntryAttributeValues;
- this.allowedMembershipTypes = allowedMembershipTypes;
- this.membershipAttributeName = membershipAttributeName;
- isMembershipAttributeDN = membershipAttributeDN;
- this.allowEmptyMemberships = allowEmptyMemberships;
- this.attributeNames = attributeNames;
- }
-
- public String getIdAttributeName()
- {
- return idAttributeName;
- }
-
- public String[] getCtxDNs()
- {
- return ctxDNs;
- }
-
- public String getEntrySearchFilter()
- {
- return entrySearchFilter;
- }
-
- public boolean isAllowCreateEntry()
- {
- return allowCreateEntry;
- }
-
- public Map<String, String[]> getCreateEntryAttributeValues()
- {
- return createEntryAttributeValues;
- }
-
- public String[] getAllowedMembershipTypes()
- {
- return allowedMembershipTypes;
- }
-
- public String getMembershipAttributeName()
- {
- return membershipAttributeName;
- }
-
- public boolean isMembershipAttributeDN()
- {
- return isMembershipAttributeDN;
- }
-
- public boolean allowEmptyMemberships()
- {
- return allowEmptyMemberships;
- }
-
- public String getAttributeMapping(String name)
- {
- return attributeNames.get(name);
- }
-
- public void setIdAttributeName(String idAttributeName)
- {
- this.idAttributeName = idAttributeName;
- }
-
- public void setCtxDNs(String[] ctxDNs)
- {
- this.ctxDNs = ctxDNs;
- }
-
- public void setEntrySearchFilter(String entrySearchFilter)
- {
- this.entrySearchFilter = entrySearchFilter;
- }
-
- public void setAllowCreateEntry(boolean allowCreateEntry)
- {
- this.allowCreateEntry = allowCreateEntry;
- }
-
- public void setCreateEntryAttributeValues(Map<String, String[]>
createEntryAttributeValues)
- {
- this.createEntryAttributeValues = createEntryAttributeValues;
- }
-
- public void setAllowedMembershipTypes(String[] allowedMembershipTypes)
- {
- this.allowedMembershipTypes = allowedMembershipTypes;
- }
-
- public void setMembershipAttributeName(String membershipAttributeName)
- {
- this.membershipAttributeName = membershipAttributeName;
- }
-
- public void setMembershipAttributeDN(boolean membershipAttributeDN)
- {
- isMembershipAttributeDN = membershipAttributeDN;
- }
-
- public void setAllowEmptyMemberships(boolean allowEmptyMemberships)
- {
- this.allowEmptyMemberships = allowEmptyMemberships;
- }
-
- public void setAttributeNames(Map<String, String> attributeNames)
- {
- this.attributeNames = attributeNames;
- }
-
- public Set<String> getMappedAttributesNames()
- {
- return Collections.unmodifiableSet(attributeNames.keySet());
- }
-}
Deleted:
trunk/identity-impl/src/test/java/org/jboss/identity/impl/store/ldap/SimpleLDAPIdentityStoreConfiguration.java
===================================================================
---
trunk/identity-impl/src/test/java/org/jboss/identity/impl/store/ldap/SimpleLDAPIdentityStoreConfiguration.java 2008-11-06
23:36:08 UTC (rev 120)
+++
trunk/identity-impl/src/test/java/org/jboss/identity/impl/store/ldap/SimpleLDAPIdentityStoreConfiguration.java 2008-11-06
23:37:49 UTC (rev 121)
@@ -1,94 +0,0 @@
-/*
-* JBoss, a division of Red Hat
-* Copyright 2006, Red Hat Middleware, LLC, and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This 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 (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-
-package org.jboss.identity.impl.store.ldap;
-
-import org.jboss.identity.spi.model.IdentityObjectType;
-import org.jboss.identity.impl.types.SimpleIdentityObjectType;
-
-import java.util.Map;
-import java.util.Arrays;
-
-/**
- * @author <a href="mailto:boleslaw.dawidowicz at redhat.com">Boleslaw
Dawidowicz</a>
- * @version : 0.1 $
- */
-public class SimpleLDAPIdentityStoreConfiguration implements
LDAPIdentityStoreConfiguration
-{
- private String providerURL;
-
- private String adminDN;
-
- private String adminPassword;
-
- private int searchTimeLimit;
-
- private Map<String, LDAPIdentityObjectTypeConfiguration> typesConfiguration;
-
- public SimpleLDAPIdentityStoreConfiguration(String providerURL, String adminDN, String
adminPassword, int searchTimeLimit, Map<String, LDAPIdentityObjectTypeConfiguration>
typesConfiguration)
- {
- this.providerURL = providerURL;
- this.adminDN = adminDN;
- this.adminPassword = adminPassword;
- this.searchTimeLimit = searchTimeLimit;
- this.typesConfiguration = typesConfiguration;
- }
-
- public String getProviderURL()
- {
- return providerURL;
- }
-
- public String getAdminDN()
- {
- return adminDN;
- }
-
- public String getAdminPassword()
- {
- return adminPassword;
- }
-
- public int getSearchTimeLimit()
- {
- return searchTimeLimit;
- }
-
- public LDAPIdentityObjectTypeConfiguration getTypeConfiguration(String typeName)
- {
- return typesConfiguration.get(typeName);
- }
-
- public IdentityObjectType[] getConfiguredTypes()
- {
- IdentityObjectType[] types = new IdentityObjectType[typesConfiguration.size()];
- Object[] names = typesConfiguration.keySet().toArray();
-
- for (int i = 0; i < names.length; i++)
- {
- String name = names[i].toString();
- types[i] = new SimpleIdentityObjectType(name);
- }
-
- return types;
- }
-}