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

Reply via email to