|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface CategoryResolver
If two Categorys that has the same ID are being added to the depository a confict will arise. This interface
denotes that resolver that resolves / merges the activities.
| Method Summary | |
|---|---|
Category |
resolve(Category currentCategory,
Category addingCategory,
java.lang.Object adder)
Should resolve the situation where a new activty is added to the depository when there's onr there with the same ID already- |
| Method Detail |
|---|
Category resolve(Category currentCategory,
Category addingCategory,
java.lang.Object adder)
currentCategory - The current category in the depository.addingCategory - The category to be added. Has the same id as currentCategory.adder - The source responsible for adding addingCategory.
If null nothing is added and currentCategory should normally still be in the depository.
The normal course of action is to merge the activities, if needded, and return currentCategory. If any
other category is returned remove and add events will be fired.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||