public final static boolean isAllGranted(UserDetails userDetails, String permissions) {
		Collection<GrantedPrivilege> privileges = userDetails.getAllPrivileges();
		if(privileges == null || privileges.size() < 1) {
			return false;
		}
		
		String[] granteds = getGranteds(permissions);
		for(int i = 0; i < granteds.length; i++) {
			for(Iterator<GrantedPrivilege> it = privileges.iterator(); it.hasNext();) {
				GrantedPrivilege privilege = it.next();
				if(comparePrivilege(privilege, granteds[i])) {
					break;
				}
				if(!it.hasNext()) {
					return false;
				}
			}
		}
		return true;
	}