edu.vt.middleware.registry.manage
Class AbstractManager

java.lang.Object
  extended by edu.vt.middleware.registry.manage.AbstractManager
All Implemented Interfaces:
Manager
Direct Known Subclasses:
AbstractManagerEndpoint, AlumniManagerBean, EmployeeManagerBean, PasswordResetBean, PidManagerBean, ServiceManagerBean, StudentManagerBean

public abstract class AbstractManager
extends Object
implements Manager

Base implementation of a Manager.

Version:
$Revision: 7986 $
Author:
David Hawes

Field Summary
protected  Log logger
          Log for this class
private  ReplChanges rc
          Changes that need to be replicated
private  boolean replicate
          Whether to enqueue replication
protected  SessionContext sessionContext
          Environment data
private  Calendar systemDate
          Current system date
 
Constructor Summary
AbstractManager()
          Default constructor
 
Method Summary
 void addEntitlementToReplicate(Long uid, int priority)
          Add an entitlement to replicate to the ReplChanges.
 void addGroupToReplicate(String uugid, int priority)
          Add a group to replicate to the ReplChanges.
 void addPersonToReplicate(Long uid, int priority)
          Add a person to replicate to the ReplChanges.
 void addServiceToReplicate(String uusid, int priority)
          Add a service to replicate to the ReplChanges.
 ReplChanges getReplChanges()
          Get the ReplChanges.
 Calendar getSystemCalendar()
          Returns the calendar to use for time based manager functions.
 void setEnqueueReplication(Boolean b)
          Sets whether to replicate.
 void setSessionContext(SessionContext sc)
          Sets the Session Context.
 void setSystemCalendar(Calendar cal)
          Sets the calendar to use for time based manager functions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sessionContext

protected SessionContext sessionContext
Environment data


logger

protected final Log logger
Log for this class


rc

private ReplChanges rc
Changes that need to be replicated


replicate

private boolean replicate
Whether to enqueue replication


systemDate

private Calendar systemDate
Current system date

Constructor Detail

AbstractManager

public AbstractManager()
Default constructor

Method Detail

getReplChanges

public ReplChanges getReplChanges()
Get the ReplChanges.

Specified by:
getReplChanges in interface Manager
Returns:
ReplChanges - the changes to replicate

setSessionContext

public void setSessionContext(SessionContext sc)
Sets the Session Context.

Parameters:
sc - SessionContext

addPersonToReplicate

public void addPersonToReplicate(Long uid,
                                 int priority)
Add a person to replicate to the ReplChanges.

Specified by:
addPersonToReplicate in interface Manager
Parameters:
uid - Long
priority - int

addServiceToReplicate

public void addServiceToReplicate(String uusid,
                                  int priority)
Add a service to replicate to the ReplChanges.

Specified by:
addServiceToReplicate in interface Manager
Parameters:
uusid - String
priority - int

addGroupToReplicate

public void addGroupToReplicate(String uugid,
                                int priority)
Add a group to replicate to the ReplChanges.

Specified by:
addGroupToReplicate in interface Manager
Parameters:
uugid - String
priority - int

addEntitlementToReplicate

public void addEntitlementToReplicate(Long uid,
                                      int priority)
Add an entitlement to replicate to the ReplChanges.

Specified by:
addEntitlementToReplicate in interface Manager
Parameters:
uid - Long
priority - int

setEnqueueReplication

public void setEnqueueReplication(Boolean b)
Sets whether to replicate.

Specified by:
setEnqueueReplication in interface Manager
Parameters:
b - Boolean

setSystemCalendar

public void setSystemCalendar(Calendar cal)
Sets the calendar to use for time based manager functions.

Parameters:
cal - Calendar

getSystemCalendar

public Calendar getSystemCalendar()
Returns the calendar to use for time based manager functions.

Returns:
Calendar


Copyright © 2008 Virginia Tech. All Rights Reserved.