From 56e752193bfb90d11cfe73c35a24e576b9b18c87 Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Wed, 03 Jul 2013 11:03:06 +0000
Subject: [PATCH] First stab at having debuggable ACIs.
---
opends/src/server/org/opends/server/authorization/dseecompat/TimeOfDay.java | 29 +++++++++++++++++++++--------
1 files changed, 21 insertions(+), 8 deletions(-)
diff --git a/opends/src/server/org/opends/server/authorization/dseecompat/TimeOfDay.java b/opends/src/server/org/opends/server/authorization/dseecompat/TimeOfDay.java
index 32b67c2..75a9d3b 100644
--- a/opends/src/server/org/opends/server/authorization/dseecompat/TimeOfDay.java
+++ b/opends/src/server/org/opends/server/authorization/dseecompat/TimeOfDay.java
@@ -23,8 +23,8 @@
*
*
* Copyright 2008 Sun Microsystems, Inc.
+ * Portions Copyright 2013 ForgeRock AS
*/
-
package org.opends.server.authorization.dseecompat;
import org.opends.messages.Message;
@@ -37,19 +37,15 @@
*/
public class TimeOfDay implements KeywordBindRule {
- /*
+ /**
* Regular expression matching a valid timeofday rule value (0-2359).
*/
private static final String timeofdayRegex = "[0-2]\\d[0-5]\\d";
- /*
- * Enumeration representing the bind rule operation type.
- */
+ /** Enumeration representing the bind rule operation type. */
private EnumBindRuleType type=null;
- /*
- * Holds the time value parsed from the ACI.
- */
+ /** Holds the time value parsed from the ACI. */
private int timeRef;
/**
@@ -143,4 +139,21 @@
}
return matched.getRet(type, false);
}
+
+ /** {@inheritDoc} */
+ @Override
+ public String toString()
+ {
+ final StringBuilder sb = new StringBuilder();
+ toString(sb);
+ return sb.toString();
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public final void toString(StringBuilder buffer)
+ {
+ buffer.append(super.toString());
+ }
+
}
--
Gitblit v1.10.0