public class AnonymizeServiceImpl extends AuthorizationServiceImpl implements AnonymizeService
| Modifier and Type | Field and Description |
|---|---|
protected static com.google.common.base.Function<RefLocation,RefLocation> |
ANONYMIZE_LOCATION |
protected BusinessAuthorizationService |
authorizationService |
protected HashedValueTopiaDao |
hashedValuesDao |
protected static String |
XXXXX |
protected static double |
XXXXX_DOUBLE |
protected static int |
XXXXX_INT |
agrosystUserDao, authenticationService, cacheService, computedUserPermissionDao, domainDao, domainService, GET_DOMAIN_ENTITY_LABEL, GET_GROWING_PLAN_ENTITY_LABEL, GET_GROWING_SYSTEM_ENTITY_LABEL, growingPlanDao, growingPlanService, growingSystemDao, growingSystemService, networkDao, networkService, trackerService, userRoleDaocontext__PARANAMER_DATA__PARANAMER_DATA| Constructor and Description |
|---|
AnonymizeServiceImpl() |
addUserRoles, canCreateUser, checkComputedPermissionFromUserId, checkComputedPermissions, checkComputedPermissions, computeDomainResponsiblePermissions, computeGrowingPlanResponsiblePermissions, computeGrowingSystemDataProcessorPermissions, computeIsDataProcessorPermissions, computeNetworkResponsiblePermissions, computeUserPermissions, createOrUpdateUserRoles, doCreateOrUpdateUserRoles, dropComputedPermissions, dropComputedPermissions0, getDomainResponsibles, getEntityRoles, getGrowingPlanResponsibles, getUserId, getUserIdOrFail, getUserRoles, getUserRoles0, getUserRoleToDtoFunction, hasRole, importPz0UserRoles, importPz0UsersRoles, importRoles, isAdmin, isAdmin, isIsDataProcessor, isIsDataProcessor, markPermissionsAsDirty, objectIsDirty, objectsAreDirty, removePreviousRoles, saveEntityUserRoles, saveUserRoles, searchEntities, searchPossibleEntities, setAgrosystUserDao, setAuthenticationService, setCacheService, setComputedUserPermissionDao, setDomainDao, setDomainService, setGrowingPlanDao, setGrowingPlanService, setGrowingSystemDao, setGrowingSystemService, setNetworkDao, setNetworkService, setTrackerService, setUserRoleDaoeasyBind, easyBind, easyBindNoDelete, finalize, getConfig, getContext, getPersistenceContext, getSecurityContext, getSecurityContextAsUser, getTransaction, newInstance, setContextprotected static final String XXXXX
protected static final int XXXXX_INT
protected static final double XXXXX_DOUBLE
protected static final com.google.common.base.Function<RefLocation,RefLocation> ANONYMIZE_LOCATION
protected BusinessAuthorizationService authorizationService
protected HashedValueTopiaDao hashedValuesDao
public void setAuthorizationService(BusinessAuthorizationService authorizationService)
public void setHashedValuesDao(HashedValueTopiaDao hashedValuesDao)
public AnonymizeContext newContext()
public String anonymize(String clear)
anonymize in interface AnonymizeServiceprotected com.google.common.base.Function<Domain,Domain> getAnonymizeDomainFunction()
protected com.google.common.base.Function<Domain,Domain> getAnonymizeDomainFunction(boolean allowUnreadable)
public com.google.common.base.Function<Domain,DomainDto> getDomainToDtoFunction(boolean includeResponsibles)
getDomainToDtoFunction in interface AnonymizeServicepublic Domain checkForDomainAnonymization(Domain domain)
checkForDomainAnonymization in interface AnonymizeServicepublic Collection<Domain> checkForDomainsAnonymization(Collection<Domain> domains)
checkForDomainsAnonymization in interface AnonymizeServicepublic ResultList<Domain> checkForDomainsAnonymization(ResultList<Domain> domains)
checkForDomainsAnonymization in interface AnonymizeServicepublic Map<String,String> getDomainsAsMap(Iterable<Domain> domains)
getDomainsAsMap in interface AnonymizeServicepublic Plot checkForPlotAnonymization(Plot plot)
checkForPlotAnonymization in interface AnonymizeServicepublic List<Plot> checkForPlotsAnonymization(List<Plot> plots)
checkForPlotsAnonymization in interface AnonymizeServiceprotected com.google.common.base.Function<GeoPoint,GeoPoint> getAnonymizeGeoPointFunction()
public List<GeoPoint> checkForGeoPointAnonymization(List<GeoPoint> geoPoints)
checkForGeoPointAnonymization in interface AnonymizeServiceprotected com.google.common.base.Function<Plot,Plot> getAnonymizePlotFunction()
protected com.google.common.base.Function<Plot,Plot> getAnonymizePlotFunction(boolean allowUnreadable)
public com.google.common.base.Function<Plot,PlotDto> getPlotToDtoFunction()
getPlotToDtoFunction in interface AnonymizeServiceprotected com.google.common.base.Function<Zone,Zone> getAnonymizeZoneFunction()
public Zone checkForZoneAnonymization(Zone zone)
checkForZoneAnonymization in interface AnonymizeServicepublic com.google.common.base.Function<Zone,ZoneDto> getZoneToDtoFunction()
getZoneToDtoFunction in interface AnonymizeServicepublic com.google.common.base.Function<Zone,ZoneDto> getZoneToDtoFunction(boolean includePlot)
getZoneToDtoFunction in interface AnonymizeServiceprotected com.google.common.base.Function<GrowingPlan,GrowingPlan> getAnonymizeGrowingPlanFunction()
protected com.google.common.base.Function<GrowingPlan,GrowingPlan> getAnonymizeGrowingPlanFunction(boolean allowUnreadable)
public GrowingPlan checkForGrowingPlanAnonymization(GrowingPlan growingPlan)
checkForGrowingPlanAnonymization in interface AnonymizeServicepublic com.google.common.base.Function<GrowingPlan,GrowingPlanDto> getGrowingPlanToDtoFunction(boolean includeResponsibles)
getGrowingPlanToDtoFunction in interface AnonymizeServicepublic Map<String,String> getGrowingPlansAsMap(Iterable<GrowingPlan> growingPlans)
getGrowingPlansAsMap in interface AnonymizeServiceprotected com.google.common.base.Function<GrowingSystem,GrowingSystem> getAnonymizeGrowingSystemFunction()
protected com.google.common.base.Function<GrowingSystem,GrowingSystem> getAnonymizeGrowingSystemFunction(boolean allowUnreadable)
public GrowingSystem checkForGrowingSystemAnonymization(GrowingSystem growingSystem)
checkForGrowingSystemAnonymization in interface AnonymizeServicepublic com.google.common.base.Function<GrowingSystem,GrowingSystemDto> getGrowingSystemToDtoFunction()
getGrowingSystemToDtoFunction in interface AnonymizeServiceprotected com.google.common.base.Function<PracticedSystem,PracticedSystem> getAnonymizePracticedSystemFunction()
public PracticedSystem checkForPracticedSystemAnonymization(PracticedSystem practicedSystem)
checkForPracticedSystemAnonymization in interface AnonymizeServicepublic com.google.common.base.Function<PracticedSystem,PracticedSystemDto> getPracticedSystemToDtoFunction()
getPracticedSystemToDtoFunction in interface AnonymizeServiceprotected com.google.common.base.Function<ManagementMode,ManagementMode> getAnonymizeManagementModeFunction()
public ManagementMode checkForManagementModeAnonymization(ManagementMode managementMode)
checkForManagementModeAnonymization in interface AnonymizeServicepublic com.google.common.base.Function<PracticedPlot,PracticedPlotDto> getPracticedPlotToDtoFunction()
getPracticedPlotToDtoFunction in interface AnonymizeServicepublic ResultList<Performance> checkForPerformancesAnonymization(ResultList<Performance> performances)
checkForPerformancesAnonymization in interface AnonymizeServiceprotected com.google.common.base.Function<Performance,Performance> getAnonymizePerformanceFunction()
public com.google.common.base.Function<Performance,PerformanceDto> getPerformanceToDtoFunction()
getPerformanceToDtoFunction in interface AnonymizeServiceCopyright © 2013–2015 Inra. All rights reserved.