Class GrouperClientXmppMain
java.lang.Object
edu.internet2.middleware.grouperClientExt.xmpp.GrouperClientXmppMain
run an xmpp job to manage memberships in groups
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidfullRefreshGroup(GrouperClientXmppJob grouperClientXmppJob, String groupName) static voidstatic booleanmatchesFilter(EsbEvent esbEvent, String filterString) see if the esb event matches an EL filter.static voidscheduleJob(String jobName, String quartzCronString, Class<? extends org.quartz.Job> jobClass) schedule a cron jobstatic org.quartz.Schedulerschedulerstatic org.quartz.SchedulerFactorylazy load (and start the scheduler) the scheduler factorystatic voidxmppConnect(GrouperClientXmppMessageHandler grouperClientXmppMessageHandler) connect to xmppstatic voidxmppLoop(GrouperClientXmppMessageHandler grouperClientXmppMessageHandler) note, this doesnt return, and you should only call this once...static StringxmppPass()xmpp pass (decrypted if file)static intxmppPort()port to connect to, or 1522 as defaultstatic Stringxmpp resourcestatic Stringxpp server to connect tostatic StringxmppUser()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
-