@Override
	public boolean addAnotherGreaterOfferAlert(boolean value, AuctionBean auctionBean) {
		ObjectComparator objectComparator=new ObjectComparator();
		
		if(this.getRole().equals(RoleEnum.BUYER)|| this.getRole().equals(RoleEnum.SELLER_BUYER)){
			//il faut que l'enchere ne sois pas a l'utilisateur
			if(this.getListAuctionBean().get(auctionBean.getAuctionId())==null){
				if(value){
					AlertObserver userAlertObserver=new AlertObserver(new Object(),this,AlertType.ALERT_GREATER_OFFER);
					auctionBean.addAlertObserver(userAlertObserver);
					System.out.println(Messages.ALERT_ADD);
					return true;
				}else{
					for (AlertObserver alert : auctionBean.getListObserverAlert()) {
						if (objectComparator.compare(alert.getAlertUser(), this) == 0 && alert.getAlertType().equals(AlertType.ALERT_GREATER_OFFER)) {
							auctionBean.deleteObserver(alert);
						}
					}
					
					System.out.println(Messages.ALERT_REMOVE);
					return true;
				}
			}else{
				System.out.println(Messages.AUCTION_BELONG_TO_USER);
				return false;
			}	
		}else{
			System.out.println(Messages.NO_RIGHT_ADD_ALERT_AUCTION);
			return false;
		}
	}