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-2009 Sun Microsystems, Inc. 015 * Portions Copyright 2013-2016 ForgeRock AS. 016 */ 017package org.opends.server.core; 018 019import org.forgerock.opendj.ldap.AttributeDescription; 020import org.forgerock.opendj.ldap.ByteString; 021import org.forgerock.opendj.ldap.DN; 022 023/** 024 * This abstract class wraps/decorates a given compare operation. 025 * This class will be extended by sub-classes to enhance the 026 * functionality of the CompareOperationBasis. 027 */ 028public abstract class CompareOperationWrapper extends 029 OperationWrapper<CompareOperation> implements CompareOperation 030{ 031 032 /** 033 * Creates a new compare operation based on the provided compare operation. 034 * 035 * @param compare The compare operation to wrap 036 */ 037 public CompareOperationWrapper(CompareOperation compare) 038 { 039 super(compare); 040 } 041 042 @Override 043 public ByteString getRawEntryDN() 044 { 045 return getOperation().getRawEntryDN(); 046 } 047 048 @Override 049 public void setRawEntryDN(ByteString rawEntryDN) 050 { 051 getOperation().setRawEntryDN(rawEntryDN); 052 } 053 054 @Override 055 public DN getEntryDN() 056 { 057 return getOperation().getEntryDN(); 058 } 059 060 @Override 061 public String getRawAttributeType() 062 { 063 return getOperation().getRawAttributeType(); 064 } 065 066 @Override 067 public void setRawAttributeType(String rawAttributeType) 068 { 069 getOperation().setRawAttributeType(rawAttributeType); 070 } 071 072 @Override 073 public AttributeDescription getAttributeDescription() 074 { 075 return getOperation().getAttributeDescription(); 076 } 077 078 @Override 079 public ByteString getAssertionValue() 080 { 081 return getOperation().getAssertionValue(); 082 } 083 084 @Override 085 public void setAssertionValue(ByteString assertionValue) 086 { 087 getOperation().setAssertionValue(assertionValue); 088 } 089}