summaryrefslogtreecommitdiffstats
path: root/src/com/gitblit/wicket/models/RepositoryModel.java
blob: e7b524946bddaeb46c49889ea32244769e32477c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
package com.gitblit.wicket.models;

import java.io.Serializable;
import java.util.Date;

import com.gitblit.Constants.AccessRestrictionType;

public class RepositoryModel implements Serializable {

	private static final long serialVersionUID = 1L;
	public String name;
	public String description;
	public String owner;
	public Date lastChange;
	public boolean hasCommits;
	public boolean showRemoteBranches;
	public boolean useTickets;
	public boolean useDocs;
	public AccessRestrictionType accessRestriction;
	public boolean isFrozen;

	public RepositoryModel() {
		this.name = "";
		this.description = "";
		this.owner = "";
		this.lastChange = new Date(0);
		this.accessRestriction = AccessRestrictionType.NONE;
	}

	public RepositoryModel(String name, String description, String owner, Date lastchange) {
		this.name = name;
		this.description = description;
		this.owner = owner;
		this.lastChange = lastchange;
		this.accessRestriction = AccessRestrictionType.NONE;
	}
	
	@Override
	public String toString() {
		return name;
	}
}