Package wt.mpm.coproduce
Class CoProduceControlDelegate
java.lang.Object
wt.mpm.coproduce.CoProduceControlDelegate
- Direct Known Subclasses:
DefaultCoProduceControlDelegate
Delegate for co-produce use cases
Supported API: true
Extendable: true
Supported API: true
Extendable: true
-
Method Summary
Modifier and TypeMethodDescriptionabstract voidcanCoProduceBeCreated(CoProduce cop, CreateCoProduceParams params) Provides ability to see if co-produce creation is valid for given set of primary and secondary members.abstract voidcanCoProduceBeUpdated(CoProduce cop, Collection<WTPart> secondaries, UpdateCoProduceParams params) Provides ability to validate add ,remove of provided secondary members in Co-produce object.abstract Collection<CoProduceUsageLink>canCoProduceUsagesBeCreated(Collection<CoProduceUsageLink> usages, CoProduceUsageParams params) Provides ability to add provided usages in Co-produce before persisting the object.abstract WTPartprocessCoProduce(CoProduce cop, CreateCoProduceParams params, WTPart coProduceForUpdate) Provides ability to update the information on the co-produce before persisting the object.
-
Method Details
-
processCoProduce
public abstract WTPart processCoProduce(CoProduce cop, CreateCoProduceParams params, WTPart coProduceForUpdate) throws WTException Provides ability to update the information on the co-produce before persisting the object.
Supported API: true
- Parameters:
cop- - CoProduce bean holding primary and secondary objects. -params-coProduceForUpdate- - coproduce object for update- Returns:
- Throws:
WTException
-
canCoProduceBeCreated
public abstract void canCoProduceBeCreated(CoProduce cop, CreateCoProduceParams params) throws WTException Provides ability to see if co-produce creation is valid for given set of primary and secondary members. If the creation is not valid then WTException should be thrown by the overriding API to block creation of co-produce object.
Supported API: true
- Parameters:
cop- - CoProduce bean holding primary and secondary objects.params- - create params holding Navigation Criteria and other information.- Throws:
WTException
-
canCoProduceBeUpdated
public abstract void canCoProduceBeUpdated(CoProduce cop, Collection<WTPart> secondaries, UpdateCoProduceParams params) throws WTException Provides ability to validate add ,remove of provided secondary members in Co-produce object. If the update is not valid then WTException should be thrown by the overriding API to block update of co-produce object.
Supported API: true
- Parameters:
cop- - CoProduce bean holding existing primary and secondary objects.secondaries- - Secondary members to be added/removedparams- - params holding Navigation Criteria and other information- Throws:
WTException
-
canCoProduceUsagesBeCreated
public abstract Collection<CoProduceUsageLink> canCoProduceUsagesBeCreated(Collection<CoProduceUsageLink> usages, CoProduceUsageParams params) throws WTException Provides ability to add provided usages in Co-produce before persisting the object.
Supported API: true
- Parameters:
params- - params holding Navigation Criteria and other information.usages- - Usages to be added.- Returns:
- Throws:
WTException
-