Package com.exedio.cope.pattern
Class History
- java.lang.Object
-
- com.exedio.cope.Feature
-
- com.exedio.cope.Pattern
-
- com.exedio.cope.pattern.History
-
- All Implemented Interfaces:
Serializable
public final class History extends Pattern
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
History.Event
static class
History.Feature
-
Constructor Summary
Constructors Constructor Description History()
-
Method Summary
-
Methods inherited from class com.exedio.cope.Pattern
addSource, addSource, addSource, addSource, addSourceFeature, addSourceFeature, addSourceFeature, annotationField, equals, getGeneratedTypes, getSourceFeatures, getSourceFeaturesGather, getSourceFields, getSources, getSourceTypes, getType, hashCode, initialize, newSourceType, newSourceType, newSourceType, newSourceType, newSourceType, newSourceType, newType, newType, registerSource
-
Methods inherited from class com.exedio.cope.Feature
afterModelCreated, getAbstractType, getAnnotation, getID, getLocalizationKeys, getName, getPattern, isAnnotationPresent, isSourceAlready, mount, readResolve, requireMounted, toString, toString, writeReplace
-
-
-
-
Method Detail
-
onMount
protected void onMount()
Description copied from class:Pattern
Here you can do additional initialization not yet done in the constructor. In this method you can call methodsPattern.getType()
andFeature.getName()
for the first time.
-
getEventParent
@Nonnull public <P extends Item> ItemField<P> getEventParent(@Nonnull Class<P> parentClass)
-
getEventEvents
public PartOf<?> getEventEvents()
-
getEventDate
public DateField getEventDate()
-
getEventOrigin
@Deprecated public StringField getEventOrigin()
Deprecated.UsegetEventAuthor()
instead
-
getEventAuthor
public StringField getEventAuthor()
-
getEventCreation
@Deprecated public BooleanField getEventCreation()
Deprecated.UsegetEventNew()
instead
-
getEventNew
public BooleanField getEventNew()
-
getEventType
public Type<History.Event> getEventType()
-
getFeatureEvent
public ItemField<History.Event> getFeatureEvent()
-
getFeatureFeatures
public PartOf<?> getFeatureFeatures()
-
getFeature
public FeatureField<?> getFeature()
-
getFeatureId
public StringField getFeatureId()
-
getFeatureUniqueConstraint
public UniqueConstraint getFeatureUniqueConstraint()
-
getFeatureName
public StringField getFeatureName()
-
getFeatureOld
public StringField getFeatureOld()
-
getFeatureNew
public StringField getFeatureNew()
-
getFeatureType
public Type<History.Feature> getFeatureType()
-
getEvents
@Nonnull public List<History.Event> getEvents(Item item)
-
createEvent
@Nonnull public History.Event createEvent(@Nonnull Item item, @Nonnull String author, boolean isNew)
-
-