001/*
002 * The contents of this file are subject to the terms of the Common Development and
003 * Distribution License (the License). You may not use this file except in compliance with the
004 * License.
005 *
006 * You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the
007 * specific language governing permission and limitations under the License.
008 *
009 * When distributing Covered Software, include this CDDL Header Notice in each file and include
010 * the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL
011 * Header, with the fields enclosed by brackets [] replaced by your own identifying
012 * information: "Portions Copyright [year] [name of copyright owner]".
013 *
014 * Copyright 2008 Sun Microsystems, Inc.
015 * Portions Copyright 2013-2016 ForgeRock AS.
016 */
017package org.opends.server.core;
018
019import org.forgerock.opendj.ldap.ByteString;
020import org.forgerock.opendj.ldap.DN;
021
022/**
023 * This abstract class wraps/decorates a given delete operation.
024 * This class will be extended by sub-classes to enhance the
025 * functionality of the DeleteOperationBasis.
026 */
027public abstract class DeleteOperationWrapper extends
028    OperationWrapper<DeleteOperation> implements DeleteOperation
029{
030  /**
031   * Creates a new delete operation based on the provided delete operation.
032   *
033   * @param delete The delete operation to wrap
034   */
035  public DeleteOperationWrapper(DeleteOperation delete)
036  {
037    super(delete);
038  }
039
040  @Override
041  public DN getEntryDN()
042  {
043    return getOperation().getEntryDN();
044  }
045
046  @Override
047  public ByteString getRawEntryDN()
048  {
049    return getOperation().getRawEntryDN();
050  }
051
052  @Override
053  public void setRawEntryDN(ByteString rawEntryDN)
054  {
055    getOperation().setRawEntryDN(rawEntryDN);
056  }
057
058  @Override
059  public String toString()
060  {
061    return getOperation().toString();
062  }
063}