/* * Copyright (C) 2020 Christian Pierre MOMON * * This file is part of AgirStatool, simple key value database. * * AgirStatool is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. * * AgirStatool is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with AgirStatool. If not, see . */ package org.april.agirstatool.core; import java.time.LocalDateTime; /** * The Class Projects. */ public class IssueStats { private long count; private long newCount; private long ongoingCount; private long resolvedCount; private long closedCount; private long rejectedCount; private long confirmedCount; private long maybeCount; private long waitingCount; private long unassignedCount; private long unassignedNewCount; private long unassignedOngoingCount; private long unassignedResolvedCount; private long unassignedClosedCount; private long unassignedRejectedCount; private long unassignedConfirmedCount; private long unassignedMaybeCount; private long unassignedWaitingCount; private LocalDateTime firstCreate; private LocalDateTime lastUpdate; /** * Instantiates a new issue stats. */ public IssueStats() { } /** * Gets the active count. * * @return the active count */ public long getActiveCount() { long result; result = this.newCount + this.confirmedCount + this.ongoingCount + this.waitingCount; // return result; } public long getClosedCount() { return this.closedCount; } public long getConcludedCount() { long result; result = this.rejectedCount + this.closedCount; // return result; } public long getConfirmedCount() { return this.confirmedCount; } public long getCount() { return this.count; } public LocalDateTime getFirstCreate() { return this.firstCreate; } public LocalDateTime getLastUpdate() { return this.lastUpdate; } public long getMaybeCount() { return this.maybeCount; } public long getNewCount() { return this.newCount; } public long getOngoingCount() { return this.ongoingCount; } public long getRejectedCount() { return this.rejectedCount; } public long getResolvedCount() { return this.resolvedCount; } /** * Gets the suspended count. * * @return the suspended count */ public long getSuspendedCount() { long result; result = this.maybeCount; // return result; } public long getUnassignedClosedCount() { return this.unassignedClosedCount; } /** * Gets the unassigned concluded count. * * @return the unassigned concluded count */ public long getUnassignedConcludedCount() { long result; result = this.unassignedRejectedCount + this.unassignedClosedCount; // return result; } public long getUnassignedConfirmedCount() { return this.unassignedConfirmedCount; } public long getUnassignedCount() { return this.unassignedCount; } public long getUnassignedMaybeCount() { return this.unassignedMaybeCount; } public long getUnassignedNewCount() { return this.unassignedNewCount; } public long getUnassignedOngoingCount() { return this.unassignedOngoingCount; } public long getUnassignedRejectedCount() { return this.unassignedRejectedCount; } public long getUnassignedResolvedCount() { return this.unassignedResolvedCount; } /** * Gets the unassigned started count. * * @return the unassigned started count */ public long getUnassignedStartedCount() { long result; result = this.unassignedConfirmedCount + this.unassignedOngoingCount + this.unassignedWaitingCount; // return result; } public long getUnassignedWaitingCount() { return this.unassignedWaitingCount; } public long getWaitingCount() { return this.waitingCount; } public void setClosedCount(final long closedCount) { this.closedCount = closedCount; } public void setConfirmedCount(final long confirmedCount) { this.confirmedCount = confirmedCount; } public void setCount(final long count) { this.count = count; } public void setFirstCreate(final LocalDateTime firstCreate) { this.firstCreate = firstCreate; } public void setLastUpdate(final LocalDateTime lastUpdate) { this.lastUpdate = lastUpdate; } public void setMaybeCount(final long maybeCount) { this.maybeCount = maybeCount; } public void setNewCount(final long newCount) { this.newCount = newCount; } public void setOngoingCount(final long ongoingCount) { this.ongoingCount = ongoingCount; } public void setRejectedCount(final long rejectedCount) { this.rejectedCount = rejectedCount; } public void setResolvedCount(final long resolvedCount) { this.resolvedCount = resolvedCount; } public void setUnassignedClosedCount(final long unassignedClosedCount) { this.unassignedClosedCount = unassignedClosedCount; } public void setUnassignedConfirmedCount(final long unassignedConfirmedCount) { this.unassignedConfirmedCount = unassignedConfirmedCount; } public void setUnassignedCount(final long unassignedCount) { this.unassignedCount = unassignedCount; } public void setUnassignedMaybeCount(final long unassignedMaybeCount) { this.unassignedMaybeCount = unassignedMaybeCount; } public void setUnassignedNewCount(final long unassignedNewCount) { this.unassignedNewCount = unassignedNewCount; } public void setUnassignedOngoingCount(final long unassignedOngoingCount) { this.unassignedOngoingCount = unassignedOngoingCount; } public void setUnassignedRejectedCount(final long unassignedRejectedCount) { this.unassignedRejectedCount = unassignedRejectedCount; } public void setUnassignedResolvedCount(final long unassignedResolvedCount) { this.unassignedResolvedCount = unassignedResolvedCount; } public void setUnassignedWaitingCount(final long unassignedWaitingCount) { this.unassignedWaitingCount = unassignedWaitingCount; } public void setWaitingCount(final long waitingCount) { this.waitingCount = waitingCount; } }