Class GrouperClientXmppMain
java.lang.Object
edu.internet2.middleware.grouperClientExt.xmpp.GrouperClientXmppMain
run an xmpp job to manage memberships in groups
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
fullRefreshGroup
(GrouperClientXmppJob grouperClientXmppJob, String groupName) static void
static boolean
matchesFilter
(EsbEvent esbEvent, String filterString) see if the esb event matches an EL filter.static void
scheduleJob
(String jobName, String quartzCronString, Class<? extends org.quartz.Job> jobClass) schedule a cron jobstatic org.quartz.Scheduler
schedulerstatic org.quartz.SchedulerFactory
lazy load (and start the scheduler) the scheduler factorystatic void
xmppConnect
(GrouperClientXmppMessageHandler grouperClientXmppMessageHandler) connect to xmppstatic void
xmppLoop
(GrouperClientXmppMessageHandler grouperClientXmppMessageHandler) note, this doesnt return, and you should only call this once...static String
xmppPass()
xmpp pass (decrypted if file)static int
xmppPort()
port to connect to, or 1522 as defaultstatic String
xmpp resourcestatic String
xpp server to connect tostatic String
xmppUser()
xmpp user
-
Constructor Details
-
GrouperClientXmppMain
public GrouperClientXmppMain()
-
-
Method Details
-
matchesFilter
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
xmpp pass (decrypted if file)- Returns:
- the pass
-
xmppPort
public static int xmppPort()port to connect to, or 1522 as default- Returns:
- port
-
xmppResource
xmpp resource- Returns:
- the resource
-
xmppServer
xpp server to connect to- Returns:
- xmpp server
-
xmppUser
xmpp user- Returns:
- the user
-
xmppConnect
connect to xmpp- Parameters:
grouperClientXmppMessageHandler
- the handler for the message
-
allowFromJabberIds
- Returns:
- the allowFromJabberIds
-
main
- Parameters:
args
-
-
fullRefreshGroup
- Parameters:
grouperClientXmppJob
-groupName
-
-
xmppLoop
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 descriptivequartzCronString
-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
-