add spring security and token management
This commit is contained in:
25
src/main/java/com/iconplus/smartproc/util/CommonUtil.java
Normal file
25
src/main/java/com/iconplus/smartproc/util/CommonUtil.java
Normal file
@@ -0,0 +1,25 @@
|
||||
package com.iconplus.smartproc.util;
|
||||
|
||||
import com.iconplus.smartproc.exception.TechnicalException;
|
||||
|
||||
import java.sql.Clob;
|
||||
import java.sql.SQLException;
|
||||
|
||||
public class CommonUtil {
|
||||
private CommonUtil() {
|
||||
}
|
||||
|
||||
public static String clobToString(Clob input) {
|
||||
try {
|
||||
if (input != null) {
|
||||
return input.getSubString(1, (int) input.length());
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
} catch (SQLException exception) {
|
||||
throw new TechnicalException(Constants.ERR_TTL_40041,
|
||||
Constants.ERR_TTL_40041,
|
||||
Constants.ERR_MSG_40041);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user