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 * Portions Copyright 2013-2014 ForgeRock AS.
015 */
016package org.opends.server.core;
017
018import org.forgerock.opendj.ldap.ByteString;
019
020/**
021 * This abstract class wraps/decorates a given extended operation. This class
022 * will be extended by sub-classes to enhance the functionality of the
023 * ExtendedOperationBasis.
024 */
025public abstract class ExtendedOperationWrapper extends
026    OperationWrapper<ExtendedOperation> implements ExtendedOperation
027{
028
029  /**
030   * Creates a new extended operation wrapper based on the provided extended
031   * operation.
032   *
033   * @param extended
034   *          The extended operation to wrap
035   */
036  public ExtendedOperationWrapper(ExtendedOperation extended)
037  {
038    super(extended);
039  }
040
041  /** {@inheritDoc} */
042  @Override
043  public String getRequestOID()
044  {
045    return getOperation().getRequestOID();
046  }
047
048  /** {@inheritDoc} */
049  @Override
050  public String getResponseOID()
051  {
052    return getOperation().getResponseOID();
053  }
054
055  /** {@inheritDoc} */
056  @Override
057  public ByteString getRequestValue()
058  {
059    return getOperation().getRequestValue();
060  }
061
062  /** {@inheritDoc} */
063  @Override
064  public ByteString getResponseValue()
065  {
066    return getOperation().getResponseValue();
067  }
068
069  /** {@inheritDoc} */
070  @Override
071  public void setResponseOID(String responseOID)
072  {
073    getOperation().setResponseOID(responseOID);
074  }
075
076  /** {@inheritDoc} */
077  @Override
078  public void setResponseValue(ByteString responseValue)
079  {
080    getOperation().setResponseValue(responseValue);
081  }
082
083}