deleteUserComment(userProxyInode,userComment);
}
public static void saveUserComment(String userProxyInode,UserComment userComment) throws DotHibernateException
{
UserProxy userProxy;
try {
userProxy = com.dotmarketing.business.APILocator.getUserProxyAPI().getUserProxy(userProxyInode,APILocator.getUserAPI().getSystemUser(), false);
} catch (Exception e) {
Logger.error(UserCommentsFactory.class, e.getMessage(), e);
throw new DotRuntimeException(e.getMessage(), e);
}
HibernateUtil.saveOrUpdate(userComment);
userProxy.addChild(userComment);
}