directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1694153 - /directory/studio/trunk/plugins/openldap.acl.editor/src/main/java/org/apache/directory/studio/openldap/config/acl/model/AclWhatClauseAttributes.java
Date Wed, 05 Aug 2015 09:29:46 GMT
Author: elecharny
Date: Wed Aug  5 09:29:46 2015
New Revision: 1694153

URL: http://svn.apache.org/r1694153
Log:
o Added some new header
o Copy the List when returing it

Modified:
    directory/studio/trunk/plugins/openldap.acl.editor/src/main/java/org/apache/directory/studio/openldap/config/acl/model/AclWhatClauseAttributes.java

Modified: directory/studio/trunk/plugins/openldap.acl.editor/src/main/java/org/apache/directory/studio/openldap/config/acl/model/AclWhatClauseAttributes.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/openldap.acl.editor/src/main/java/org/apache/directory/studio/openldap/config/acl/model/AclWhatClauseAttributes.java?rev=1694153&r1=1694152&r2=1694153&view=diff
==============================================================================
--- directory/studio/trunk/plugins/openldap.acl.editor/src/main/java/org/apache/directory/studio/openldap/config/acl/model/AclWhatClauseAttributes.java
(original)
+++ directory/studio/trunk/plugins/openldap.acl.editor/src/main/java/org/apache/directory/studio/openldap/config/acl/model/AclWhatClauseAttributes.java
Wed Aug  5 09:29:46 2015
@@ -25,7 +25,18 @@ import java.util.Collection;
 import java.util.List;
 
 /**
- * The Acl what-attrs clause. 
+ * The Acl what-attrs clause.
+ * 
+ * <pre>
+ * attrs ::= attrlist val-e
+ * attrlist ::= attr attr-e
+ * attr-e ::= ',' attr attr-e
+ * attr :: attributeType | '!' objectClass | '@' objectClass | 'entry' | 'children'
+ * val-e ::= 'val' matchingRule style '=' attrval | e
+ * matchingRule ::= '/matchingRule' | e
+ * style ::= 'exact' | 'base' | 'baseobject' | 'regex' | 'one' | 'onelevel' | 'sub' | 'subtree'
| 'children'
+ * attrval ::= STRING 
+ * </pre>
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
 public class AclWhatClauseAttributes
@@ -41,7 +52,11 @@ public class AclWhatClauseAttributes
      */
     public List<String> getAttributes()
     {
-        return attributes;
+        List<String> copyAttributes = new ArrayList<String>( attributes.size()
);
+        
+        copyAttributes.addAll( attributes );
+        
+        return copyAttributes;
     }
 
 



Mime
View raw message