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  /**
032   * Creates a new delete operation based on the provided delete operation.
033   *
034   * @param delete The delete operation to wrap
035   */
036  public DeleteOperationWrapper(DeleteOperation delete)
037  {
038    super(delete);
039  }
040
041  /** {@inheritDoc} */
042  @Override
043  public DN getEntryDN()
044  {
045    return getOperation().getEntryDN();
046  }
047
048  /** {@inheritDoc} */
049  @Override
050  public ByteString getRawEntryDN()
051  {
052    return getOperation().getRawEntryDN();
053  }
054
055  /** {@inheritDoc} */
056  @Override
057  public void setRawEntryDN(ByteString rawEntryDN)
058  {
059    getOperation().setRawEntryDN(rawEntryDN);
060  }
061
062  /** {@inheritDoc} */
063  @Override
064  public String toString()
065  {
066    return getOperation().toString();
067  }
068
069}