summaryrefslogtreecommitdiffstats
path: root/src/com/gitblit/wicket/models/RepositoryModel.java
blob: 2aabfb19446c6dd10eeb78295c3f9c65d27210ef (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
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;
	}	
}