Class GrouperClientXmppMain

java.lang.Object
edu.internet2.middleware.grouperClientExt.xmpp.GrouperClientXmppMain

public class GrouperClientXmppMain extends Object
run an xmpp job to manage memberships in groups
  • Constructor Details

    • GrouperClientXmppMain

      public GrouperClientXmppMain()
  • Method Details

    • matchesFilter

      public static boolean matchesFilter(EsbEvent esbEvent, String filterString)
      see if the esb event matches an EL filter. Note the available objects are event for the EsbEvent, and grouperUtil for the GrouperUtil class which has a lot of utility methods
      Parameters:
      filterString -
      esbEvent -
      Returns:
      true if matches, false if doesnt
    • xmppPass

      public static String xmppPass()
      xmpp pass (decrypted if file)
      Returns:
      the pass
    • xmppPort

      public static int xmppPort()
      port to connect to, or 1522 as default
      Returns:
      port
    • xmppResource

      public static String xmppResource()
      xmpp resource
      Returns:
      the resource
    • xmppServer

      public static String xmppServer()
      xpp server to connect to
      Returns:
      xmpp server
    • xmppUser

      public static String xmppUser()
      xmpp user
      Returns:
      the user
    • xmppConnect

      public static void xmppConnect(GrouperClientXmppMessageHandler grouperClientXmppMessageHandler)
      connect to xmpp
      Parameters:
      grouperClientXmppMessageHandler - the handler for the message
    • allowFromJabberIds

      public static Set<String> allowFromJabberIds()
      Returns:
      the allowFromJabberIds
    • main

      public static void main(String[] args)
      Parameters:
      args -
    • fullRefreshGroup

      public static void fullRefreshGroup(GrouperClientXmppJob grouperClientXmppJob, String groupName)
      Parameters:
      grouperClientXmppJob -
      groupName -
    • xmppLoop

      public static void xmppLoop(GrouperClientXmppMessageHandler grouperClientXmppMessageHandler)
      note, this doesnt return, and you should only call this once...
      Parameters:
      grouperClientXmppMessageHandler - handle the message
    • scheduleJob

      public static void scheduleJob(String jobName, String quartzCronString, Class<? extends org.quartz.Job> jobClass)
      schedule a cron job
      Parameters:
      jobName - something unique and descriptive
      quartzCronString -
      jobClass -
    • scheduler

      public static org.quartz.Scheduler scheduler()
      scheduler
      Returns:
      scheduler
    • schedulerFactory

      public static org.quartz.SchedulerFactory schedulerFactory()
      lazy load (and start the scheduler) the scheduler factory
      Returns:
      the scheduler factory