* @param requestedAffiliation
* @return
*/
public boolean isAuthorized(Entity sender, PubSubAffiliation requestedAffiliation) {
PubSubAffiliation affiliation = this.storage.getAffiliation(name, sender);
return affiliation.compareTo(requestedAffiliation) >= 0;
}
/**
* Returns the affiliation for the given bareJID.
* @param entity the entity for which the affiliation should be returned.