Examples of Actor


Examples of org.neo4j.examples.imdb.domain.Actor

    @Transactional
    public void getModel( final Object command, final Map<String,Object> model )
        throws ServletException
    {
        final String name = ((ActorForm) command).getName();
        final Actor actor = imdbService.getActor( name );
        populateModel( model, actor );
    }
View Full Code Here

Examples of org.ops4j.pax.exam.sample2.model.Actor

        Collection<Map<String, ?>> cast = (Collection<Map<String, ?>>) data.get("cast");
        for (Map<String, ?> entry : cast) {
            Integer id = (Integer) entry.get("id");
            String jobName = (String) entry.get("job");
            if ("Actor".equals(jobName)) {
                Actor actor = new Actor();
                actor.setId(id);
                doImportPerson(actor);
                Role role = new Role();
                role.setActor(actor);
                role.setMovie(movie);
                role.setName((String) entry.get("character"));
View Full Code Here

Examples of org.sfsoft.cine.base.Actor

   
    JActor jActor = new JActor();
    if (jActor.mostrarDialogo() == Util.Accion.CANCELAR)
      return;
   
    Actor actor = jActor.getActor();
    Session sesion = HibernateUtil.getCurrentSession();
    sesion.beginTransaction();
    sesion.save(actor);
    sesion.getTransaction().commit();
    sesion.close();
View Full Code Here

Examples of org.terasology.logic.behavior.tree.Actor

    }

    private void addEntity(EntityRef entityRef, BehaviorComponent behaviorComponent) {
        Interpreter interpreter = entityInterpreters.get(entityRef);
        if (interpreter == null) {
            interpreter = new Interpreter(new Actor(entityRef));
            BehaviorTree tree = behaviorComponent.tree;
            entityInterpreters.put(entityRef, interpreter);
            if (tree != null) {
                interpreter.start(tree.getRoot());
            }
View Full Code Here

Examples of org.ugate.service.entity.jpa.Actor

  public Actor authenticate(final String username, final String password) {
    try {
      if (password == null || password.isEmpty()) {
        return null;
      }
      final Actor actor = credentialDao.getActor(username);
      if (actor != null) {
        if (actor.getPassword().equals(password)
            || hasDigestMatch(username, actor.getPassword(),
                password, actor.getPassPhrase())) {
          return actor;
        }
      } else if (log.isDebugEnabled()) {
        log.debug(String
            .format("No %1$s exists with a login of %2$s and the supplied password",
View Full Code Here

Examples of org.ugate.service.entity.jpa.Actor

          || credentials.toString().isEmpty()) {
        throw new IllegalArgumentException(String.format(
            "Invalid username/password combination for %1$s",
            username));
      }
      final Actor actor = ServiceProvider.IMPL.getCredentialService().authenticate(username,
            credentials.toString());
      if (actor == null) {
        throw new AuthenticationException(Actor.class.getName() + ':' + username);
      }
      final String[] roles = new String[actor.getRoles().size()];
      int i = -1;
      for (final Role role : actor.getRoles()) {
        roles[++i] = role.getRole();
      }
      // The password should already be an MD5 hash using the same salt pattern as the
      // JPA provider
      final Credential cred = Credential.getCredential(MD5.__TYPE + actor.getPassword());
      return putUser(username, cred, roles);
    } catch (final Throwable t) {
      final String msg = String.format("Unable to authenticate %1$s",
          username);
      if (log.isDebugEnabled()) {
View Full Code Here

Examples of org.ugate.service.entity.jpa.Actor

        ni = e.nextElement();
        e2 = ni.getInetAddresses();
        while (e2.hasMoreElements()) {
          ip = e2.nextElement();
          if (req.getRemoteAddr().equals(ip.getHostAddress())) {
            final Actor actor = ServiceProvider.IMPL
                .getCredentialService().getActorById(
                    Integer.valueOf(actorId));
            if (actor != null) {
              req.login(actor.getUsername(), actor.getPassword());
              return true;
            }
            return false;
          }
        }
View Full Code Here

Examples of org.ugate.service.entity.jpa.Actor

   */
  @Override
  protected RequiredValues processContext(final HttpServletRequest req,
      final HttpServletResponse res, final ServletContext servletContext,
      final WebContext ctx) throws Throwable {
    final Actor actor = findActor(req);
    if (actor == null) {
      req.authenticate(res);
    }
    final Integer rnId = getParameter(req, RemoteNodeType.ID.getKey(), Integer.class);
    RemoteNode rn = null;
    if (rnId != null) {
      rn = getRemoteNode(actor, rnId);
      if (rn != null) {
        ctx.setVariable(VAR_REMOTE_NODE_NAME, rn);
        addRemoteNodeReadingVars(rn, ctx);
        addRemoteNodeVars(rn, ctx);
      }
    }
    if (rn == null) {
      rn = new RemoteNode();
      rn.setAddress("");
      ctx.setVariable(VAR_REMOTE_NODE_NAME, rn);
    }
    ctx.setVariable(VAR_REMOTE_NODES_NAME, actor.getHost().getRemoteNodes());
    return null;
  }
View Full Code Here

Examples of ptolemy.actor.Actor

        // opaque.
        // super.preinitialize();

        // preinitialize all contained actors.
        for (Iterator i = deepEntityList().iterator(); i.hasNext();) {
            Actor actor = (Actor) i.next();
            actor.preinitialize();
        }
    }
View Full Code Here

Examples of puppyeyes.engine.Actor

       


       

        Actor currentObject = null;
        if (currentScreen==0) { currentObject = itemBG; }
        itemBG.step();
        equipBG.step();
        statusBG.step();
        mapBG.step();
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.