[
https://jira.jboss.org/jira/browse/JBPM-2420?page=com.atlassian.jira.plug...
]
Alejandro Guizar updated JBPM-2420:
-----------------------------------
The use case for AddressResolver is different in v4 than it was in v3. The v4 interface
contains the following methods:
Address resolveAddress(User user);
Address[] resolveAddresses(Group group);
MailProducer calls IdentitySession to retrieve the User or Group object. AddressResolver
simply produces an Address object from User data. The intent of AddressResolver is the
ability to format the "personal" field of InternetAddress in different ways. For
example:
John
John Smith
Smith, John
[empty]
The above use cases would be covered by introducing a configurable address expression like
the ones listed next.
${user.givenName}
${user.givenName} ${user.familyName}
${user.familyName}, ${user.givenName}
[empty]
For groups the DefaultAddressResolver returns the member addresses. Another implementation
could resolve the address of the group's mailing list. This is why I did not explore
the address expression route.
fold AddressResolver into IdentitySession
-----------------------------------------
Key: JBPM-2420
URL:
https://jira.jboss.org/jira/browse/JBPM-2420
Project: JBoss jBPM
Issue Type: Task
Security Level: Public(Everyone can see)
Components: Runtime Engine
Reporter: Tom Baeyens
Assignee: Alejandro Guizar
Fix For: jBPM 4.1
Original Estimate: 0 minutes
Remaining Estimate: 0 minutes
IdentitySession is the single central interface to which all access to identity component
is centralized.
Binding a new identity component should be possible by just implementing IdentitySession.
The User class already has an email property exposed.
So interface AddressResolver should be removed and IdentitySession should be used
instead.
Be sure to check clean up of obsolete AddressResolver interface, bindings and other
related stuff that becomes obsolete by this.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira