From 8b3cd28204e15e0a98ce038b355f100cd7c44e3c Mon Sep 17 00:00:00 2001
From: Nicolas Capponi <capponi.nicolas@gmail.com>
Date: Thu, 28 Jan 2016 08:28:20 +0000
Subject: [PATCH] OPENDJ-1632 (PR-201) Migrate AttributeType in one shot
---
opendj-server-legacy/src/main/java/org/opends/server/controls/GetEffectiveRightsRequestControl.java | 14 ++++----------
1 files changed, 4 insertions(+), 10 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/controls/GetEffectiveRightsRequestControl.java b/opendj-server-legacy/src/main/java/org/opends/server/controls/GetEffectiveRightsRequestControl.java
index ac06618..84fc255 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/controls/GetEffectiveRightsRequestControl.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/controls/GetEffectiveRightsRequestControl.java
@@ -22,7 +22,7 @@
*
*
* Copyright 2009 Sun Microsystems, Inc.
- * Portions Copyright 2014-2015 ForgeRock AS
+ * Portions Copyright 2014-2016 ForgeRock AS
*/
package org.opends.server.controls;
@@ -37,8 +37,8 @@
import org.forgerock.opendj.io.ASN1Writer;
import org.forgerock.opendj.ldap.ByteString;
import org.forgerock.opendj.ldap.ResultCode;
+import org.forgerock.opendj.ldap.schema.AttributeType;
import org.opends.server.core.DirectoryServer;
-import org.opends.server.types.AttributeType;
import org.opends.server.types.Control;
import org.opends.server.types.DN;
import org.opends.server.types.DirectoryException;
@@ -82,7 +82,7 @@
private static final class Decoder
implements ControlDecoder<GetEffectiveRightsRequestControl>
{
- /** {@inheritDoc} */
+ @Override
public GetEffectiveRightsRequestControl decode(boolean isCritical,
ByteString value) throws DirectoryException
{
@@ -138,6 +138,7 @@
}
}
+ @Override
public String getOID()
{
return OID_GET_EFFECTIVE_RIGHTS;
@@ -212,13 +213,6 @@
this.rawAttrs=attrs;
}
- /**
- * Writes this control's value to an ASN.1 writer. The value (if any) must be
- * written as an ASN1OctetString.
- *
- * @param writer The ASN.1 output stream to write to.
- * @throws IOException If a problem occurs while writing to the stream.
- */
@Override
public void writeValue(ASN1Writer writer) throws IOException {
writer.writeStartSequence(ASN1.UNIVERSAL_OCTET_STRING_TYPE);
--
Gitblit v1.10.0