Project

General

Profile

« Previous | Next » 

Revision 47454

fix a bug deleting mdstore

View differences:

Metadata.java
8 8
import java.util.Map;
9 9
import java.util.stream.Collectors;
10 10

  
11
import com.google.common.collect.Lists;
12
import com.google.common.collect.Maps;
13
import com.google.common.collect.Sets;
11
import org.springframework.data.annotation.Id;
14 12
import org.springframework.data.mongodb.core.index.CompoundIndex;
15 13
import org.springframework.data.mongodb.core.index.CompoundIndexes;
16 14
import org.springframework.data.mongodb.core.index.Indexed;
17 15
import org.springframework.data.mongodb.core.mapping.Document;
18 16

  
17
import com.google.common.collect.Lists;
18
import com.google.common.collect.Maps;
19
import com.google.common.collect.Sets;
20

  
19 21
@Document
20 22
@CompoundIndexes({
21 23
		@CompoundIndex(name = "fli_idx", def = "{'format': 1, 'layout': 1, 'interpretation': 1}")
22 24
})
23 25
public class Metadata {
24 26

  
27
	@Id
25 28
	@Indexed(unique = true)
26 29
	private String mdId;
27 30

  
......
76 79
	/**
77 80
	 * Gets the expiring days.
78 81
	 *
79
	 * @param info     the value
82
	 * @param info
83
	 *            the value
80 84
	 * @return the expiring days
81 85
	 */
82 86
	private long getExpiringDays(final ReadLock info) {
......
131 135
	}
132 136

  
133 137
	public String getCurrentId() {
134
		return this.currentId;
138
		return currentId;
135 139
	}
136 140

  
137 141
	public List<ReadLock> getReadLocks() {
138
		return this.readLocks;
142
		return readLocks;
139 143
	}
140 144

  
141 145
	public List<Transaction> getTransactions() {
142
		return this.transactions;
146
		return transactions;
143 147
	}
144 148

  
145 149
	public Metadata setCurrentId(final String currentId) {

Also available in: Unified diff