Package de.creepsmash.server.model

Examples of de.creepsmash.server.model.BlackList


          EntityManager entityManager = PersistenceManager
              .getInstance().getEntityManager();
          EntityTransaction entityTransaction = entityManager
              .getTransaction();
          entityTransaction.begin();
          BlackList blacklist = new BlackList();
          blacklist.setData(player.getMac());
          entityManager.persist(blacklist);
          entityManager.flush();
          entityTransaction.commit();

          logger.debug("Block for MAC " + player.getName() + " / "
View Full Code Here


    try {
    EntityManager entityManager =
      PersistenceManager.getInstance().getEntityManager();
    EntityTransaction entityTransaction = entityManager.getTransaction();
    entityTransaction.begin();
    BlackList blacklist = entityManager.find(BlackList.class, player.getMac());
   
    if (blacklist != null) {
      entityManager.remove(blacklist);
      adminClient.send(new MessageMessage("System","<span style=\"color:red;\">"
          + player.getName()
View Full Code Here

              .setResponseType(IConstants.ResponseType.version);
          this.sendMessage(loginResponseMessage);
          return this;
        }
        EntityManager entityManager = PersistenceManager.getInstance().getEntityManager();
        BlackList bl = null;
        try {
          bl  = entityManager.find(BlackList.class, this.getClient().getIPAddress() );
          if (bl == null) {
            bl  = entityManager.find(BlackList.class, loginRequestMessage.getMacaddress() );
          }
View Full Code Here

TOP

Related Classes of de.creepsmash.server.model.BlackList

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.