@Override public void removeUserPermissions(final ApplicationUser user) throws RemoveException { permissionManager.removeUserPermissions(user); }
private void removeUserReferences(final ApplicationUser loggedInUser, final ApplicationUser user, final SimpleErrorCollection errors) throws RemoveException, GenericEntityException { projectRoleService.removeAllRoleActorsByNameAndType(user.getKey(), ProjectRoleActor.USER_ROLE_ACTOR_TYPE, errors); permissionManager.removeUserPermissions(user); removeWatchesForUser(user); removeVotesForUser(user); subscriptionManager.deleteSubscriptionsForUser(user); notificationSchemeManager.removeEntities(SingleUser.DESC, user.getName()); removeComponentLeadsForUser(user); getSearchRequestService().deleteAllFiltersForUser(getServiceContext(loggedInUser), user); getPortalPageService().deleteAllPortalPagesForUser(user); userHistoryManager.removeHistoryForUser(user); jsonEntityPropertyManager.deleteByEntity(EntityPropertyType.USER_PROPERTY.getDbEntityName(), user.getId()); }