public interface BusinessAuthorizationService extends AuthorizationService
addUserRoles, canCreateUser, checkComputedPermissions, checkComputedPermissions, dropComputedPermissions, getDomainResponsibles, getEntityRoles, getGrowingPlanResponsibles, getUserRoles, importPz0UsersRoles, importRoles, isAdmin, isIsDataProcessor, saveEntityUserRoles, saveUserRoles, searchEntities, searchPossibleEntitiesboolean isAdmin()
boolean isIsDataProcessor()
boolean isDomainWritable(String domainId)
boolean areDomainPlotsEditable(String domainId)
boolean isDomainAdministrable(String domainCode)
boolean isGrowingPlanWritable(String growingPlanId)
boolean isGrowingPlanAdministrable(String growingPlanCode)
boolean isGrowingSystemWritable(String growingSystemId)
boolean isGrowingSystemAdministrable(String growingSystemCode)
boolean isNetworkWritable(String networkId)
boolean isPracticedSystemWritable(String practicedSystemId)
boolean isDecisionRuleWritable(String decisionRuleId)
boolean isManagementModeWritable(String managementModeId)
boolean isManagementModeReadable(String managementModeId)
boolean isDecisionRuleReadable(String decisionRuleId)
boolean isZoneWritable(String zoneId)
void domainCreated(Domain domain)
void growingPlanCreated(GrowingPlan growingPlan)
void growingSystemCreated(GrowingSystem growingSystem)
void networkCreated(Network network)
void networkUpdated(Network network)
void checkIsAdmin()
throws AgrosystAccessDeniedException
AgrosystAccessDeniedExceptionboolean shouldAnonymizeDomain(String domainId)
org.apache.commons.lang3.tuple.Pair<Boolean,Boolean> shouldAnonymizeDomain(String domainId, boolean allowUnreadable)
boolean shouldAnonymizeGrowingPlan(String growingPlanId)
org.apache.commons.lang3.tuple.Pair<Boolean,Boolean> shouldAnonymizeGrowingPlan(String growingPlanId, boolean allowUnreadable)
void checkDomainReadable(String domainId) throws AgrosystAccessDeniedException
AgrosystAccessDeniedExceptionvoid checkGrowingPlanReadable(String growingPlanId) throws AgrosystAccessDeniedException
AgrosystAccessDeniedExceptionboolean isGrowingSystemReadable(String growingSystemId)
void checkGrowingSystemReadable(String growingSystemId) throws AgrosystAccessDeniedException
AgrosystAccessDeniedExceptionvoid checkPracticedSystemReadable(String practicedSystemId) throws AgrosystAccessDeniedException
AgrosystAccessDeniedExceptionvoid checkDecisionRuleReadable(String decisionRuleId) throws AgrosystAccessDeniedException
AgrosystAccessDeniedExceptionvoid checkManagementModeReadable(String managementModeId) throws AgrosystAccessDeniedException
AgrosystAccessDeniedExceptionvoid checkEffectiveCropCyclesReadable(String zoneId) throws AgrosystAccessDeniedException
AgrosystAccessDeniedExceptionvoid checkCreateOrUpdateDomain(String domainId) throws AgrosystAccessDeniedException
AgrosystAccessDeniedExceptionvoid checkCreateOrUpdateGrowingPlan(String growingPlanId) throws AgrosystAccessDeniedException
AgrosystAccessDeniedExceptionvoid checkCreateOrUpdateGrowingSystem(String growingSystemId) throws AgrosystAccessDeniedException
AgrosystAccessDeniedExceptionvoid checkCreateOrUpdateNetwork(String networkId) throws AgrosystAccessDeniedException
AgrosystAccessDeniedExceptionvoid checkCreateOrUpdatePracticedSystem(String practicedSystemTopiaId) throws AgrosystAccessDeniedException
AgrosystAccessDeniedExceptionvoid checkCreateOrUpdateDecisionRule(String decisionRuleId) throws AgrosystAccessDeniedException
AgrosystAccessDeniedExceptionvoid checkCreateOrUpdateManagementMode(String managementModeId) throws AgrosystAccessDeniedException
AgrosystAccessDeniedExceptionvoid checkCreateOrUpdateEffectiveCropCycles(String zoneId) throws AgrosystAccessDeniedException
AgrosystAccessDeniedExceptionboolean isDomainValidable(String domainId)
boolean isGrowingPlanValidable(String growingPlanId)
boolean isGrowingSystemValidable(String growingSystemId)
boolean isPracticedSystemValidable(String practicedSystemId)
void checkValidateDomain(String domainId) throws AgrosystAccessDeniedException
AgrosystAccessDeniedExceptionvoid checkValidateGrowingPlan(String growingPlanId) throws AgrosystAccessDeniedException
AgrosystAccessDeniedExceptionvoid checkValidateGrowingSystem(String growingSystemId) throws AgrosystAccessDeniedException
AgrosystAccessDeniedExceptionvoid checkValidatePracticedSystem(String practicedSystemId) throws AgrosystAccessDeniedException
AgrosystAccessDeniedExceptionboolean areAttachmentsAddableOrDeletable(String objectReferenceId)
void checkDeleteAttachment(String attachmentMetadataId)
void checkAddAttachment(String objectReferenceId)
void checkReadAttachment(String attachmentMetadataId)
boolean isPerformanceWritable(String performanceId)
void checkPerformanceReadable(String performanceId) throws AgrosystAccessDeniedException
AgrosystAccessDeniedExceptionvoid checkCreateOrUpdatePerformance(String performanceId) throws AgrosystAccessDeniedException
AgrosystAccessDeniedExceptionboolean isPlotWritable(String plotId)
void checkPlotReadable(String plotId) throws AgrosystAccessDeniedException
AgrosystAccessDeniedExceptionvoid checkCreateOrUpdatePlot(String plotId) throws AgrosystAccessDeniedException
AgrosystAccessDeniedExceptionboolean isPracticedPlotWritable(String practicedPlotId)
void checkPracticedPlotReadable(String practicedPlotId) throws AgrosystAccessDeniedException
AgrosystAccessDeniedExceptionvoid checkCreateOrUpdatePracticedPlot(String practicedPlotId, String practicedSystemId) throws AgrosystAccessDeniedException
AgrosystAccessDeniedExceptionCopyright © 2013–2015 Inra. All rights reserved.