/*
(non-Javadoc)
@see com.popbill.api.TaxinvoiceService#listEmailConfig(java.lang.String, java.lang.String)
177987
@Override
    public EmailSendConfig[] listEmailConfig(String CorpNum, String UserID) throws PopbillException {
        return httpget("/Taxinvoice/EmailSendConfig", CorpNum, UserID, EmailSendConfig[].class);
    }
243087
@Override
	public Response updateEmailConfig(String CorpNum, String EmailType, Boolean SendYN, String UserID)
			throws PopbillException {
		if (SendYN == null)
			throw new PopbillException(-99999999, "메일전송여부(SendYN)가 입력되지 않았습니다.");
		if (EmailType == null || EmailType.isEmpty())
			throw new PopbillException(-99999999, "메일전송유형(EmailType)이 입력되지 않았습니다.");
				
		return httppost("/Statement/EmailSendConfig?EmailType=" + EmailType + "&SendYN=" + String.valueOf(SendYN),
				CorpNum, null, UserID, "", Response.class);
	}
304120
function list(appName, callback) {
    var url = format('/%s/apps/%s/config/', deis.version, appName);
    commons.get(url, function onListResponse(err, result) {
      callback(err, result ? result.tags : null);
    });
  }
614756
public static void configureMail(CmsMailHost host, Email mail) {

        // set the host to the default mail host
        mail.setHostName(host.getHostname());
        mail.setSmtpPort(host.getPort());

        // check if username and password are provided
        String userName = host.getUsername();
        if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(userName)) {
            // authentication needed, set user name and password
            mail.setAuthentication(userName, host.getPassword());
        }
        String security = host.getSecurity() != null ? host.getSecurity().trim() : null;
        if (SECURITY_SSL.equalsIgnoreCase(security)) {
            mail.setSslSmtpPort("" + host.getPort());
            mail.setSSLOnConnect(true);
        } else if (SECURITY_STARTTLS.equalsIgnoreCase(security)) {
            mail.setStartTLSEnabled(true);
        }

        try {
            // set default mail from address
            mail.setFrom(OpenCms.getSystemInfo().getMailSettings().getMailFromDefault());
        } catch (EmailException e) {
            // default email address is not valid, log error
            LOG.error(Messages.get().getBundle().key(Messages.LOG_INVALID_SENDER_ADDRESS_0), e);
        }
    }
501632
private void doList(final Message<JsonObject> message) {
    String type = message.body().getString("type");
    if (type != null) {
      switch (type) {
        case "node":
          doListNode(message);
          break;
        default:
          message.reply(new JsonObject().putString("status", "error").putString("message", "Invalid type specified."));
          break;
      }
    } else {
      message.reply(new JsonObject().putString("status", "error").putString("message", "No type specified."));
    }
  }
838729
@Override
    public void config(String msg) {
        if (isLoggable(Level.CONFIG)) {
            log(Level.CONFIG, msg);
        }
    }
1363623
public void addEmptyConfigs(Map<String, List<String>> pidToMethodList) {
        Iterator<String> pIter = pidToMethodList.keySet().iterator();
        while (pIter.hasNext()) {
            String sDepPID = pIter.next();
            // add the sDep indicated by the key if it doesn't exist
            ServiceDeploymentRoleConfig sDepRoleConfig = m_sDepConfigs.get(sDepPID);
            if (sDepRoleConfig == null) {
                sDepRoleConfig =
                        new ServiceDeploymentRoleConfig(m_defaultConfig, sDepPID);
                m_sDepConfigs.put(sDepPID, sDepRoleConfig);
            }
            // add each method indicated by the List which doesn't already exist
            Iterator<String> mIter = pidToMethodList.get(sDepPID).iterator();
            while (mIter.hasNext()) {
                String methodName = (String) mIter.next();
                MethodRoleConfig methodRoleConfig =
                        sDepRoleConfig.getMethodConfigs().get(methodName);
                if (methodRoleConfig == null) {
                    methodRoleConfig =
                            new MethodRoleConfig(sDepRoleConfig, methodName);
                    sDepRoleConfig.getMethodConfigs().put(methodName,
                                                           methodRoleConfig);
                }
            }
        }
    }
1222730
@Override
    @FFDCIgnore(SecurityException.class)
    public ExtendedConfiguration[] listConfigurations(String filterString) throws InvalidSyntaxException {
        if (filterString == null)
            filterString = "(" + Constants.SERVICE_PID + "=*)"; //$NON-NLS-1$ //$NON-NLS-2$

        try {
            this.caFactory.checkConfigurationPermission();
        } catch (SecurityException e) {
            filterString = "(&(" + ConfigurationAdmin.SERVICE_BUNDLELOCATION + "=" + bundle.getLocation() + ")" + filterString + ")";
        }
        return caFactory.getConfigurationStore().listConfigurations(FrameworkUtil.createFilter(filterString));
    }
312436
public static void config(MailHost mailHost, String personal, String from, String key, int port) {
        config(mailHost, personal, from, key);
        setPort(port);
    }
879173
public ArrayList<User> lookupUsersByEmail (String email)
        throws PersistenceException
    {
        return loadAll(_utable, "where email = " + JDBCUtil.escape(email));
    }
458010
@Override
    public Future<Option<BasicProfile>> findByEmailAndProvider(String email, String providerId) {
        return toScala(doFindByEmailAndProvider(email, providerId).thenApply(Scala::Option));
    }
24583
public OvhTaskMl domain_mailingList_name_subscriber_POST(String domain, String name, String email) throws IOException {
		String qPath = "/email/domain/{domain}/mailingList/{name}/subscriber";
		StringBuilder sb = path(qPath, domain, name);
		HashMap<String, Object>o = new HashMap<String, Object>();
		addBody(o, "email", email);
		String resp = exec(qPath, "POST", sb.toString(), o);
		return convertTo(resp, OvhTaskMl.class);
	}
788672
public function findInListByEmail(MailingList $list, $email)
    {
        return $this->createQueryBuilder('s')
            ->innerjoin('s.mailingList', 'm')
            ->andWhere('m.id = :list_id')
            ->andWhere('s.email = :email')
            ->setParameters([
                'list_id'   => $list->getId(),
                'email'     => $email,
            ])
            ->getQuery()
            ->getOneOrNullResult();
    }
1345316
protected void listJobConfProperties()
  {
    msg("==== JobConf properties:");
    Iterator it = jobConf_.iterator();
    TreeMap sorted = new TreeMap();
    while(it.hasNext()) {
      Map.Entry en = (Map.Entry)it.next();
      sorted.put(en.getKey(), en.getValue());
    }
    it = sorted.entrySet().iterator();
    while(it.hasNext()) {
      Map.Entry en = (Map.Entry)it.next();
      msg(en.getKey() + "=" + en.getValue());
    }
    msg("====");
  }
567881
public void fillEmail(final MultiPartEmail email) throws EmailException, IOException {
		email.setHostName(getHost());
		email.setSmtpPort(getSmtpPort());

		email.addTo(getTo());
		email.setFrom(getFrom());
		email.setSubject(getSubject());
		email.setMsg(getMsg());
		email.setSSLOnConnect(isSecured());
		if(this.bcc!=null) {
			String[] bccList = this.bcc.split(",");
			for (String bcc : bccList) {
				email.addBcc(bcc);
			}
		}
		if(this.cc!=null) {
			String[] ccList = this.cc.split(",");
			for (String cc : ccList) {
				email.addCc(cc);
			}
		}
		
		if (isRequiresAuthentication()) {
			email.setAuthentication(getUsername(), getPassword());
		}
		for (int i = 0; i < this.attachements.size(); i++) {
			final Attachment attachment = this.attachements.get(i);
			final ByteArrayDataSource ds = new ByteArrayDataSource(attachment.getData(), attachment.getMimeType());
			email.attach(ds, attachment.getName(), attachment.getDescription());
		}
	}
366615
@Override
    public TaxinvoiceLog[] getLogs(String CorpNum, MgtKeyType KeyType,
                                   String MgtKey) throws PopbillException {
        if (KeyType == null)
            throw new PopbillException(-99999999, "관리번호형태가 입력되지 않았습니다.");
        if (MgtKey == null || MgtKey.isEmpty())
            throw new PopbillException(-99999999, "관리번호가 입력되지 않았습니다.");

        return httpget(
                "/Taxinvoice/" + KeyType.name() + "/" + MgtKey + "/Logs",
                CorpNum, null, TaxinvoiceLog[].class);
    }
107887
@Override
	public String requestJob(String CorpNum, QueryType queryType, String SDate,
			String EDate) throws PopbillException {
		return requestJob(CorpNum, queryType, SDate, EDate, null);
	}