You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2014/10/29 17:10:26 UTC

[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 <el...@symas.com>
Authored: Wed Oct 29 10:59:21 2014 +0100
Committer: Emmanuel Lécharny <el...@symas.com>
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.
  * <p/>
  *
  * @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();
+    }
 }