Examples of allowed()


Examples of com.sissi.ucenter.relation.muc.room.Room.allowed()

    }
    Presence presence = new Presence();
    MucRelation relation = super.ourRelation(context.jid(), group).cast(MucRelation.class);
    for (Relation each : super.myRelations(group)) {
      JID to = super.build(each.jid());
      super.findOne(to, true).write(presence.clear().clauses(context.status().clauses()).add(this.judger.add(new XUser(group, to, room.allowed(to, RoomConfig.WHOISEXISTS)).item(new Item(room.allowed(to, RoomConfig.WHOISALLOW, context.jid()), relation))).cast(XUser.class)).setFrom(protocol.getTo()));
    }
    return true;
  }
}
View Full Code Here

Examples of com.sissi.ucenter.relation.muc.room.Room.allowed()

    if (x.hasHistory()) {
      JID group = super.build(protocol.getTo());
      Room room = this.room.build(group);
      for (Element message : this.recover.pull(group, x.history())) {
        Delay delay = Message.class.cast(message).getDelay();
        delay.setFrom(room.allowed(context.jid(), RoomConfig.WHOISALLOW, super.build(delay.getFrom())) ? super.build(message.getFrom()).asStringWithBare() : delay.getFrom());
        context.write(message);
      }
  }
    return true;
  }
View Full Code Here

Examples of com.sissi.ucenter.relation.muc.room.Room.allowed()

    Room room = this.room.build(group);
    Presence presence = new Presence();
    for (Relation each : super.myRelations(group)) {
      MucRelation relation = each.cast(MucRelation.class);
      JID to = super.build(relation.jid());
      context.write(presence.clear().clauses(super.findOne(to, true).status().clauses()).add(this.judeger.add(new XUser(group, context.jid(), room.allowed(context.jid(), RoomConfig.WHOISEXISTS)).item(new Item(room.allowed(context.jid(), RoomConfig.WHOISALLOW, to), relation))).cast(XUser.class)).setFrom(group.resource(relation.name())));
    }
    return true;
  }
}
View Full Code Here

Examples of com.sissi.ucenter.relation.muc.room.Room.allowed()

    Room room = this.room.build(group);
    Presence presence = new Presence();
    for (Relation each : super.myRelations(group)) {
      MucRelation relation = each.cast(MucRelation.class);
      JID to = super.build(relation.jid());
      context.write(presence.clear().clauses(super.findOne(to, true).status().clauses()).add(this.judeger.add(new XUser(group, context.jid(), room.allowed(context.jid(), RoomConfig.WHOISEXISTS)).item(new Item(room.allowed(context.jid(), RoomConfig.WHOISALLOW, to), relation))).cast(XUser.class)).setFrom(group.resource(relation.name())));
    }
    return true;
  }
}
View Full Code Here

Examples of de.iritgo.aktera.authorization.AuthorizationManager.allowed()

      UIController controller = (UIController) KeelContainer.defaultContainer().getSpringBean(controllerId);

      AuthorizationManager authorizationManager = (AuthorizationManager) KeelContainer.defaultContainer()
              .getSpringBean(AuthorizationManager.ID);

      if (! authorizationManager.allowed(controller, controllerId, userEnvironment))
      {
        throw new SecurityException("Controller '" + controllerId + "' not authorized");
      }

      BeanResponse uiResponse = new BeanResponse();
View Full Code Here

Examples of de.iritgo.aktera.authorization.AuthorizationManager.allowed()

    UIController controller = (UIController) KeelContainer.defaultContainer().getSpringBean(request.getBean());

    AuthorizationManager authorizationManager = (AuthorizationManager) KeelContainer.defaultContainer()
            .getSpringBean(AuthorizationManager.ID);

    if (! authorizationManager.allowed(controller, request.getBean(), request.getUserEnvironment()))
    {
      throw new SecurityException("Controller '" + request.getBean() + "' not authorized");
    }

    controller.execute(request, response);
View Full Code Here

Examples of de.iritgo.aktera.authorization.AuthorizationManager.allowed()

    AuthorizationManager authorizationManager = (AuthorizationManager) KeelContainer.defaultContainer()
            .getSpringBean(AuthorizationManager.ID);

    try
    {
      if (! authorizationManager.allowed(controller, bean, request.getUserEnvironment()))
      {
        throw new SecurityException("Controller '" + bean + "' not authorized");
      }
    }
    catch (AuthorizationException x)
View Full Code Here

Examples of de.iritgo.aktera.authorization.AuthorizationManager.allowed()

        log.error(msg);
        throw new SecurityException(msg);
      }

      return am.allowed(o, c);
    }
    catch (PersistenceException pe)
    {
      log.error("DB Error, unable to verify authorization", pe);
      throw new SecurityException("DB error, unable to verify authorization");
View Full Code Here

Examples of de.iritgo.aktera.authorization.AuthorizationManager.allowed()

                "Authorization Manager was not setup properly, this is a container setup problem");
      }

      try
      {
        if (! am.allowed(o, c))
        {
          throw new SecurityException("Service '" + role + "' Not Authorized");
        }
      }
      catch (AuthorizationException e)
View Full Code Here

Examples of de.iritgo.aktera.persist.Persistent.allowed()

        } /* for each retrieved field name */
        // TODO - how to tell the new object it's now current
        //myObj.setStatus(Persistent.CURRENT);
        if (checkRowSecurity)
        {
          if (myObj.allowed(QUERY))
          {
            recordSet.add(myObj);
          }
        }
        else
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.