[MAGNOLIA-4685] n2b: resolve support for 'enabled' flag Created: 23/Nov/12 Updated: 10/Oct/19 Resolved: 11/Jun/13 |
|
| Status: | Closed |
| Project: | Magnolia |
| Component/s: | core |
| Affects Version/s: | 5.0 |
| Fix Version/s: | 5.0 |
| Type: | Task | Priority: | Neutral |
| Reporter: | Jaroslav Simak | Assignee: | Jaroslav Simak |
| 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 DoR: |
Empty
|
||||||||||||
| Description |
|
Content2Bean was using add methods that added beans to the collections. It was possible in this method to check if the bean is enabled and will be added to the collection or not. Node2Bean does not use add methods, but setters instead and we would need to loop through whole collection and check if bean is enabled or not (means also go through all code that is using Node2Bean mechanism and add checks if bean is enabled). After some discussion, it was decided, that Node2Bean should handle enabled flag to prevent adding such loops and should "filter out" beans with enabled flag set to false. First implementation was throwing all beans with enabled flag set to false, however STK uses this flag in another way and new reimplementation is needed. |