Package com.uwyn.drone.modules.seenmanagement

Examples of com.uwyn.drone.modules.seenmanagement.DatabaseSeen


  }
 
  public void channelMessage(Bot bot, Channel channel, String nick, ServerMessage fullMessage)
  {
    SeenData    seen_data = new SeenData(nick, new Timestamp(Calendar.getInstance().getTimeInMillis()), fullMessage.getTrailing(), fullMessage.getRaw());
    DatabaseSeen  database_seen = DatabaseSeenFactory.get();
    try
    {
      database_seen.recordSeen(bot, channel, seen_data);
    }
    catch (SeenManagerException e)
    {
      Logger.getLogger("com.uwyn.drone.modules").severe(ExceptionUtils.getExceptionStackTrace(e));
    }
View Full Code Here


    String reply = null;
 
    try
    {
      // query the database for information about the nickname
      DatabaseSeen  database_seen = DatabaseSeenFactory.get();
      SeenData    search_result = database_seen.getSeen(bot, channel, seen);

      DATE_FORMAT.setTimeZone(TimeZone.getTimeZone(DroneConfig.getTimezone()));

      // check if the nick is part of the current channel names
      Iterator  channel_nicknames_it = mFinishedChannelNames.getSeens(channel).iterator();
View Full Code Here

    print(mTemplate);
  }
 
  public void doConfirm()
  {
    DatabaseSeen  database_seen = DatabaseSeenFactory.get();
    try
    {
      database_seen.install();
      mTemplate.setBlock("authenticated_content", "installed_content");
    }
    catch (SeenManagerException e)
    {
      ValidationBuilderXhtml builder = new ValidationBuilderXhtml();
View Full Code Here

    print(mTemplate);
  }
 
  public void doConfirm()
  {
    DatabaseSeen  database_seen = DatabaseSeenFactory.get();
    try
    {
      database_seen.remove();
      mTemplate.setBlock("authenticated_content", "removed_content");
    }
    catch (SeenManagerException e)
    {
      ValidationBuilderXhtml builder = new ValidationBuilderXhtml();
View Full Code Here

TOP

Related Classes of com.uwyn.drone.modules.seenmanagement.DatabaseSeen

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.