001/* 002 * CDDL HEADER START 003 * 004 * The contents of this file are subject to the terms of the 005 * Common Development and Distribution License, Version 1.0 only 006 * (the "License"). You may not use this file except in compliance 007 * with the License. 008 * 009 * You can obtain a copy of the license at legal-notices/CDDLv1_0.txt 010 * or http://forgerock.org/license/CDDLv1.0.html. 011 * See the License for the specific language governing permissions 012 * and limitations under the License. 013 * 014 * When distributing Covered Code, include this CDDL HEADER in each 015 * file and include the License file at legal-notices/CDDLv1_0.txt. 016 * If applicable, add the following below this CDDL HEADER, with the 017 * fields enclosed by brackets "[]" replaced with your own identifying 018 * information: 019 * Portions Copyright [yyyy] [name of copyright owner] 020 * 021 * CDDL HEADER END 022 * 023 * 024 * Copyright 2006-2008 Sun Microsystems, Inc. 025 * Portions Copyright 2014-2015 ForgeRock AS 026 */ 027package org.opends.server.types.operation; 028 029 030 031import org.forgerock.opendj.ldap.ByteString; 032 033 034/** 035 * This class defines a set of methods that are available for use by 036 * pre-operation plugins for extended operations. Note that this 037 * interface is intended only to define an API for use by plugins and 038 * is not intended to be implemented by any custom classes. 039 */ 040@org.opends.server.types.PublicAPI( 041 stability=org.opends.server.types.StabilityLevel.UNCOMMITTED, 042 mayInstantiate=false, 043 mayExtend=false, 044 mayInvoke=true) 045public interface PreOperationExtendedOperation 046 extends PreOperationOperation 047{ 048 /** 049 * Retrieves the OID for the request associated with this extended 050 * operation. 051 * 052 * @return The OID for the request associated with this extended 053 * operation. 054 */ 055 String getRequestOID(); 056 057 058 059 /** 060 * Retrieves the value for the request associated with this extended 061 * operation. 062 * 063 * @return The value for the request associated with this extended 064 * operation. 065 */ 066 ByteString getRequestValue(); 067 068 069 070 /** 071 * Specifies the OID to include in the response to the client. 072 * 073 * @param responseOID The OID to include in the response to the 074 * client. 075 */ 076 void setResponseOID(String responseOID); 077 078 079 080 /** 081 * Specifies the value to include in the response to the client. 082 * 083 * @param responseValue The value to include in the response to 084 * the client. 085 */ 086 void setResponseValue(ByteString responseValue); 087} 088