@Override protected void persistStringAttribute(ResourcePath path, String key, String value) throws PersistException { try { m_resourceStorageDao.setStringAttribute(path, key, value); } catch (Throwable t) { throw new PersistException(t); } }
/** * Sets the last filename. * * @param serviceName the service name * @param resourceDir the resource directory * @param targetPath the target path * @param filename the filename * @throws Exception the exception */ public static void setLastFilename(ResourceStorageDao resourceStorageDao, String serviceName, ResourcePath path, String targetPath, String filename) throws Exception { resourceStorageDao.setStringAttribute(path, getCacheId(serviceName, targetPath), filename); }
@Override protected void persistStringAttribute(ResourcePath path, String key, String value) throws PersistException { try { m_resourceStorageDao.setStringAttribute(path, key, value); } catch (Throwable t) { throw new PersistException(t); } }
/** * Sets the last filename. * * @param serviceName the service name * @param resourceDir the resource directory * @param targetPath the target path * @param filename the filename * @throws Exception the exception */ public static void setLastFilename(ResourceStorageDao resourceStorageDao, String serviceName, ResourcePath path, String targetPath, String filename) throws Exception { resourceStorageDao.setStringAttribute(path, getCacheId(serviceName, targetPath), filename); }
/** * Sets the last timestamp. * * @param resource the resource * @param timestamp the timestamp */ private void setLastTimestamp(CollectionResource resource, long timestamp) { ResourcePath path = ResourceTypeUtils.getResourcePathWithRepository(m_repository, resource.getPath()); LOG.debug("Setting timestamp to {} at path {}", timestamp, path); m_resourceStorageDao.setStringAttribute(path, LAST_TIMESTAMP, Long.toString(timestamp)); } }