Return-Path: Delivered-To: apmail-directory-commits-archive@www.apache.org Received: (qmail 79571 invoked from network); 3 Apr 2011 23:09:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 3 Apr 2011 23:09:59 -0000 Received: (qmail 51037 invoked by uid 500); 3 Apr 2011 23:09:59 -0000 Delivered-To: apmail-directory-commits-archive@directory.apache.org Received: (qmail 51005 invoked by uid 500); 3 Apr 2011 23:09:59 -0000 Mailing-List: contact commits-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@directory.apache.org Delivered-To: mailing list commits@directory.apache.org Received: (qmail 50998 invoked by uid 99); 3 Apr 2011 23:09:59 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 03 Apr 2011 23:09:59 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 03 Apr 2011 23:09:56 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id C1D6023888BD; Sun, 3 Apr 2011 23:09:34 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1088434 - in /directory: apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/entry/ shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/entry/ Date: Sun, 03 Apr 2011 23:09:34 -0000 To: commits@directory.apache.org From: elecharny@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110403230934.C1D6023888BD@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: elecharny Date: Sun Apr 3 23:09:34 2011 New Revision: 1088434 URL: http://svn.apache.org/viewvc?rev=1088434&view=rev Log: Removed useless methods Modified: directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/entry/ClonedServerEntry.java directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/entry/DefaultEntry.java directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/entry/Entry.java directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/entry/ImmutableEntry.java Modified: directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/entry/ClonedServerEntry.java URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/entry/ClonedServerEntry.java?rev=1088434&r1=1088433&r2=1088434&view=diff ============================================================================== --- directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/entry/ClonedServerEntry.java (original) +++ directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/entry/ClonedServerEntry.java Sun Apr 3 23:09:34 2011 @@ -169,24 +169,6 @@ public class ClonedServerEntry implement } - public boolean isValid() - { - return clonedEntry.isValid(); - } - - - public boolean isValid( String objectClass ) - { - return clonedEntry.isValid( objectClass ); - } - - - public boolean isValid( Attribute objectClass ) - { - return clonedEntry.isValid( objectClass ); - } - - public Attribute put( AttributeType attributeType, byte[]... values ) throws LdapException { return clonedEntry.put( attributeType, values ); Modified: directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/entry/DefaultEntry.java URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/entry/DefaultEntry.java?rev=1088434&r1=1088433&r2=1088434&view=diff ============================================================================== --- directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/entry/DefaultEntry.java (original) +++ directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/entry/DefaultEntry.java Sun Apr 3 23:09:34 2011 @@ -39,7 +39,6 @@ import org.apache.directory.shared.ldap. import org.apache.directory.shared.ldap.model.schema.AttributeType; import org.apache.directory.shared.ldap.model.schema.SchemaManager; import org.apache.directory.shared.util.Strings; -import org.apache.directory.shared.util.exception.NotImplementedException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -2460,36 +2459,6 @@ public final class DefaultEntry implemen /** - * {@inheritDoc} - */ - public boolean isValid() - { - // @TODO Implement me ! - throw new NotImplementedException(); - } - - - /** - * {@inheritDoc} - */ - public boolean isValid( Attribute objectClass ) - { - // @TODO Implement me ! - throw new NotImplementedException(); - } - - - /** - * {@inheritDoc} - */ - public boolean isValid( String objectClass ) - { - // @TODO Implement me ! - throw new NotImplementedException(); - } - - - /** * Returns the number of attributes. * * @return the number of attributes Modified: directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/entry/Entry.java URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/entry/Entry.java?rev=1088434&r1=1088433&r2=1088434&view=diff ============================================================================== --- directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/entry/Entry.java (original) +++ directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/entry/Entry.java Sun Apr 3 23:09:34 2011 @@ -168,42 +168,6 @@ public interface Entry extends Cloneable /** - * Fail fast check performed to determine entry consistency according to schema - * characteristics. - * - * @return true if the entry, it's attributes and their values are consistent - * with the schema - */ - boolean isValid(); - - - /** - * Check performed to determine entry consistency according to the schema - * requirements of a particular objectClass. The entry must be of that objectClass - * to return true: meaning if the entry's objectClass attribute does not contain - * the objectClass argument, then false should be returned. - * - * @param objectClass the objectClass to use while checking for validity - * @return true if the entry, it's attributes and their values are consistent - * with the objectClass - */ - boolean isValid( String objectClass ); - - - /** - * Check performed to determine entry consistency according to the schema - * requirements of a particular objectClass. The entry must be of that objectClass - * to return true: meaning if the entry's objectClass attribute does not contain - * the objectClass argument, then false should be returned. - * - * @param objectClass the objectClass to use while checking for validity - * @return true if the entry, it's attributes and their values are consistent - * with the objectClass - */ - boolean isValid( Attribute objectClass ); - - - /** * Returns an enumeration containing the zero or more attributes in the * collection. The behavior of the enumeration is not specified if the * attribute collection is changed. Modified: directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/entry/ImmutableEntry.java URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/entry/ImmutableEntry.java?rev=1088434&r1=1088433&r2=1088434&view=diff ============================================================================== --- directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/entry/ImmutableEntry.java (original) +++ directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/entry/ImmutableEntry.java Sun Apr 3 23:09:34 2011 @@ -607,36 +607,6 @@ public class ImmutableEntry implements E /** - * {@inheritDoc} - */ - public boolean isValid() - { - new Exception().printStackTrace(); - throw new NotImplementedException(); - } - - - /** - * {@inheritDoc} - */ - public boolean isValid( Attribute objectClass ) - { - new Exception().printStackTrace(); - throw new NotImplementedException(); - } - - - /** - * {@inheritDoc} - */ - public boolean isValid( String objectClass ) - { - new Exception().printStackTrace(); - throw new NotImplementedException(); - } - - - /** * Returns the number of attributes. * * @return the number of attributes