Return-Path: X-Original-To: apmail-directory-commits-archive@www.apache.org Delivered-To: apmail-directory-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2B2AD17E37 for ; Wed, 29 Oct 2014 16:10:26 +0000 (UTC) Received: (qmail 4477 invoked by uid 500); 29 Oct 2014 16:10:26 -0000 Delivered-To: apmail-directory-commits-archive@directory.apache.org Received: (qmail 4419 invoked by uid 500); 29 Oct 2014 16:10:26 -0000 Mailing-List: contact commits-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@directory.apache.org Delivered-To: mailing list commits@directory.apache.org Received: (qmail 4405 invoked by uid 99); 29 Oct 2014 16:10:26 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Oct 2014 16:10:26 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id C4642A00E03; Wed, 29 Oct 2014 16:10:25 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: elecharny@apache.org To: commits@directory.apache.org Date: Wed, 29 Oct 2014 16:10:26 -0000 Message-Id: <2ded43a4958b407abaff4656ced6edef@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [2/6] git commit: o Added a toString method o Added some javadoc o Added a toString method o Added some javadoc Project: http://git-wip-us.apache.org/repos/asf/directory-fortress-core/repo Commit: http://git-wip-us.apache.org/repos/asf/directory-fortress-core/commit/10a597b4 Tree: http://git-wip-us.apache.org/repos/asf/directory-fortress-core/tree/10a597b4 Diff: http://git-wip-us.apache.org/repos/asf/directory-fortress-core/diff/10a597b4 Branch: refs/heads/master Commit: 10a597b4aef84ab32c1ec4034be0e11c66481362 Parents: 0de1fce Author: Emmanuel Lécharny Authored: Wed Oct 29 10:59:21 2014 +0100 Committer: Emmanuel Lécharny Committed: Wed Oct 29 10:59:21 2014 +0100 ---------------------------------------------------------------------- .../directory/fortress/core/rbac/Context.java | 25 +++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/directory-fortress-core/blob/10a597b4/src/main/java/org/apache/directory/fortress/core/rbac/Context.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/directory/fortress/core/rbac/Context.java b/src/main/java/org/apache/directory/fortress/core/rbac/Context.java index e7a646d..e36b8e7 100644 --- a/src/main/java/org/apache/directory/fortress/core/rbac/Context.java +++ b/src/main/java/org/apache/directory/fortress/core/rbac/Context.java @@ -21,14 +21,18 @@ package org.apache.directory.fortress.core.rbac; /** - * This class contains the Context id which is used as container for segregating data by customer within the LDAP Directory Information Tree. + * This class contains the Context id which is used as container for segregating data by customer + * within the LDAP Directory Information Tree. *

* * @author Shawn McKinney */ public class Context { + /** The context ID */ private String name; + + /** The content description */ private String description; @@ -50,6 +54,7 @@ public class Context public Context() { } + /** * Get the id to use for sub-directory within the DIT. This attribute is required. @@ -60,6 +65,7 @@ public class Context { return name; } + /** * Set the id to use for sub-directory within the DIT. This attribute is required. @@ -70,6 +76,7 @@ public class Context { this.name = name; } + /** * Get the description for the context. This value is not required or constrained @@ -81,6 +88,7 @@ public class Context { return description; } + /** * Set the description for the context. This value is not required or constrained @@ -92,4 +100,19 @@ public class Context { this.description = description; } + + + /** + * @see Object#toString() + */ + public String toString() + { + StringBuilder sb = new StringBuilder(); + + sb.append( "Context object: \n" ); + sb.append( " name :" ).append( name ).append( '\n' ); + sb.append( " description :" ).append( description ).append( '\n' ); + + return sb.toString(); + } }