cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhaisaab <>
Subject [GitHub] cloudstack pull request: Quota
Date Sat, 10 Oct 2015 18:35:26 GMT
Github user bhaisaab commented on a diff in the pull request:
    --- Diff: usage/src/org/apache/cloudstack/quota/ ---
    @@ -0,0 +1,444 @@
    +//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
    +//Unless required by applicable law or agreed to in writing,
    +//software distributed under the License is distributed on an
    +//KIND, either express or implied.  See the License for the
    +//specific language governing permissions and limitations
    +//under the License.
    +package org.apache.cloudstack.quota;
    +import com.sun.mail.smtp.SMTPMessage;
    +import com.sun.mail.smtp.SMTPSSLTransport;
    +import com.sun.mail.smtp.SMTPTransport;
    +import org.apache.cloudstack.framework.config.dao.ConfigurationDao;
    +import org.apache.cloudstack.quota.constant.QuotaConfig;
    +import org.apache.cloudstack.quota.constant.QuotaConfig.QuotaEmailTemplateTypes;
    +import org.apache.cloudstack.quota.dao.QuotaAccountDao;
    +import org.apache.cloudstack.quota.dao.QuotaEmailTemplatesDao;
    +import org.apache.cloudstack.quota.dao.QuotaUsageDao;
    +import org.apache.cloudstack.quota.vo.QuotaAccountVO;
    +import org.apache.cloudstack.quota.vo.QuotaEmailTemplatesVO;
    +import org.apache.commons.lang3.text.StrSubstitutor;
    +import org.apache.log4j.Logger;
    +import org.springframework.stereotype.Component;
    +import javax.ejb.Local;
    +import javax.inject.Inject;
    +import javax.mail.Authenticator;
    +import javax.mail.Message;
    +import javax.mail.MessagingException;
    +import javax.mail.PasswordAuthentication;
    +import javax.mail.Session;
    +import javax.mail.URLName;
    +import javax.mail.internet.InternetAddress;
    +import javax.naming.ConfigurationException;
    +import java.math.BigDecimal;
    +import java.util.ArrayList;
    +import java.util.Calendar;
    +import java.util.Date;
    +import java.util.HashMap;
    +import java.util.List;
    +import java.util.Map;
    +import java.util.Properties;
    +import java.util.concurrent.TimeUnit;
    +@Local(value = QuotaAlertManager.class)
    +public class QuotaAlertManagerImpl extends ManagerBase implements QuotaAlertManager {
    +    private static final Logger s_logger = Logger.getLogger(QuotaAlertManagerImpl.class.getName());
    +    @Inject
    +    private AccountDao _accountDao;
    +    @Inject
    +    private QuotaAccountDao _quotaAcc;
    +    @Inject
    +    private UserDao _userDao;
    +    @Inject
    +    private DomainDao _domainDao;
    +    @Inject
    +    private QuotaEmailTemplatesDao _quotaEmailTemplateDao;
    +    @Inject
    +    private ConfigurationDao _configDao;
    +    @Inject
    +    private QuotaUsageDao _quotaUsage;
    +    private EmailQuotaAlert _emailQuotaAlert;
    +    private boolean _lockAccountEnforcement = false;
    +    final static BigDecimal s_hoursInMonth = new BigDecimal(30 * 24);
    +    final static BigDecimal s_minutesInMonth = new BigDecimal(30 * 24 * 60);
    +    final static BigDecimal s_gb = new BigDecimal(1024 * 1024 * 1024);
    --- End diff --
    Dead code, removed.

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

View raw message