Search in sources :

Example 6 with QuotaEmailTemplatesVO

use of org.apache.cloudstack.quota.vo.QuotaEmailTemplatesVO in project cloudstack by apache.

the class QuotaResponseBuilderImpl method listQuotaEmailTemplates.

@Override
public List<QuotaEmailTemplateResponse> listQuotaEmailTemplates(QuotaEmailTemplateListCmd cmd) {
    final String templateName = cmd.getTemplateName();
    List<QuotaEmailTemplatesVO> templates = _quotaEmailTemplateDao.listAllQuotaEmailTemplates(templateName);
    final List<QuotaEmailTemplateResponse> responses = new ArrayList<QuotaEmailTemplateResponse>();
    for (final QuotaEmailTemplatesVO template : templates) {
        responses.add(createQuotaEmailResponse(template));
    }
    return responses;
}
Also used : QuotaEmailTemplatesVO(org.apache.cloudstack.quota.vo.QuotaEmailTemplatesVO) ArrayList(java.util.ArrayList)

Aggregations

QuotaEmailTemplatesVO (org.apache.cloudstack.quota.vo.QuotaEmailTemplatesVO)6 ArrayList (java.util.ArrayList)5 Test (org.junit.Test)3 DomainVO (com.cloud.domain.DomainVO)2 AccountVO (com.cloud.user.AccountVO)2 UserVO (com.cloud.user.UserVO)2 BigDecimal (java.math.BigDecimal)2 QuotaAccountVO (org.apache.cloudstack.quota.vo.QuotaAccountVO)2 UnsupportedEncodingException (java.io.UnsupportedEncodingException)1 Date (java.util.Date)1 HashMap (java.util.HashMap)1 MessagingException (javax.mail.MessagingException)1 ConfigurationException (javax.naming.ConfigurationException)1 QuotaEmailTemplateListCmd (org.apache.cloudstack.api.command.QuotaEmailTemplateListCmd)1 QuotaEmailTemplateUpdateCmd (org.apache.cloudstack.api.command.QuotaEmailTemplateUpdateCmd)1 QuotaConfig (org.apache.cloudstack.quota.constant.QuotaConfig)1 QuotaEmailTemplateTypes (org.apache.cloudstack.quota.constant.QuotaConfig.QuotaEmailTemplateTypes)1 StrSubstitutor (org.apache.commons.lang3.text.StrSubstitutor)1