Methods
| Modifier and Type |
Method and Description |
void |
addUserRoles(String userId,
List<UserRoleDto> userRoles) |
boolean |
canCreateUser(String authenticationToken) |
protected String |
checkComputedPermissionFromUserId(String userId) |
String |
checkComputedPermissions(String authenticationToken) |
String |
checkComputedPermissions(String authenticationToken,
String doAsUserId) |
protected List<ComputedUserPermission> |
computeDomainResponsiblePermissions(String userId,
UserRole role) |
protected List<ComputedUserPermission> |
computeGrowingPlanResponsiblePermissions(String userId,
UserRole role) |
protected List<ComputedUserPermission> |
computeGrowingSystemDataProcessorPermissions(String userId,
UserRole role) |
protected List<ComputedUserPermission> |
computeIsDataProcessorPermissions(String userId) |
protected List<ComputedUserPermission> |
computeNetworkResponsiblePermissions(String userId,
UserRole role) |
protected Set<ComputedUserPermission> |
computeUserPermissions(String userId) |
protected void |
createOrUpdateUserRoles(String userId,
List<UserRoleDto> userRoles,
Boolean removePreviousRoles) |
protected void |
doCreateOrUpdateUserRoles(List<UserRoleDto> userRoles,
AgrosystUser agrosystUser,
com.google.common.collect.ImmutableMap<String,UserRole> rolesIndex,
Set<String> rolesIds) |
void |
dropComputedPermissions(String authenticationToken) |
protected void |
dropComputedPermissions0(String userId) |
List<UserDto> |
getDomainResponsibles(String domainCode) |
List<UserRoleDto> |
getEntityRoles(RoleType roleType,
String entityCode) |
List<UserDto> |
getGrowingPlanResponsibles(String growingPlanCode) |
protected String |
getUserId() |
protected String |
getUserIdOrFail(String authenticationToken) |
List<UserRoleDto> |
getUserRoles(String userId) |
protected List<UserRole> |
getUserRoles0(RoleType roleType,
String entityCode) |
protected com.google.common.base.Function<UserRole,UserRoleDto> |
getUserRoleToDtoFunction(boolean includeEntity,
boolean includeUser) |
protected boolean |
hasRole(String authenticationToken,
RoleType roleType) |
protected void |
importPz0UserRoles(String userId,
List<UserRoleDto> userRoles) |
void |
importPz0UsersRoles(Map<Class,ImportResults> allResults) |
ImportResult |
importRoles(InputStream rolesFileStream) |
boolean |
isAdmin() |
boolean |
isAdmin(String authenticationToken) |
boolean |
isIsDataProcessor() |
boolean |
isIsDataProcessor(String authenticationToken) |
protected void |
markPermissionsAsDirty(ComputedUserPermissionTopiaDao cupDAO,
Iterable<ComputedUserPermission> toDirty) |
protected void |
objectIsDirty(PermissionObjectType type,
String object) |
protected void |
objectsAreDirty(PermissionObjectType type) |
protected void |
removePreviousRoles(Boolean removePreviousRoles,
com.google.common.collect.ImmutableMap<String,UserRole> rolesIndex,
Set<String> rolesIds) |
void |
saveEntityUserRoles(RoleType roleType,
String entityCode,
List<UserRoleDto> roleDtos) |
void |
saveUserRoles(String userId,
List<UserRoleDto> userRoles) |
List<UserRoleEntityDto> |
searchEntities(RoleType roleType,
String termRaw,
Integer campaign) |
List<UserRoleEntityDto> |
searchPossibleEntities(RoleType roleType,
String termRaw) |
void |
setAgrosystUserDao(AgrosystUserTopiaDao agrosystUserDao) |
void |
setAuthenticationService(AuthenticationService authenticationService) |
void |
setCacheService(CacheService cacheService) |
void |
setComputedUserPermissionDao(ComputedUserPermissionTopiaDao computedUserPermissionDao) |
void |
setDomainDao(DomainTopiaDao domainDao) |
void |
setDomainService(DomainService domainService) |
void |
setGrowingPlanDao(GrowingPlanTopiaDao growingPlanDao) |
void |
setGrowingPlanService(GrowingPlanService growingPlanService) |
void |
setGrowingSystemDao(GrowingSystemTopiaDao growingSystemDao) |
void |
setGrowingSystemService(GrowingSystemService growingSystemService) |
void |
setNetworkDao(NetworkTopiaDao networkDao) |
void |
setNetworkService(NetworkService networkService) |
void |
setTrackerService(TrackerServiceImpl trackerService) |
void |
setUserRoleDao(UserRoleTopiaDao userRoleDao) |