| | |
| | | public Set<String> forks;
|
| | | public String originRepository;
|
| | | public boolean verifyCommitter;
|
| | | public String gcThreshold;
|
| | | public int gcPeriod;
|
| | | public int maxActivityCommits;
|
| | | |
| | | public transient boolean isCollectingGarbage;
|
| | | public Date lastGC;
|
| | | public String sparkleshareId;
|
| | |
|
| | | public RepositoryModel() {
|
| | | this("", "", "", new Date(0));
|
| | |
| | | return !accessRestriction.atLeast(AccessRestrictionType.VIEW);
|
| | | }
|
| | |
|
| | | public boolean isSparkleshared() {
|
| | | return !StringUtils.isEmpty(sparkleshareId);
|
| | | }
|
| | | |
| | | public RepositoryModel cloneAs(String cloneName) {
|
| | | RepositoryModel clone = new RepositoryModel();
|
| | | clone.originRepository = name;
|
| | |
| | | clone.useTickets = useTickets;
|
| | | clone.skipSizeCalculation = skipSizeCalculation;
|
| | | clone.skipSummaryMetrics = skipSummaryMetrics;
|
| | | clone.sparkleshareId = sparkleshareId; |
| | | return clone;
|
| | | }
|
| | | } |