T - type of AllocationK - transition key for AllocationManagerpublic class AllocationPeriodTransitionProvider<T extends Allocation,K> extends uk.ac.ed.epcc.webapp.model.data.transition.AbstractViewTransitionFactory<AllocationPeriod,PeriodKey> implements uk.ac.ed.epcc.webapp.forms.transition.PathTransitionProvider<PeriodKey,AllocationPeriod>, uk.ac.ed.epcc.webapp.forms.transition.IndexTransitionFactory<PeriodKey,AllocationPeriod>
AllocationManager. Transitions only implement changes to the filter
including changes of time period. The changes to the records themselves is handled by
the AllocationManager| Modifier and Type | Class and Description |
|---|---|
class |
AllocationPeriodTransitionProvider.CreateTransition |
class |
AllocationPeriodTransitionProvider.DownTransition |
class |
AllocationPeriodTransitionProvider.FilterAction |
class |
AllocationPeriodTransitionProvider.FilterTransition |
class |
AllocationPeriodTransitionProvider.IndexTransition |
class |
AllocationPeriodTransitionProvider.UpTransition |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ALLOCATION_PERIOD_PREFIX |
static PeriodKey |
CREATE_KEY |
static PeriodKey |
DOWN_KEY |
static PeriodKey |
FILTER_KEY |
static PeriodKey |
INDEX_KEY |
static PeriodKey |
UP_KEY |
| Constructor and Description |
|---|
AllocationPeriodTransitionProvider(AllocationManager<K,T> manager) |
| Modifier and Type | Method and Description |
|---|---|
<R> R |
accept(uk.ac.ed.epcc.webapp.forms.transition.TransitionFactoryVisitor<R,AllocationPeriod,PeriodKey> vis) |
boolean |
allowTransition(uk.ac.ed.epcc.webapp.AppContext c,
AllocationPeriod target,
PeriodKey key) |
boolean |
canView(AllocationPeriod target,
uk.ac.ed.epcc.webapp.session.SessionService<?> sess) |
java.util.LinkedList<java.lang.String> |
getID(AllocationPeriod target) |
PeriodKey |
getIndexTransition() |
<X extends uk.ac.ed.epcc.webapp.content.ContentBuilder> |
getLogContent(X cb,
AllocationPeriod target,
uk.ac.ed.epcc.webapp.session.SessionService<?> sess) |
RecordSelector |
getSelector(AllocationPeriod view) |
<X extends uk.ac.ed.epcc.webapp.content.ContentBuilder> |
getSummaryContent(uk.ac.ed.epcc.webapp.AppContext c,
X cb,
AllocationPeriod target) |
AllocationPeriod |
getTarget(java.util.LinkedList<java.lang.String> id) |
java.lang.String |
getTargetName() |
getHelp, getTopContentaddTransition, getContext, getTransition, getTransitions, lookupTransitionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic static final java.lang.String ALLOCATION_PERIOD_PREFIX
public static PeriodKey UP_KEY
public static PeriodKey DOWN_KEY
public static final PeriodKey FILTER_KEY
public static PeriodKey INDEX_KEY
public static PeriodKey CREATE_KEY
public AllocationPeriodTransitionProvider(AllocationManager<K,T> manager)
public java.lang.String getTargetName()
getTargetName in interface uk.ac.ed.epcc.webapp.forms.transition.TransitionFactory<PeriodKey,AllocationPeriod>public boolean allowTransition(uk.ac.ed.epcc.webapp.AppContext c,
AllocationPeriod target,
PeriodKey key)
allowTransition in interface uk.ac.ed.epcc.webapp.forms.transition.TransitionFactory<PeriodKey,AllocationPeriod>public <X extends uk.ac.ed.epcc.webapp.content.ContentBuilder> X getSummaryContent(uk.ac.ed.epcc.webapp.AppContext c,
X cb,
AllocationPeriod target)
getSummaryContent in interface uk.ac.ed.epcc.webapp.forms.transition.TransitionFactory<PeriodKey,AllocationPeriod>public <X extends uk.ac.ed.epcc.webapp.content.ContentBuilder> X getLogContent(X cb,
AllocationPeriod target,
uk.ac.ed.epcc.webapp.session.SessionService<?> sess)
getLogContent in interface uk.ac.ed.epcc.webapp.forms.transition.ViewTransitionFactory<PeriodKey,AllocationPeriod>getLogContent in class uk.ac.ed.epcc.webapp.model.data.transition.AbstractViewTransitionFactory<AllocationPeriod,PeriodKey>public boolean canView(AllocationPeriod target, uk.ac.ed.epcc.webapp.session.SessionService<?> sess)
canView in interface uk.ac.ed.epcc.webapp.forms.transition.ViewTransitionFactory<PeriodKey,AllocationPeriod>public <R> R accept(uk.ac.ed.epcc.webapp.forms.transition.TransitionFactoryVisitor<R,AllocationPeriod,PeriodKey> vis)
accept in interface uk.ac.ed.epcc.webapp.forms.transition.TransitionFactory<PeriodKey,AllocationPeriod>public RecordSelector getSelector(AllocationPeriod view)
public AllocationPeriod getTarget(java.util.LinkedList<java.lang.String> id)
getTarget in interface uk.ac.ed.epcc.webapp.forms.transition.PathTransitionProvider<PeriodKey,AllocationPeriod>public java.util.LinkedList<java.lang.String> getID(AllocationPeriod target)
getID in interface uk.ac.ed.epcc.webapp.forms.transition.PathTransitionProvider<PeriodKey,AllocationPeriod>public PeriodKey getIndexTransition()
getIndexTransition in interface uk.ac.ed.epcc.webapp.forms.transition.IndexTransitionFactory<PeriodKey,AllocationPeriod>