public class WtmpManager extends DataObjectFactory<WtmpManager.Wtmp> implements AnonymisingFactory
| Modifier and Type | Class and Description |
|---|---|
class |
WtmpManager.DateFilter |
class |
WtmpManager.LoginFinder |
class |
WtmpManager.Wtmp |
DataObjectFactory.AbstractDataObjectInput, DataObjectFactory.AbstractFinder<X>, DataObjectFactory.DataObjectAcceptFilter, DataObjectFactory.DataObjectInput, DataObjectFactory.DataObjectIntegerInput, DataObjectFactory.DestAcceptFilter<T extends DataObject>, DataObjectFactory.FilterAdapter, DataObjectFactory.FilterCounter, DataObjectFactory.FilterExists, DataObjectFactory.FilterIterator, DataObjectFactory.FilterSelector, DataObjectFactory.FilterSet, DataObjectFactory.Finder, DataObjectFactory.MakeRemoteFilterVisitor<R extends DataObject>, DataObjectFactory.MatchFilter, DataObjectFactory.ReferencedAdapter<I extends Indexed>, DataObjectFactory.ReferenceIterator<I extends Indexed>, DataObjectFactory.SortingDataObjectInput, DataObjectFactory.TimeAcceptFilter<T extends DataObject>, DataObjectFactory.TimeFilter| Modifier and Type | Field and Description |
|---|---|
static Feature |
NEW_HOST_EMAIL |
static java.lang.String |
WTMP_DATE_SESSION_KEY |
static java.lang.String |
WTMP_SESSION_KEY |
AUTO_CREATE_TABLES_FEATURE, COMPOSITES_SUFFIX, REJECT_MULTIPLE_RESULT_FEATURE, res| Constructor and Description |
|---|
WtmpManager(AppContext ctx,
java.lang.String homeTable) |
| Modifier and Type | Method and Description |
|---|---|
void |
addTable(Table t,
WtmpManager.Wtmp w,
SessionService viewer) |
void |
anonymise() |
void |
anonymise(SQLFilter<WtmpManager.Wtmp> fil) |
void |
anonymiseAppUser(AppUser person) |
WtmpManager.Wtmp |
create(AppUser p,
AppUser real,
HttpServletRequest req) |
void |
formatTable(Table t) |
SQLFilter<AppUser> |
getActiveFilter(java.util.Date d)
Get a filter for
AppUsers who have logged in since
a target date. |
FilterResult<WtmpManager.Wtmp> |
getCurrent() |
TableSpecification |
getDefaultTableSpecification(AppContext ctx,
java.lang.String homeTable)
Get the default table specification if the table is to be created.
|
FilterResult<WtmpManager.Wtmp> |
getLoginHistory(AppUser person) |
java.lang.Class<WtmpManager.Wtmp> |
getTarget()
Get a bound on the type of object produced by this factory for run-time checking.
|
java.util.Date |
lastLogin(AppUser person) |
protected WtmpManager.Wtmp |
makeBDO(Repository.Record res)
Construct a new Blank DataObject of the correct Class
This method takes a Record as an argument.
|
all, allowPreSelect, canCreate, canUpdate, checkComposite, convertToDestinationFilter, customiseForm, equals, exists, find, find, find, find, find, getAllIterator, getComposite, getComposites, getComposites, getConfigTag, getContext, getCount, getDefaultRelationshipFilter, getDefaults, getDestFilter, getExcludeFilter, getFieldConstraints, getFieldHelp, getFilter, getFilter, getFilter, getFinalSelectFilter, getFinalTableSpecification, getFindFilter, getFormCreator, getFormUpdate, getID, getIndex, getInput, getInput, getInput, getLogger, getMaxIdentifierLength, getNullable, getOptional, getOrder, getProperty, getReferenced, getReferenceFieldType, getReferenceFieldType, getRemoteFilter, getRemoteSQLFilter, getResult, getResult, getSelectFilter, getSelector, getSelector, getSelectors, getSupress, getTableSpecification, getTableStructureContributers, getTag, getTranslations, getUniqueIdName, hasComposite, hashCode, isMine, isMine, isMyReference, isValid, makeBDO, makeObject, makeRecord, makeReference, makeReference, matches, narrowSelector, narrowSelector, observeComposite, OrderBy, postCreateTableSetup, postSetContext, release, restrictDefaultInput, setComposites, setContext, setContext, setContextWithMake, setProperty, toString, updateTableclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetContextpublic static final Feature NEW_HOST_EMAIL
public static final java.lang.String WTMP_SESSION_KEY
public static final java.lang.String WTMP_DATE_SESSION_KEY
public WtmpManager(AppContext ctx, java.lang.String homeTable)
public TableSpecification getDefaultTableSpecification(AppContext ctx, java.lang.String homeTable)
DataObjectFactorygetDefaultTableSpecification in class DataObjectFactory<WtmpManager.Wtmp>ctx - AppContexthomeTable - String table name.public FilterResult<WtmpManager.Wtmp> getCurrent() throws DataFault
DataFaultpublic FilterResult<WtmpManager.Wtmp> getLoginHistory(AppUser person) throws DataFault
DataFaultprotected WtmpManager.Wtmp makeBDO(Repository.Record res) throws DataFault
DataObjectFactorymakeBDO in class DataObjectFactory<WtmpManager.Wtmp>res - Record to create object fromDataFaultpublic WtmpManager.Wtmp create(AppUser p, AppUser real, HttpServletRequest req) throws DataFault
DataFaultpublic void addTable(Table t, WtmpManager.Wtmp w, SessionService viewer)
public void formatTable(Table t)
public java.lang.Class<WtmpManager.Wtmp> getTarget()
DataObjectFactoryIndexedProducer.getTarget(). Normally this method should be overridden
each time we make a sub-class that narrows the produced type. However
checks should still pass if the super-type method is retained.getTarget in interface IndexedProducer<WtmpManager.Wtmp>getTarget in interface Targetted<WtmpManager.Wtmp>getTarget in class DataObjectFactory<WtmpManager.Wtmp>public void anonymise()
throws DataFault
anonymise in interface AnonymisingFactoryDataFaultpublic void anonymise(SQLFilter<WtmpManager.Wtmp> fil) throws DataFault
DataFaultpublic java.util.Date lastLogin(AppUser person) throws DataException
DataException