Package com.sissi.ucenter.relation.muc.validate

Examples of com.sissi.ucenter.relation.muc.validate.ItemStatus


  @Override
  public boolean input(JIDContext context, Protocol protocol) {
    JID group = super.build(protocol.parent().getTo());
    for (Item item : protocol.cast(XMucAdmin.class).getItem()) {
      ItemStatus error = this.validator.valdate(context, group, super.build(item.getJid()));
      if (!error.valid()) {
        return this.writeAndReturn(context, protocol, error.error());
      }
    }
    return true;
  }
View Full Code Here


  }

  @Override
  public ItemStatus valdate(JIDContext invoker, JID group, JID item) {
    for (ItemValidator each : this.validators) {
      ItemStatus error = each.valdate(invoker, group, item);
      if (!error.valid()) {
        return error;
      }

    }
    return ValidItemStatus.INSTANCE;
View Full Code Here

TOP

Related Classes of com.sissi.ucenter.relation.muc.validate.ItemStatus

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.