Project

General

Profile

« Previous | Next » 

Revision 7796

Added by Jing Tao over 11 years ago

Add a new class variable - isArchived for class IndexEvent.

View differences:

metacat-index/src/main/java/edu/ucsb/nceas/metacat/index/event/IndexEvent.java
43 43
    private Date date = null;
44 44
    private Identifier pid = null;
45 45
    private String description = null;
46
    private boolean isArchived = false;
46 47
    
47 48
    
48
    
49

  
49 50
    /**
50 51
     * Get the type of the event.
51 52
     * @return the type of the event
......
109 110
    public void setDescription(String description) {
110 111
        this.description = description;
111 112
    }
113
    
114
    /**
115
     * If the event has been archived.
116
     * @return true if it has been archived; otherwise false.
117
     */
118
    public boolean isArchived() {
119
        return isArchived;
120
    }
121

  
122
    /**
123
     * Set the event to be archived
124
     * @param isArchived
125
     */
126
    public void setArchived(boolean isArchived) {
127
        this.isArchived = isArchived;
128
    }
112 129
}
metacat-index/src/main/java/edu/ucsb/nceas/metacat/index/event/IndexEventLog.java
50 50
     * @return
51 51
     * @throws IndexEventLogException
52 52
     */
53
    public List<IndexEvent> getEvents(int type, Identifier pid, Date start, Date end) throws IndexEventLogException;
53
    public List<IndexEvent> getEvents(int type, Identifier pid, boolean archvied, Date start, Date end) throws IndexEventLogException;
54
    
54 55
}

Also available in: Unified diff