001package systems.dmx.time;
002
003import systems.dmx.core.Association;
004import systems.dmx.core.DMXObject;
005import systems.dmx.core.Topic;
006
007import java.util.Collection;
008
009
010
011public interface TimeService {
012
013    // === Timestamps ===
014
015    long getCreationTime(long objectId);
016
017    long getModificationTime(long objectId);
018
019    // ---
020
021    void setModified(DMXObject object);
022
023    // === Retrieval ===
024
025    Collection<Topic> getTopicsByCreationTime(long from, long to);
026
027    Collection<Topic> getTopicsByModificationTime(long from, long to);
028
029    Collection<Association> getAssociationsByCreationTime(long from, long to);
030
031    Collection<Association> getAssociationsByModificationTime(long from, long to);
032}