[MAGNOLIA-4016] Created method getUserById(Object) in UserManager Created: 08/Mar/12 Updated: 12/Mar/12 Resolved: 12/Mar/12 |
|
| Status: | Closed |
| Project: | Magnolia |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 4.5.1 |
| Type: | Improvement | Priority: | Neutral |
| Reporter: | Milan Divilek | Assignee: | Milan Divilek |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Template: |
|
||||||||||||
| Acceptance criteria: |
Empty
|
||||||||||||
| Task DoD: |
[ ]*
Doc/release notes changes? Comment present?
[ ]*
Downstream builds green?
[ ]*
Solution information and context easily available?
[ ]*
Tests
[ ]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
||||||||||||
| Date of First Response: | |||||||||||||
| Description |
|
Create method getUserById(Object) to UserManager which return user by his jcr:id and also provide implementation of this method in MgnlUserManager. |
| Comments |
| Comment by Magnolia International [ 08/Mar/12 ] |
|
Why use anything else than a String as an ID ? |
| Comment by Milan Divilek [ 09/Mar/12 ] |
|
I use Object because different user managers can use different type of id. Null is returned because we use DelegateUserManager where we iterate over all user manager until return value not null. |
| Comment by Jan Haderka [ 09/Mar/12 ] |
|
On a second thought ...
|