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 2009/11/22 10:49:04 UTC
svn commit: r883055 -
/directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/AttributeType.java
Author: elecharny
Date: Sun Nov 22 09:49:03 2009
New Revision: 883055
URL: http://svn.apache.org/viewvc?rev=883055&view=rev
Log:
o Added the update[Collective|Usage]() methods
o Fixed some Javadoc
Modified:
directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/AttributeType.java
Modified: directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/AttributeType.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/AttributeType.java?rev=883055&r1=883054&r2=883055&view=diff
==============================================================================
--- directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/AttributeType.java (original)
+++ directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/AttributeType.java Sun Nov 22 09:49:03 2009
@@ -339,9 +339,20 @@
/**
- * Tells if this AttributeType is a collective attribute or not
+ * Updates the collective flag
*
- * @param collective True if the AttributeType is collective
+ * @param collective The new value to set
+ */
+ public void updateCollective( boolean collective )
+ {
+ this.isCollective = collective;
+ }
+
+
+ /**
+ * Sets the collective flag
+ *
+ * @param collective The new value to set
*/
public void setCollective( boolean collective )
{
@@ -381,6 +392,22 @@
}
}
+
+ /**
+ * Updates the AttributeType usage, one of :<br>
+ * <li>USER_APPLICATIONS
+ * <li>DIRECTORY_OPERATION
+ * <li>DISTRIBUTED_OPERATION
+ * <li>DSA_OPERATION
+ * <br>
+ * @see UsageEnum
+ * @param usage The AttributeType usage
+ */
+ public void updateUsage( UsageEnum usage )
+ {
+ this.usage = usage;
+ }
+
/**
* Gets a length limit for this AttributeType.