com.waveset.provision
Class ReconMonitor

java.lang.Object
  extended bycom.waveset.provision.ReconMonitor
All Implemented Interfaces:
ProvisionMonitor

public class ReconMonitor
extends java.lang.Object
implements ProvisionMonitor


Field Summary
static java.lang.String code_id
           
protected static Trace trace
           
 
Constructor Summary
ReconMonitor()
           
 
Method Summary
 void accountCreated(LighthouseContext context, ProvisioningOptions options, WSUser user, ResourceOp op)
          Called after an account has been created.
 void accountDeleted(LighthouseContext context, ProvisioningOptions options, WSUser user, ResourceOp op)
          Called after an account has been deleted.
 void accountFetched(LighthouseContext context, ProvisioningOptions options, WSUser user, ResourceOp op, WSUser fetched)
          Called immediately after an account has been fetched from a resource.
 void accountRenamed(LighthouseContext context, ProvisioningOptions options, java.lang.String origAccountId, ResourceOp op)
          Called after an account has been renamed.
 void accountUpdated(LighthouseContext context, ProvisioningOptions options, WSUser user, ResourceOp op)
          Called after an account has been updated.
protected  void createReconIndex(Resource res, ResourceInfo info, ResourceResult result)
          Update the AccountIndex with a Lighthouse-created resource account so that recon won't think the account was created natively.
protected  void deleteReconIndex(Resource res, ResourceInfo info, ResourceResult result)
          Update the AccountIndex with a Lighthouse-deleted resource account so that recon won't think the account was deleted natively.
protected  void indexFoundAccount(Resource r, ResourceInfo info, java.lang.String accountId, WSUser fetched, ResourceResult result)
          Record a found or confirmed account in the AccountIndex.
protected  void indexMissingAccount(Resource r, ResourceInfo info, java.lang.String accountId, ResourceResult result)
          Report a missing or deleted account in the AccountIndex.
protected  void renameAccountIndexEntry(Resource res, java.lang.String origAccountId, java.lang.String newAccountId, java.lang.String accountGUID, ResourceResult result)
          Rename an entry in the Account Index.
protected  void updateReconIndex(Resource res, ResourceInfo info, ResourceResult result)
          Update the Account Index (with a Lighthouse-initiated change) so that recon won't think the account was updated natively.
 
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

trace

protected static final Trace trace
Constructor Detail

ReconMonitor

public ReconMonitor()
Method Detail

accountFetched

public void accountFetched(LighthouseContext context,
                           ProvisioningOptions options,
                           WSUser user,
                           ResourceOp op,
                           WSUser fetched)
                    throws WavesetException
Called immediately after an account has been fetched from a resource.

Specified by:
accountFetched in interface ProvisionMonitor
Throws:
WavesetException

accountCreated

public void accountCreated(LighthouseContext context,
                           ProvisioningOptions options,
                           WSUser user,
                           ResourceOp op)
                    throws WavesetException
Called after an account has been created.

Specified by:
accountCreated in interface ProvisionMonitor
Throws:
WavesetException

accountDeleted

public void accountDeleted(LighthouseContext context,
                           ProvisioningOptions options,
                           WSUser user,
                           ResourceOp op)
                    throws WavesetException
Called after an account has been deleted.

Specified by:
accountDeleted in interface ProvisionMonitor
Throws:
WavesetException

accountRenamed

public void accountRenamed(LighthouseContext context,
                           ProvisioningOptions options,
                           java.lang.String origAccountId,
                           ResourceOp op)
                    throws WavesetException
Called after an account has been renamed.

Specified by:
accountRenamed in interface ProvisionMonitor
Throws:
WavesetException

accountUpdated

public void accountUpdated(LighthouseContext context,
                           ProvisioningOptions options,
                           WSUser user,
                           ResourceOp op)
                    throws WavesetException
Called after an account has been updated.

Specified by:
accountUpdated in interface ProvisionMonitor
Throws:
WavesetException

createReconIndex

protected void createReconIndex(Resource res,
                                ResourceInfo info,
                                ResourceResult result)
Update the AccountIndex with a Lighthouse-created resource account so that recon won't think the account was created natively.


deleteReconIndex

protected void deleteReconIndex(Resource res,
                                ResourceInfo info,
                                ResourceResult result)
Update the AccountIndex with a Lighthouse-deleted resource account so that recon won't think the account was deleted natively.


indexMissingAccount

protected void indexMissingAccount(Resource r,
                                   ResourceInfo info,
                                   java.lang.String accountId,
                                   ResourceResult result)
Report a missing or deleted account in the AccountIndex.


indexFoundAccount

protected void indexFoundAccount(Resource r,
                                 ResourceInfo info,
                                 java.lang.String accountId,
                                 WSUser fetched,
                                 ResourceResult result)
Record a found or confirmed account in the AccountIndex.


updateReconIndex

protected void updateReconIndex(Resource res,
                                ResourceInfo info,
                                ResourceResult result)
Update the Account Index (with a Lighthouse-initiated change) so that recon won't think the account was updated natively.

See Also:
#updateReconBaseline

renameAccountIndexEntry

protected void renameAccountIndexEntry(Resource res,
                                       java.lang.String origAccountId,
                                       java.lang.String newAccountId,
                                       java.lang.String accountGUID,
                                       ResourceResult result)
Rename an entry in the Account Index.