On 28/06/2012 16:44, Bob Lannoy wrote:
>
> Ok, looks like a stupid mistake :)
> I'll give it a go.
>
> Can you give me pointers on how I could use a scheduled task to remove
> users in the "toberemoved" state?
>

I guess you've already given a look at [1]; basically, you need to add
the class extending AbstractJob to your overlay and implement the actual
business logic (i.e. remove users) in doExecute() method.

About your business logic, you will need to

1. search from all users in the "toberemoved" state
2. delete such users

Depending on your needs, it would be wiser to use "low-level" objects
like as UserDAO or instead interact via REST calls.

Once done, you will be able to schedule the execution of this task from
the admin console.

Hope this helps.
Regards.

[1]
https://cwiki.apache.org/confluence/display/SYNCOPE/ScheduledTaskJobClass

-- 
Francesco Chicchiriccò

ASF Member, Apache Cocoon PMC and Apache Syncope PPMC Member
http://people.apache.org/~ilgrosso/

Reply via email to