Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
115d303
Refactor Quota Summary API
Feb 28, 2025
36fe76e
Fixes imports
Mar 6, 2025
6897eeb
Fix QuotaServiceImplTest
Mar 11, 2025
87feb02
Update plugins/database/quota/src/main/java/org/apache/cloudstack/api…
julien-vaz Apr 9, 2025
1dcfbbf
Fix QuotaSummaryCmd
Jun 4, 2025
6e7eeb5
Remove unnecessary imports
Jun 9, 2025
1cceb81
Remove unused createQuotaSummaryResponse declarations
Jul 1, 2025
e723223
Remove unnecessary imports
Jul 2, 2025
2800239
Update plugins/database/quota/src/main/java/org/apache/cloudstack/api…
julien-vaz Jul 8, 2025
4d3ad22
Fix QuotaSummaryCmd
Jul 10, 2025
34fb78b
Fix QuotaResponseBuilderImplTest
Jul 11, 2025
b4db390
Refactor test
Jul 11, 2025
d9984c0
Fix QuotaSummaryCmd
Aug 7, 2025
8cdd7fd
Fix projectid behavior
Aug 8, 2025
37ebd68
Simplify QuotaSummary and deprecate listall
Aug 18, 2025
75e851e
Fix createQuotaSummaryResponse
Aug 28, 2025
ba99ec8
Remove unused import
Sep 2, 2025
589a07e
Merge remote-tracking branch 'upstream/main' into refactor-quota-summ…
winterhazel Feb 3, 2026
fc92e39
Apply suggestions + some adjustments
winterhazel Feb 3, 2026
b532758
Remove duplicated check
winterhazel Feb 3, 2026
c90b609
Fix checkstyle
winterhazel Feb 3, 2026
a146047
Adjust entity owner
winterhazel Feb 4, 2026
592f1cb
Remove unused method + fix tests
winterhazel Feb 11, 2026
e4ee69e
Add missing @ACL to some parameters
winterhazel Feb 19, 2026
5bdac75
Adjust how the parameters behave
winterhazel Feb 20, 2026
67d4d0b
Merge remote-tracking branch 'upstream/main' into refactor-quota-summ…
winterhazel Mar 1, 2026
90180dd
Allow domain admins and users to use keyword
winterhazel Mar 1, 2026
2ae0806
Merge remote-tracking branch 'origin/main' into refactor-quota-summar…
winterhazel Mar 11, 2026
abfc638
Address reviews
winterhazel Mar 31, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
public class ApiConstants {
public static final String ACCOUNT = "account";
public static final String ACCOUNTS = "accounts";
public static final String ACCOUNT_STATE_TO_SHOW = "accountstatetoshow";
public static final String ACCOUNT_TYPE = "accounttype";
public static final String ACCOUNT_ID = "accountid";
public static final String ACCOUNT_IDS = "accountids";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@
SearchCriteria<DomainVO> sc = DomainPairSearch.create();
sc.setParameters("id", parentId, childId);

List<DomainVO> domainPair = listBy(sc);
List<DomainVO> domainPair = listIncludingRemovedBy(sc);

Check warning on line 265 in engine/schema/src/main/java/com/cloud/domain/dao/DomainDaoImpl.java

View check run for this annotation

Codecov / codecov/patch

engine/schema/src/main/java/com/cloud/domain/dao/DomainDaoImpl.java#L265

Added line #L265 was not covered by tests

if ((domainPair != null) && (domainPair.size() == 2)) {
DomainVO d1 = domainPair.get(0);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apache License, Version 2.0 (the
-- "License"); you may not use this file except in compliance
-- with the License. You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing,
-- software distributed under the License is distributed on an
-- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-- KIND, either express or implied. See the License for the
-- specific language governing permissions and limitations
-- under the License.

-- cloud_usage.quota_summary_view source

-- Create view for quota summary
DROP VIEW IF EXISTS `cloud_usage`.`quota_summary_view`;
CREATE VIEW `cloud_usage`.`quota_summary_view` AS
SELECT
cloud_usage.quota_account.account_id AS account_id,
cloud_usage.quota_account.quota_balance AS quota_balance,
cloud_usage.quota_account.quota_balance_date AS quota_balance_date,
cloud_usage.quota_account.quota_enforce AS quota_enforce,
cloud_usage.quota_account.quota_min_balance AS quota_min_balance,
cloud_usage.quota_account.quota_alert_date AS quota_alert_date,
cloud_usage.quota_account.quota_alert_type AS quota_alert_type,
cloud_usage.quota_account.last_statement_date AS last_statement_date,
cloud.account.uuid AS account_uuid,
cloud.account.account_name AS account_name,
cloud.account.state AS account_state,
cloud.account.removed AS account_removed,
cloud.domain.id AS domain_id,
cloud.domain.uuid AS domain_uuid,
cloud.domain.name AS domain_name,
cloud.domain.path AS domain_path,
cloud.domain.removed AS domain_removed,
cloud.projects.uuid AS project_uuid,
cloud.projects.name AS project_name,
cloud.projects.removed AS project_removed
FROM
cloud_usage.quota_account
INNER JOIN cloud.account ON (cloud.account.id = cloud_usage.quota_account.account_id)
INNER JOIN cloud.domain ON (cloud.domain.id = cloud.account.domain_id)
LEFT JOIN cloud.projects ON (cloud.account.type = 5 AND cloud.account.id = cloud.projects.project_account_id);
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.
package org.apache.cloudstack.quota;

public enum QuotaAccountStateFilter {
ALL, ACTIVE, REMOVED;

Check warning on line 20 in framework/quota/src/main/java/org/apache/cloudstack/quota/QuotaAccountStateFilter.java

View check run for this annotation

Codecov / codecov/patch

framework/quota/src/main/java/org/apache/cloudstack/quota/QuotaAccountStateFilter.java#L19-L20

Added lines #L19 - L20 were not covered by tests

public static QuotaAccountStateFilter getValue(String value) {

Check warning on line 22 in framework/quota/src/main/java/org/apache/cloudstack/quota/QuotaAccountStateFilter.java

View check run for this annotation

Codecov / codecov/patch

framework/quota/src/main/java/org/apache/cloudstack/quota/QuotaAccountStateFilter.java#L22

Added line #L22 was not covered by tests
for (QuotaAccountStateFilter state : values()) {
if (state.name().equalsIgnoreCase(value)) {
return state;

Check warning on line 25 in framework/quota/src/main/java/org/apache/cloudstack/quota/QuotaAccountStateFilter.java

View check run for this annotation

Codecov / codecov/patch

framework/quota/src/main/java/org/apache/cloudstack/quota/QuotaAccountStateFilter.java#L25

Added line #L25 was not covered by tests
}
}

return null;
}

Check warning on line 30 in framework/quota/src/main/java/org/apache/cloudstack/quota/QuotaAccountStateFilter.java

View check run for this annotation

Codecov / codecov/patch

framework/quota/src/main/java/org/apache/cloudstack/quota/QuotaAccountStateFilter.java#L29-L30

Added lines #L29 - L30 were not covered by tests
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.

package org.apache.cloudstack.quota.dao;

import java.util.List;

import org.apache.cloudstack.quota.QuotaAccountStateFilter;
import org.apache.cloudstack.quota.vo.QuotaSummaryVO;

import com.cloud.utils.Pair;
import com.cloud.utils.db.GenericDao;

public interface QuotaSummaryDao extends GenericDao<QuotaSummaryVO, Long> {

Pair<List<QuotaSummaryVO>, Integer> listQuotaSummariesForAccountAndOrDomain(Long accountId, String accountName, Long domainId, String domainPath,
QuotaAccountStateFilter accountStateFilter, Long startIndex, Long pageSize);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.

package org.apache.cloudstack.quota.dao;

import java.util.List;

import org.apache.cloudstack.quota.QuotaAccountStateFilter;
import org.apache.cloudstack.quota.vo.QuotaSummaryVO;

import com.cloud.utils.Pair;
import com.cloud.utils.db.Filter;
import com.cloud.utils.db.GenericDaoBase;
import com.cloud.utils.db.SearchBuilder;
import com.cloud.utils.db.SearchCriteria;
import com.cloud.utils.db.Transaction;
import com.cloud.utils.db.TransactionCallback;
import com.cloud.utils.db.TransactionLegacy;

public class QuotaSummaryDaoImpl extends GenericDaoBase<QuotaSummaryVO, Long> implements QuotaSummaryDao {

@Override
public Pair<List<QuotaSummaryVO>, Integer> listQuotaSummariesForAccountAndOrDomain(Long accountId, String accountName, Long domainId, String domainPath,
QuotaAccountStateFilter accountStateFilter, Long startIndex, Long pageSize) {
SearchCriteria<QuotaSummaryVO> searchCriteria = createListQuotaSummariesSearchCriteria(accountId, accountName, domainId, domainPath, accountStateFilter);
Filter filter = new Filter(QuotaSummaryVO.class, "accountName", true, startIndex, pageSize);

Check warning on line 40 in framework/quota/src/main/java/org/apache/cloudstack/quota/dao/QuotaSummaryDaoImpl.java

View check run for this annotation

Codecov / codecov/patch

framework/quota/src/main/java/org/apache/cloudstack/quota/dao/QuotaSummaryDaoImpl.java#L38-L40

Added lines #L38 - L40 were not covered by tests

return Transaction.execute(TransactionLegacy.USAGE_DB, (TransactionCallback<Pair<List<QuotaSummaryVO>, Integer>>) status -> searchAndCount(searchCriteria, filter));
}

Check warning on line 43 in framework/quota/src/main/java/org/apache/cloudstack/quota/dao/QuotaSummaryDaoImpl.java

View check run for this annotation

Codecov / codecov/patch

framework/quota/src/main/java/org/apache/cloudstack/quota/dao/QuotaSummaryDaoImpl.java#L42-L43

Added lines #L42 - L43 were not covered by tests

protected SearchCriteria<QuotaSummaryVO> createListQuotaSummariesSearchCriteria(Long accountId, String accountName, Long domainId, String domainPath,
QuotaAccountStateFilter accountStateFilter) {
SearchCriteria<QuotaSummaryVO> searchCriteria = createListQuotaSummariesSearchBuilder(accountStateFilter).create();

Check warning on line 47 in framework/quota/src/main/java/org/apache/cloudstack/quota/dao/QuotaSummaryDaoImpl.java

View check run for this annotation

Codecov / codecov/patch

framework/quota/src/main/java/org/apache/cloudstack/quota/dao/QuotaSummaryDaoImpl.java#L46-L47

Added lines #L46 - L47 were not covered by tests

searchCriteria.setParametersIfNotNull("accountId", accountId);
searchCriteria.setParametersIfNotNull("domainId", domainId);

Check warning on line 50 in framework/quota/src/main/java/org/apache/cloudstack/quota/dao/QuotaSummaryDaoImpl.java

View check run for this annotation

Codecov / codecov/patch

framework/quota/src/main/java/org/apache/cloudstack/quota/dao/QuotaSummaryDaoImpl.java#L49-L50

Added lines #L49 - L50 were not covered by tests

if (accountName != null) {
searchCriteria.setParameters("accountName", "%" + accountName + "%");

Check warning on line 53 in framework/quota/src/main/java/org/apache/cloudstack/quota/dao/QuotaSummaryDaoImpl.java

View check run for this annotation

Codecov / codecov/patch

framework/quota/src/main/java/org/apache/cloudstack/quota/dao/QuotaSummaryDaoImpl.java#L53

Added line #L53 was not covered by tests
}

if (domainPath != null) {
searchCriteria.setParameters("domainPath", domainPath + "%");

Check warning on line 57 in framework/quota/src/main/java/org/apache/cloudstack/quota/dao/QuotaSummaryDaoImpl.java

View check run for this annotation

Codecov / codecov/patch

framework/quota/src/main/java/org/apache/cloudstack/quota/dao/QuotaSummaryDaoImpl.java#L57

Added line #L57 was not covered by tests
}

return searchCriteria;
}

Check warning on line 61 in framework/quota/src/main/java/org/apache/cloudstack/quota/dao/QuotaSummaryDaoImpl.java

View check run for this annotation

Codecov / codecov/patch

framework/quota/src/main/java/org/apache/cloudstack/quota/dao/QuotaSummaryDaoImpl.java#L60-L61

Added lines #L60 - L61 were not covered by tests

protected SearchBuilder<QuotaSummaryVO> createListQuotaSummariesSearchBuilder(QuotaAccountStateFilter accountStateFilter) {
SearchBuilder<QuotaSummaryVO> searchBuilder = createSearchBuilder();

Check warning on line 64 in framework/quota/src/main/java/org/apache/cloudstack/quota/dao/QuotaSummaryDaoImpl.java

View check run for this annotation

Codecov / codecov/patch

framework/quota/src/main/java/org/apache/cloudstack/quota/dao/QuotaSummaryDaoImpl.java#L63-L64

Added lines #L63 - L64 were not covered by tests

searchBuilder.and("accountId", searchBuilder.entity().getAccountId(), SearchCriteria.Op.EQ);
searchBuilder.and("accountName", searchBuilder.entity().getAccountName(), SearchCriteria.Op.LIKE);
searchBuilder.and("domainId", searchBuilder.entity().getDomainId(), SearchCriteria.Op.EQ);
searchBuilder.and("domainPath", searchBuilder.entity().getDomainPath(), SearchCriteria.Op.LIKE);

Check warning on line 69 in framework/quota/src/main/java/org/apache/cloudstack/quota/dao/QuotaSummaryDaoImpl.java

View check run for this annotation

Codecov / codecov/patch

framework/quota/src/main/java/org/apache/cloudstack/quota/dao/QuotaSummaryDaoImpl.java#L66-L69

Added lines #L66 - L69 were not covered by tests

if (QuotaAccountStateFilter.REMOVED.equals(accountStateFilter)) {
searchBuilder.and("accountRemoved", searchBuilder.entity().getAccountRemoved(), SearchCriteria.Op.NNULL);

Check warning on line 72 in framework/quota/src/main/java/org/apache/cloudstack/quota/dao/QuotaSummaryDaoImpl.java

View check run for this annotation

Codecov / codecov/patch

framework/quota/src/main/java/org/apache/cloudstack/quota/dao/QuotaSummaryDaoImpl.java#L72

Added line #L72 was not covered by tests
} else if (QuotaAccountStateFilter.ACTIVE.equals(accountStateFilter)) {
searchBuilder.and("accountRemoved", searchBuilder.entity().getAccountRemoved(), SearchCriteria.Op.NULL);

Check warning on line 74 in framework/quota/src/main/java/org/apache/cloudstack/quota/dao/QuotaSummaryDaoImpl.java

View check run for this annotation

Codecov / codecov/patch

framework/quota/src/main/java/org/apache/cloudstack/quota/dao/QuotaSummaryDaoImpl.java#L74

Added line #L74 was not covered by tests
}

return searchBuilder;
}

Check warning on line 78 in framework/quota/src/main/java/org/apache/cloudstack/quota/dao/QuotaSummaryDaoImpl.java

View check run for this annotation

Codecov / codecov/patch

framework/quota/src/main/java/org/apache/cloudstack/quota/dao/QuotaSummaryDaoImpl.java#L77-L78

Added lines #L77 - L78 were not covered by tests

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,154 @@
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.

package org.apache.cloudstack.quota.vo;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.cloud.user.Account;

@Entity
@Table(name = "quota_summary_view")
public class QuotaSummaryVO {

@Id

Check warning on line 38 in framework/quota/src/main/java/org/apache/cloudstack/quota/vo/QuotaSummaryVO.java

View check run for this annotation

Codecov / codecov/patch

framework/quota/src/main/java/org/apache/cloudstack/quota/vo/QuotaSummaryVO.java#L38

Added line #L38 was not covered by tests
@Column(name = "account_id")
private Long accountId = null;

@Column(name = "quota_enforce")
private Integer quotaEnforce = 0;

Check warning on line 43 in framework/quota/src/main/java/org/apache/cloudstack/quota/vo/QuotaSummaryVO.java

View check run for this annotation

Codecov / codecov/patch

framework/quota/src/main/java/org/apache/cloudstack/quota/vo/QuotaSummaryVO.java#L42-L43

Added lines #L42 - L43 were not covered by tests

@Column(name = "quota_balance")
private BigDecimal quotaBalance;

@Column(name = "quota_balance_date")

Check warning on line 48 in framework/quota/src/main/java/org/apache/cloudstack/quota/vo/QuotaSummaryVO.java

View check run for this annotation

Codecov / codecov/patch

framework/quota/src/main/java/org/apache/cloudstack/quota/vo/QuotaSummaryVO.java#L48

Added line #L48 was not covered by tests
@Temporal(value = TemporalType.TIMESTAMP)
private Date quotaBalanceDate = null;

@Column(name = "quota_min_balance")
private BigDecimal quotaMinBalance;

@Column(name = "quota_alert_type")

Check warning on line 55 in framework/quota/src/main/java/org/apache/cloudstack/quota/vo/QuotaSummaryVO.java

View check run for this annotation

Codecov / codecov/patch

framework/quota/src/main/java/org/apache/cloudstack/quota/vo/QuotaSummaryVO.java#L55

Added line #L55 was not covered by tests
private Integer quotaAlertType = null;

@Column(name = "quota_alert_date")

Check warning on line 58 in framework/quota/src/main/java/org/apache/cloudstack/quota/vo/QuotaSummaryVO.java

View check run for this annotation

Codecov / codecov/patch

framework/quota/src/main/java/org/apache/cloudstack/quota/vo/QuotaSummaryVO.java#L58

Added line #L58 was not covered by tests
@Temporal(value = TemporalType.TIMESTAMP)
private Date quotaAlertDate = null;

@Column(name = "last_statement_date")

Check warning on line 62 in framework/quota/src/main/java/org/apache/cloudstack/quota/vo/QuotaSummaryVO.java

View check run for this annotation

Codecov / codecov/patch

framework/quota/src/main/java/org/apache/cloudstack/quota/vo/QuotaSummaryVO.java#L62

Added line #L62 was not covered by tests
@Temporal(value = TemporalType.TIMESTAMP)
private Date lastStatementDate = null;

@Column(name = "account_uuid")
private String accountUuid;

@Column(name = "account_name")
private String accountName;

@Column(name = "account_state")
@Enumerated(EnumType.STRING)
private Account.State accountState;

@Column(name = "account_removed")
private Date accountRemoved;

@Column(name = "domain_id")
private Long domainId;

@Column(name = "domain_uuid")
private String domainUuid;

@Column(name = "domain_name")
private String domainName;

@Column(name = "domain_path")
private String domainPath;

@Column(name = "domain_removed")
private Date domainRemoved;

@Column(name = "project_uuid")
private String projectUuid;

@Column(name = "project_name")
private String projectName;

@Column(name = "project_removed")
private Date projectRemoved;

public Long getAccountId() {
return accountId;
}

Check warning on line 105 in framework/quota/src/main/java/org/apache/cloudstack/quota/vo/QuotaSummaryVO.java

View check run for this annotation

Codecov / codecov/patch

framework/quota/src/main/java/org/apache/cloudstack/quota/vo/QuotaSummaryVO.java#L103-L105

Added lines #L103 - L105 were not covered by tests

public BigDecimal getQuotaBalance() {
return quotaBalance;
}

Check warning on line 109 in framework/quota/src/main/java/org/apache/cloudstack/quota/vo/QuotaSummaryVO.java

View check run for this annotation

Codecov / codecov/patch

framework/quota/src/main/java/org/apache/cloudstack/quota/vo/QuotaSummaryVO.java#L107-L109

Added lines #L107 - L109 were not covered by tests

public String getAccountUuid() {
return accountUuid;
}

Check warning on line 113 in framework/quota/src/main/java/org/apache/cloudstack/quota/vo/QuotaSummaryVO.java

View check run for this annotation

Codecov / codecov/patch

framework/quota/src/main/java/org/apache/cloudstack/quota/vo/QuotaSummaryVO.java#L111-L113

Added lines #L111 - L113 were not covered by tests

public String getAccountName() {
return accountName;
}

Check warning on line 117 in framework/quota/src/main/java/org/apache/cloudstack/quota/vo/QuotaSummaryVO.java

View check run for this annotation

Codecov / codecov/patch

framework/quota/src/main/java/org/apache/cloudstack/quota/vo/QuotaSummaryVO.java#L115-L117

Added lines #L115 - L117 were not covered by tests

public Date getAccountRemoved() {
return accountRemoved;
}

Check warning on line 121 in framework/quota/src/main/java/org/apache/cloudstack/quota/vo/QuotaSummaryVO.java

View check run for this annotation

Codecov / codecov/patch

framework/quota/src/main/java/org/apache/cloudstack/quota/vo/QuotaSummaryVO.java#L119-L121

Added lines #L119 - L121 were not covered by tests

public Account.State getAccountState() {
return accountState;
}

Check warning on line 125 in framework/quota/src/main/java/org/apache/cloudstack/quota/vo/QuotaSummaryVO.java

View check run for this annotation

Codecov / codecov/patch

framework/quota/src/main/java/org/apache/cloudstack/quota/vo/QuotaSummaryVO.java#L123-L125

Added lines #L123 - L125 were not covered by tests

public Long getDomainId() {
return domainId;
}

Check warning on line 129 in framework/quota/src/main/java/org/apache/cloudstack/quota/vo/QuotaSummaryVO.java

View check run for this annotation

Codecov / codecov/patch

framework/quota/src/main/java/org/apache/cloudstack/quota/vo/QuotaSummaryVO.java#L127-L129

Added lines #L127 - L129 were not covered by tests

public String getDomainUuid() {
return domainUuid;
}

Check warning on line 133 in framework/quota/src/main/java/org/apache/cloudstack/quota/vo/QuotaSummaryVO.java

View check run for this annotation

Codecov / codecov/patch

framework/quota/src/main/java/org/apache/cloudstack/quota/vo/QuotaSummaryVO.java#L131-L133

Added lines #L131 - L133 were not covered by tests

public String getDomainPath() {
return domainPath;
}

Check warning on line 137 in framework/quota/src/main/java/org/apache/cloudstack/quota/vo/QuotaSummaryVO.java

View check run for this annotation

Codecov / codecov/patch

framework/quota/src/main/java/org/apache/cloudstack/quota/vo/QuotaSummaryVO.java#L135-L137

Added lines #L135 - L137 were not covered by tests

public Date getDomainRemoved() {
return domainRemoved;
}

Check warning on line 141 in framework/quota/src/main/java/org/apache/cloudstack/quota/vo/QuotaSummaryVO.java

View check run for this annotation

Codecov / codecov/patch

framework/quota/src/main/java/org/apache/cloudstack/quota/vo/QuotaSummaryVO.java#L139-L141

Added lines #L139 - L141 were not covered by tests

public String getProjectUuid() {
return projectUuid;
}

Check warning on line 145 in framework/quota/src/main/java/org/apache/cloudstack/quota/vo/QuotaSummaryVO.java

View check run for this annotation

Codecov / codecov/patch

framework/quota/src/main/java/org/apache/cloudstack/quota/vo/QuotaSummaryVO.java#L143-L145

Added lines #L143 - L145 were not covered by tests

public String getProjectName() {
return projectName;
}

Check warning on line 149 in framework/quota/src/main/java/org/apache/cloudstack/quota/vo/QuotaSummaryVO.java

View check run for this annotation

Codecov / codecov/patch

framework/quota/src/main/java/org/apache/cloudstack/quota/vo/QuotaSummaryVO.java#L147-L149

Added lines #L147 - L149 were not covered by tests

public Date getProjectRemoved() {
return projectRemoved;
}

Check warning on line 153 in framework/quota/src/main/java/org/apache/cloudstack/quota/vo/QuotaSummaryVO.java

View check run for this annotation

Codecov / codecov/patch

framework/quota/src/main/java/org/apache/cloudstack/quota/vo/QuotaSummaryVO.java#L151-L153

Added lines #L151 - L153 were not covered by tests
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@

<bean id="presetVariableHelper" class="org.apache.cloudstack.quota.activationrule.presetvariables.PresetVariableHelper" />
<bean id="QuotaTariffDao" class="org.apache.cloudstack.quota.dao.QuotaTariffDaoImpl" />
<bean id="QuotaAccountDao" class="org.apache.cloudstack.quota.dao.QuotaAccountDaoImpl" />
<bean id="QuotaSummaryDao" class="org.apache.cloudstack.quota.dao.QuotaSummaryDaoImpl" />
<bean id="QuotaAccountDao" class="org.apache.cloudstack.quota.dao.QuotaAccountDaoImpl" />
<bean id="QuotaBalanceDao" class="org.apache.cloudstack.quota.dao.QuotaBalanceDaoImpl" />
<bean id="QuotaCreditsDao" class="org.apache.cloudstack.quota.dao.QuotaCreditsDaoImpl" />
<bean id="QuotaEmailTemplatesDao"
Expand Down
Loading
Loading