/** * * Update SSL property * * @param state * @throws LocalRepositoryException */ public void setSslPropertyInfo(PropertyInfoExt state) throws LocalRepositoryException { final String prefix = "setSslPropertyInfo(): to=" + state; _log.debug(prefix); final Path tmpFilePath = FileSystems.getDefault().getPath(SSL_PROPERTY_TMP); createTmpFile(tmpFilePath, state.toString(false), prefix); try { final String[] cmd = {_SYSTOOL_CMD, _SYSTOOL_SET_SSL_PROPS, SSL_PROPERTY_TMP}; exec(prefix, cmd); _log.info(prefix + "Success"); } finally { cleanupTmpFile(tmpFilePath); } }
/** * * Update property * * @param state * @throws LocalRepositoryException */ public void setOverrideProperties(PropertyInfoExt state) throws LocalRepositoryException { final String prefix = "setOverrideProperties(): to=" + state; _log.debug(prefix); final Path tmpFilePath = FileSystems.getDefault().getPath(TMP_CONFIG_USER_CHANGED_PROPS_PATH); createTmpFile(tmpFilePath, state.toString(false), prefix); try { final String[] cmd = {_SYSTOOL_CMD, _SYSTOOL_SET_OPROPS, TMP_CONFIG_USER_CHANGED_PROPS_PATH}; exec(prefix, cmd); _log.info(prefix + "Success"); } finally { cleanupTmpFile(tmpFilePath); } }
/** * * Update data revision properties to local * * @param localRevisionProps * @throws LocalRepositoryException */ public void setDataRevisionPropertyInfo(PropertyInfoExt localRevisionProps) throws LocalRepositoryException { final String prefix = String.format("setDataRevisionPropertyInfo(): to=%s ", localRevisionProps); _log.debug(prefix); final Path tmpFilePath = FileSystems.getDefault().getPath(DATA_REVISION_TMP); createTmpFile(tmpFilePath, localRevisionProps.toString(false), prefix); try { final String[] cmd = {_SYSTOOL_CMD, _SYSTOOL_SET_DATA_REVISION, DATA_REVISION_TMP}; exec(prefix, cmd); _log.info(prefix + " Success"); } finally { cleanupTmpFile(tmpFilePath); } }