Return-Path: Delivered-To: apmail-directory-commits-archive@www.apache.org Received: (qmail 91448 invoked from network); 10 Jun 2009 16:53:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 10 Jun 2009 16:53:04 -0000 Received: (qmail 40693 invoked by uid 500); 10 Jun 2009 16:53:16 -0000 Delivered-To: apmail-directory-commits-archive@directory.apache.org Received: (qmail 40630 invoked by uid 500); 10 Jun 2009 16:53:15 -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 40620 invoked by uid 99); 10 Jun 2009 16:53:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Jun 2009 16:53:15 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.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; Wed, 10 Jun 2009 16:53:11 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 86EFD23888CB; Wed, 10 Jun 2009 16:52:50 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r783421 - in /directory/shared/trunk/client-api/src/main/java/org/apache/directory/shared/ldap/client/api: listeners/DeleteListener.java messages/DeleteRequest.java messages/DeleteResponse.java Date: Wed, 10 Jun 2009 16:52:50 -0000 To: commits@directory.apache.org From: kayyagari@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090610165250.86EFD23888CB@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: kayyagari Date: Wed Jun 10 16:52:50 2009 New Revision: 783421 URL: http://svn.apache.org/viewvc?rev=783421&view=rev Log: support classes for delete operation Added: directory/shared/trunk/client-api/src/main/java/org/apache/directory/shared/ldap/client/api/listeners/DeleteListener.java directory/shared/trunk/client-api/src/main/java/org/apache/directory/shared/ldap/client/api/messages/DeleteRequest.java directory/shared/trunk/client-api/src/main/java/org/apache/directory/shared/ldap/client/api/messages/DeleteResponse.java Added: directory/shared/trunk/client-api/src/main/java/org/apache/directory/shared/ldap/client/api/listeners/DeleteListener.java URL: http://svn.apache.org/viewvc/directory/shared/trunk/client-api/src/main/java/org/apache/directory/shared/ldap/client/api/listeners/DeleteListener.java?rev=783421&view=auto ============================================================================== --- directory/shared/trunk/client-api/src/main/java/org/apache/directory/shared/ldap/client/api/listeners/DeleteListener.java (added) +++ directory/shared/trunk/client-api/src/main/java/org/apache/directory/shared/ldap/client/api/listeners/DeleteListener.java Wed Jun 10 16:52:50 2009 @@ -0,0 +1,43 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + * + */ + +package org.apache.directory.shared.ldap.client.api.listeners; + +import org.apache.directory.shared.ldap.client.api.LdapConnection; +import org.apache.directory.shared.ldap.client.api.exception.LdapException; +import org.apache.directory.shared.ldap.client.api.messages.DeleteResponse; + +/** + * interface used for invoking the callback after completing the delete operation. + * + * @author Apache Directory Project + * @version $Rev$, $Date$ + */ +public interface DeleteListener extends OperationResponseListener +{ + /** + * callback method called after completing the delete operation. + * + * @param connection the LdapConnection + * @param response the delete operation's response + * @throws LdapException + */ + public void entryDeleted( LdapConnection connection, DeleteResponse response ) throws LdapException; +} Added: directory/shared/trunk/client-api/src/main/java/org/apache/directory/shared/ldap/client/api/messages/DeleteRequest.java URL: http://svn.apache.org/viewvc/directory/shared/trunk/client-api/src/main/java/org/apache/directory/shared/ldap/client/api/messages/DeleteRequest.java?rev=783421&view=auto ============================================================================== --- directory/shared/trunk/client-api/src/main/java/org/apache/directory/shared/ldap/client/api/messages/DeleteRequest.java (added) +++ directory/shared/trunk/client-api/src/main/java/org/apache/directory/shared/ldap/client/api/messages/DeleteRequest.java Wed Jun 10 16:52:50 2009 @@ -0,0 +1,65 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + * + */ + +package org.apache.directory.shared.ldap.client.api.messages; + + +import org.apache.directory.shared.ldap.name.LdapDN; + + +/** + * Class for representing the client's delete operation request. + * + * @author Apache Directory Project + * @version $Rev$, $Date$ + */ +public class DeleteRequest extends AbstractRequest +{ + /** the DN to be deleted */ + private LdapDN targetDn; + + /** flag to tell whether to delete all the children under the target DN */ + private boolean deleteChildren; + + + public DeleteRequest( LdapDN targetDn ) + { + super(); + this.targetDn = targetDn; + } + + + public boolean isDeleteChildren() + { + return deleteChildren; + } + + + public void setDeleteChildren( boolean deleteChildren ) + { + this.deleteChildren = deleteChildren; + } + + + public LdapDN getTargetDn() + { + return targetDn; + } +} Added: directory/shared/trunk/client-api/src/main/java/org/apache/directory/shared/ldap/client/api/messages/DeleteResponse.java URL: http://svn.apache.org/viewvc/directory/shared/trunk/client-api/src/main/java/org/apache/directory/shared/ldap/client/api/messages/DeleteResponse.java?rev=783421&view=auto ============================================================================== --- directory/shared/trunk/client-api/src/main/java/org/apache/directory/shared/ldap/client/api/messages/DeleteResponse.java (added) +++ directory/shared/trunk/client-api/src/main/java/org/apache/directory/shared/ldap/client/api/messages/DeleteResponse.java Wed Jun 10 16:52:50 2009 @@ -0,0 +1,35 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + * + */ + +package org.apache.directory.shared.ldap.client.api.messages; + +/** + * Client side response for delete operation + * + * @author Apache Directory Project + * @version $Rev$, $Date$ + */ +public class DeleteResponse extends AbstractResponseWithResult +{ + public DeleteResponse() + { + super(); + } +}