public class AnonymizeContext extends Object
| Modifier and Type | Field and Description |
|---|---|
protected com.google.common.base.Function<String,String> |
anonymizeFunction |
protected BusinessAuthorizationService |
authorizationService |
protected com.google.common.base.Function<Domain,DomainDto> |
domainToDtoFunction |
protected com.google.common.base.Function<GrowingPlan,GrowingPlanDto> |
growingPlanToDtoFunction |
protected com.google.common.base.Function<GrowingSystem,GrowingSystemDto> |
growingSystemToDtoFunction |
protected boolean |
includeDomainResponsibles |
protected boolean |
includeGrowingPlanResponsibles |
protected boolean |
includeZonePlot |
protected int |
limitPerformanceElements |
protected com.google.common.base.Function<Performance,PerformanceDto> |
performanceToDtoFunction |
protected com.google.common.base.Function<Plot,PlotDto> |
plotToDtoFunction |
protected com.google.common.base.Function<PracticedPlot,PracticedPlotDto> |
practicedPlotToDtoFunction |
protected com.google.common.base.Function<PracticedSystem,PracticedSystemDto> |
practicedSystemToDtoFunction |
protected com.google.common.base.Function<Domain,Boolean> |
shouldAnonymizeDomain |
protected com.google.common.base.Function<GrowingPlan,Boolean> |
shouldAnonymizeGrowingPlan |
protected static String |
XXXXX |
protected com.google.common.base.Function<Zone,ZoneDto> |
zoneToDtoFunction |
| Constructor and Description |
|---|
AnonymizeContext(BusinessAuthorizationService authorizationService,
com.google.common.base.Function<String,String> anonymizeFunction) |
protected static final String XXXXX
protected BusinessAuthorizationService authorizationService
protected com.google.common.base.Function<GrowingPlan,GrowingPlanDto> growingPlanToDtoFunction
protected com.google.common.base.Function<GrowingSystem,GrowingSystemDto> growingSystemToDtoFunction
protected com.google.common.base.Function<PracticedSystem,PracticedSystemDto> practicedSystemToDtoFunction
protected com.google.common.base.Function<PracticedPlot,PracticedPlotDto> practicedPlotToDtoFunction
protected com.google.common.base.Function<Performance,PerformanceDto> performanceToDtoFunction
protected com.google.common.base.Function<Domain,Boolean> shouldAnonymizeDomain
protected com.google.common.base.Function<GrowingPlan,Boolean> shouldAnonymizeGrowingPlan
protected boolean includeDomainResponsibles
protected boolean includeGrowingPlanResponsibles
protected boolean includeZonePlot
protected int limitPerformanceElements
public AnonymizeContext(BusinessAuthorizationService authorizationService, com.google.common.base.Function<String,String> anonymizeFunction)
public <K,V> com.google.common.base.Function<K,V> cache(com.google.common.base.Function<K,V> function)
function - the base function doing the transformationpublic AnonymizeContext includeDomainResponsibles(boolean b)
public AnonymizeContext includeGrowingPlanResponsibles(boolean b)
public AnonymizeContext includeZonePlot(boolean b)
public AnonymizeContext limitPerformanceElements(int i)
public com.google.common.base.Function<Domain,DomainDto> getDomainToDtoFunction()
public com.google.common.base.Function<GrowingPlan,GrowingPlanDto> getGrowingPlanToDtoFunction()
public com.google.common.base.Function<GrowingSystem,GrowingSystemDto> getGrowingSystemToDtoFunction()
public com.google.common.base.Function<PracticedSystem,PracticedSystemDto> getPracticedSystemToDtoFunction()
public com.google.common.base.Function<PracticedPlot,PracticedPlotDto> getPracticedPlotToDtoFunction()
public com.google.common.base.Function<Performance,PerformanceDto> getPerformanceToDtoFunction()
public com.google.common.base.Function<Domain,Boolean> getShouldAnonymizeDomain()
public com.google.common.base.Function<GrowingPlan,Boolean> getShouldAnonymizeGrowingPlan()
protected com.google.common.base.Function<Domain,DomainDto> newDomainToDtoFunction()
protected com.google.common.base.Function<GrowingPlan,GrowingPlanDto> newGrowingPlanToDtoFunction()
protected com.google.common.base.Function<GrowingSystem,GrowingSystemDto> newGrowingSystemToDtoFunction()
protected com.google.common.base.Function<PracticedSystem,PracticedSystemDto> newPracticedSystemToDtoFunction()
protected com.google.common.base.Function<PracticedPlot,PracticedPlotDto> newPracticedPlotToDtoFunction()
protected com.google.common.base.Function<Performance,PerformanceDto> newPerformanceToDtoFunction()
Copyright © 2013–2015 Inra. All rights reserved.