com.waveset.task
Class PasswordExpiration

java.lang.Object
  extended bycom.waveset.task.Executor
      extended bycom.waveset.task.PasswordExpiration

public class PasswordExpiration
extends Executor

A task that scans the repository for accounts with expired passwords, disables the expired accounts, and generates a report.

We iterate over all user accounts in the repository, checking their password expiration date. If we find any that are expired, we use the Provisioner to disable the account. For resources that don't natively support account disable, the provisioner will assign a random password.


Field Summary
protected  Subject _subject
          Subject who is running the task, used for Locale, where necessary
static java.lang.String code_id
           
static java.lang.String LIGHTHOUSE_ACCOUNT
          Name we see in the DisableViewer checkin results for status related to the Lighthouse user object.
static java.lang.String XML_HEADER
          The XML header for reports.
 
Fields inherited from class com.waveset.task.Executor
_monitor, _suspendRequested, _terminateRequested, trace
 
Constructor Summary
PasswordExpiration()
           
 
Method Summary
 void endReport()
          Helper method to close off the report after the account scan.
 void endUser(WavesetResult res, WavesetException ex)
          Add the second part of an expired user report row.
 void execute(TaskContext context, TaskInstance task)
          The main task execution method.
protected  java.util.Locale getLocale()
           
protected static java.util.Locale getLocale(Subject subject)
           
 void startReport()
          Helper method to initialize the report buffer before the account scan.
 void startUser(WSUser user)
          Add the first part of an expired user report row.
 
Methods inherited from class com.waveset.task.Executor
addExtendedResult, delete, doRealWork, getExtendedResult, getPool, isSuspendRequested, isTerminateRequested, println, processEvent, setPool, setSuspendRequested, setTerminateRequested
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

code_id

public static final java.lang.String code_id
See Also:
Constant Field Values

XML_HEADER

public static final java.lang.String XML_HEADER
The XML header for reports. Do we want a separate DTD for these?

See Also:
Constant Field Values

LIGHTHOUSE_ACCOUNT

public static final java.lang.String LIGHTHOUSE_ACCOUNT
Name we see in the DisableViewer checkin results for status related to the Lighthouse user object.

See Also:
Constant Field Values

_subject

protected Subject _subject
Subject who is running the task, used for Locale, where necessary

Constructor Detail

PasswordExpiration

public PasswordExpiration()
Method Detail

execute

public void execute(TaskContext context,
                    TaskInstance task)
The main task execution method.

Overrides:
execute in class Executor
See Also:
Executor.doRealWork(TaskContext, TaskInstance)

startReport

public void startReport()
Helper method to initialize the report buffer before the account scan.


startUser

public void startUser(WSUser user)
Add the first part of an expired user report row.


endUser

public void endUser(WavesetResult res,
                    WavesetException ex)
Add the second part of an expired user report row. The two args are mututally exclusive.


endReport

public void endReport()
Helper method to close off the report after the account scan.


getLocale

protected java.util.Locale getLocale()

getLocale

protected static java.util.Locale getLocale(Subject subject)