Package google.registry.model.reporting
Class HistoryEntryDao
java.lang.Object
google.registry.model.reporting.HistoryEntryDao
Retrieves
HistoryEntry
descendants (e.g. DomainHistory
).-
Field Summary
Modifier and TypeFieldDescriptionstatic com.google.common.collect.ImmutableMap
<Class<? extends EppResource>, Class<? extends HistoryEntry>> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Class
<? extends HistoryEntry> getHistoryClassFromParent
(Class<? extends EppResource> resourceType) static com.google.common.collect.ImmutableList
<HistoryEntry> loadAllHistoryObjects
(org.joda.time.DateTime afterTime, org.joda.time.DateTime beforeTime) Loads all history objects in the times specified, including all types.static Iterable
<HistoryEntry> loadHistoryObjectsByRegistrars
(com.google.common.collect.ImmutableCollection<String> registrarIds) Loads all history objects from all time from the given registrars.static com.google.common.collect.ImmutableList
<HistoryEntry> loadHistoryObjectsForResource
(VKey<? extends EppResource> resourceKey) Loads all history objects corresponding to the givenEppResource
.static <T extends HistoryEntry>
com.google.common.collect.ImmutableList<T> loadHistoryObjectsForResource
(VKey<? extends EppResource> resourceKey, Class<T> subclazz) Loads all history objects corresponding to the givenEppResource
and cast to the appropriate subclass.static com.google.common.collect.ImmutableList
<HistoryEntry> loadHistoryObjectsForResource
(VKey<? extends EppResource> resourceKey, org.joda.time.DateTime afterTime, org.joda.time.DateTime beforeTime) Loads all history objects in the time period specified for the givenEppResource
.
-
Field Details
-
RESOURCE_TYPES_TO_HISTORY_TYPES
public static com.google.common.collect.ImmutableMap<Class<? extends EppResource>,Class<? extends HistoryEntry>> RESOURCE_TYPES_TO_HISTORY_TYPES
-
-
Constructor Details
-
HistoryEntryDao
public HistoryEntryDao()
-
-
Method Details
-
loadAllHistoryObjects
public static com.google.common.collect.ImmutableList<HistoryEntry> loadAllHistoryObjects(org.joda.time.DateTime afterTime, org.joda.time.DateTime beforeTime) Loads all history objects in the times specified, including all types. -
loadHistoryObjectsForResource
public static com.google.common.collect.ImmutableList<HistoryEntry> loadHistoryObjectsForResource(VKey<? extends EppResource> resourceKey) Loads all history objects corresponding to the givenEppResource
. -
loadHistoryObjectsForResource
public static <T extends HistoryEntry> com.google.common.collect.ImmutableList<T> loadHistoryObjectsForResource(VKey<? extends EppResource> resourceKey, Class<T> subclazz) Loads all history objects corresponding to the givenEppResource
and cast to the appropriate subclass. -
loadHistoryObjectsForResource
public static com.google.common.collect.ImmutableList<HistoryEntry> loadHistoryObjectsForResource(VKey<? extends EppResource> resourceKey, org.joda.time.DateTime afterTime, org.joda.time.DateTime beforeTime) Loads all history objects in the time period specified for the givenEppResource
. -
loadHistoryObjectsByRegistrars
public static Iterable<HistoryEntry> loadHistoryObjectsByRegistrars(com.google.common.collect.ImmutableCollection<String> registrarIds) Loads all history objects from all time from the given registrars. -
getHistoryClassFromParent
public static Class<? extends HistoryEntry> getHistoryClassFromParent(Class<? extends EppResource> resourceType)
-