@Test public void shouldGenerateSameKey() throws Exception { final TransformationCacheKey key1 = createTestDefaultKey(); final TransformationCacheKey key2 = createTestDefaultKey(); assertEquals(key1.getKey(), key2.getKey()); }
@Override public String getKey() { return PREFIX + '_' + preparationId + "_" + datasetId + "_" + DigestUtils.sha1Hex(stepId + format + Objects.hash(parameters) + sourceType + userId + filter); }
TransformationCacheKey implements ContentCacheKey { @Override public String getKey() { return PREFIX + '_' + preparationId + "_" + datasetId + "_" + DigestUtils.sha1Hex(stepId + format + Objects.hash(parameters) + sourceType + userId + filter); } }
TransformationCacheKey implements ContentCacheKey { @Override public String getKey() { return PREFIX + '_' + preparationId + "_" + datasetId + "_" + DigestUtils.sha1Hex(stepId + format + Objects.hash(parameters) + sourceType + userId + filter); } TransformationCacheKey(final String preparationId, final String datasetId, final String format, final String stepId,
            final String parameters, final ExportParameters.SourceType sourceType, final String userId,
            final String filter); }
TransformationCacheKey implements ContentCacheKey { @Override public String getKey() { return PREFIX + '_' + preparationId + "_" + datasetId + "_" + DigestUtils.sha1Hex(stepId + format + Objects.hash(parameters) + sourceType + userId + filter); } TransformationCacheKey(final String preparationId, final String datasetId, final String format, final String stepId,
            final String parameters, final ExportParameters.SourceType sourceType, final String userId,
            final String filter); @Override String toString(); @Override String getKey(); @Override String getPrefix(); @Override Predicate<String> getMatcher(); }
TransformationCacheKey implements ContentCacheKey { @Override public String getKey() { return PREFIX + '_' + preparationId + "_" + datasetId + "_" + DigestUtils.sha1Hex(stepId + format + Objects.hash(parameters) + sourceType + userId + filter); } TransformationCacheKey(final String preparationId, final String datasetId, final String format, final String stepId,
            final String parameters, final ExportParameters.SourceType sourceType, final String userId,
            final String filter); @Override String toString(); @Override String getKey(); @Override String getPrefix(); @Override Predicate<String> getMatcher();  }