/** * {@inheritDoc} * <p/> * Note that if DEBUG is on for the the {@link #INBOUND_LOGGER}, then <tt>true</tt> * will always be returned. * * @since 3.4 */ @Override public boolean areAuditValuesRequired(String path) { PathMapper pathMapper = auditModelRegistry.getAuditPathMapper(); Set<String> mappedPaths = pathMapper.getMappedPathsWithPartialMatch(path); return loggerInbound.isDebugEnabled() || mappedPaths.size() > 0; }
/** * {@inheritDoc} * <p/> * Note that if DEBUG is on for the the {@link #INBOUND_LOGGER}, then <tt>true</tt> * will always be returned. * * @since 3.4 */ @Override public boolean areAuditValuesRequired(String path) { PathMapper pathMapper = auditModelRegistry.getAuditPathMapper(); Set<String> mappedPaths = pathMapper.getMappedPathsWithPartialMatch(path); return loggerInbound.isDebugEnabled() || mappedPaths.size() > 0; }
public void testPathMatchesPartial() { Set<String> mappedPaths = mapper.getMappedPathsWithPartialMatch("/a"); assertEquals("Partial matches expected", 4, mappedPaths.size()); } }