List of usage examples for com.liferay.portal.kernel.util PropsKeys MAIL_HOOK_SENDMAIL_DELETE_USER
String MAIL_HOOK_SENDMAIL_DELETE_USER
To view the source code for com.liferay.portal.kernel.util PropsKeys MAIL_HOOK_SENDMAIL_DELETE_USER.
Click Source Link
From source file:com.liferay.mail.util.SendmailHook.java
License:Open Source License
public void deleteUser(long companyId, long userId) { deleteEmailAddress(companyId, userId); // Get delete user command String deleteUserCmd = PropsUtil.get(PropsKeys.MAIL_HOOK_SENDMAIL_DELETE_USER); // Replace userId deleteUserCmd = StringUtil.replace(deleteUserCmd, "%1%", String.valueOf(userId)); Runtime rt = Runtime.getRuntime(); try {/*from w w w . j a v a 2 s .c o m*/ Process p = rt.exec(deleteUserCmd); ProcessUtil.close(p); } catch (Exception e) { _log.error(e, e); } }