directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Lecharny (JIRA)" <j...@apache.org>
Subject [jira] [Created] (DIRSHARED-106) Add some Modification constructor
Date Sat, 09 Apr 2011 05:58:05 GMT
Add some Modification constructor
---------------------------------

                 Key: DIRSHARED-106
                 URL: https://issues.apache.org/jira/browse/DIRSHARED-106
             Project: Directory Shared
          Issue Type: Improvement
    Affects Versions: 1.0-M3
            Reporter: Emmanuel Lecharny
            Priority: Minor


It would be convenient to have some new constructors for the DefaultModification class :
- new DefaultModification( ModificationOperation, String attributeId, String... values )
- new DefaultModification( ModificationOperation, String attributeId, byte[]... values )
- new DefaultModification( ModificationOperation, String attributeId, Value<?>... values
)
- new DefaultModification( ModificationOperation, AttributeType, String... values )
- new DefaultModification( ModificationOperation, AttributeType, byte[]... values )
- new DefaultModification( ModificationOperation, AttributeType, Value<?>... values
)
- new DefaultModification(ModificationOperation, Object... elements )

The last constructor will take some LDIF formatted parameters, something like :
Modification mod = new  DefaultModification( ModificationOperation.ADD_ATTRIBUTE, "telephonenumber:
+1 408 555 1234", "telephonenumber", newTelephone );

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message