public interface GrowingPlanService extends AgrosystService
| Modifier and Type | Method and Description |
|---|---|
GrowingPlan |
createOrUpdateGrowingPlan(GrowingPlan dispositif)
Update or create a GrowingPlan.
|
GrowingPlan |
duplicateGrowingPlan(ExtendContext extendContext,
Domain clonedDomain,
GrowingPlan growingPlan,
boolean duplicateGrowingSystems)
Duplicate growing plan without committing transaction.
|
GrowingPlan |
duplicateGrowingPlan(String growingPlanId,
String duplicateDomainId,
boolean duplicateGrowingSystems)
Duplicate growing plan from id and associate if with given domain id.
|
InputStream |
exportGrowingPlanAsXlsStream(List<String> growingPlanIds) |
List<GrowingPlan> |
findAllByDomain(Domain domain)
Find all growing plan for a domain.
|
ResultList<GrowingPlan> |
getFilteredGrowingPlans(GrowingPlanFilter filter)
Find growingPlans matching user filter and navigation context.
|
ResultList<GrowingPlanDto> |
getFilteredGrowingPlansDto(GrowingPlanFilter filter)
Find growingPlans matching user filter and navigation context.
|
GrowingPlan |
getGrowingPlan(String growningPlanId)
Find a specific growingPlan from identifier.
|
List<GrowingSystem> |
getGrowingPlanGrowingSystems(String growingPlanId)
Retourne les systemes de cultures associƩ au dispositifs.
|
long |
getGrowingPlansCount(Boolean active)
Return the number of growingPlans
|
List<GrowingPlan> |
getGrowingPlanWithName(String growingPlanName) |
LinkedHashMap<Integer,String> |
getRelatedGrowingPlans(String growingPlanCode)
Get growingPlan related to current growingPlan.
|
void |
importGrowingPlanForXlsStream(InputStream is)
Import growing plans from stream.
|
void |
importPZ0GrowingPlans(Map<Class,ImportResults> allResults) |
GrowingPlan |
newGrowingPlan()
Create a new growing plan not persisted yet
|
void |
unactivateGrowingPlans(List<String> growingPlanIds,
boolean activate)
Unactivate the given growingPlans.
|
GrowingPlan |
validateAndCommit(String growingPlanId)
Do validate the current growing plan state
|
GrowingPlan newGrowingPlan()
List<GrowingPlan> findAllByDomain(Domain domain)
domain - domainGrowingPlan getGrowingPlan(String growningPlanId)
growningPlanId - growingPlan idGrowingPlan createOrUpdateGrowingPlan(GrowingPlan dispositif)
dispositif - growingPlan to updateResultList<GrowingPlan> getFilteredGrowingPlans(GrowingPlanFilter filter)
filter - custom user filterResultList<GrowingPlanDto> getFilteredGrowingPlansDto(GrowingPlanFilter filter)
filter - custom user filtervoid unactivateGrowingPlans(List<String> growingPlanIds, boolean activate)
growingPlanIds - growingPlans ids to unactivateactivate - activateGrowingPlan duplicateGrowingPlan(String growingPlanId, String duplicateDomainId, boolean duplicateGrowingSystems)
growingPlanId - growing plan to duplicateduplicateDomainId - associate duplicated growing plan to domainduplicateGrowingSystems - duplicate growing systems optionGrowingPlan duplicateGrowingPlan(ExtendContext extendContext, Domain clonedDomain, GrowingPlan growingPlan, boolean duplicateGrowingSystems)
extendContext - domain extends contextclonedDomain - cloned domain to attach growing plan togrowingPlan - plan to cloneduplicateGrowingSystems - also duplicate growing plan's growing systemsLinkedHashMap<Integer,String> getRelatedGrowingPlans(String growingPlanCode)
growingPlanCode - the code identifying this growingPlanlong getGrowingPlansCount(Boolean active)
active - optional active filter (may be null)GrowingPlan validateAndCommit(String growingPlanId)
growingPlanId - the identifier of the growing plan to validateList<GrowingSystem> getGrowingPlanGrowingSystems(String growingPlanId)
growingPlanId - growing plan idList<GrowingPlan> getGrowingPlanWithName(String growingPlanName)
InputStream exportGrowingPlanAsXlsStream(List<String> growingPlanIds)
void importGrowingPlanForXlsStream(InputStream is)
is - input streamvoid importPZ0GrowingPlans(Map<Class,ImportResults> allResults)
Copyright © 2013–2015 Inra. All rights reserved.