Functions { public static String getDeleteFacetUrl(Object facetFilterObj, KeyValue facetValue, String queryString) { return getDeleteFacetUrl(facetValue, queryString); }  static Map<String, List<KeyValue>> getAppliedFacetFilters(String filterString); static boolean isFacetApplied(String facetName, Map<String, List<KeyValue>> appliedFacets,
                                         PropertyDefinition propDef); static boolean isFacetValueApplied(Object facetValueObj,
                                              Map<String, List<KeyValue>> appliedFacets); static String getFacetDrillDownUrl(Object facetValueObj, String queryString); static String getDeleteFacetUrl(Object facetFilterObj, KeyValue facetValue, String queryString); static String getDeleteFacetUrl(KeyValue facetValue, String queryString); static boolean isUnappliedFacetExisting(QueryResultWrapper result,
                                                   Map<String, List<KeyValue>> appliedFacets); static boolean isUnappliedFacetValueExisting(FacetField facetField, Map<String, List<KeyValue>> appliedFacets); static boolean isUnappliedRangeFacetValueExisting(RangeFacet<?, ?> rangeFacet, Map<String, List<KeyValue>> appliedFacets); static String getDrillDownPrefix(String hierarchicalFacet); static List<ExtendedPropertyDefinition> getPropertyDefinitions(JCRNodeWrapper facet); static String getIndexPrefixedPath(final String facetPath); static String getIndexPrefixedPath(final String facetPath, final String workspace); static final String ESCAPED_FACET_DELIM; }
@Test public void testGetDeleteFacetUrl() throws Exception { String query = "j:tagList###tag1###3056820\\:FACET\\:tags:4c1b0348\\-89d0\\-461e\\-b31d\\-d725b8e6ea18|||j:tagList###tag2###3056820\\:FACET\\:tags:cdc62535\\-bcac\\-44d7\\-b4da\\-be8c865d7a58"; KeyValue facetValue1 = new DefaultKeyValue("tag1", "3056820\\:FACET\\:tags:4c1b0348\\-89d0\\-461e\\-b31d\\-d725b8e6ea18"); KeyValue facetValue2 = new DefaultKeyValue("tag2", "3056820\\:FACET\\:tags:cdc62535\\-bcac\\-44d7\\-b4da\\-be8c865d7a58"); assertEquals("j:tagList###tag2###3056820\\:FACET\\:tags:cdc62535\\-bcac\\-44d7\\-b4da\\-be8c865d7a58", Functions.getDeleteFacetUrl(facetValue1, query)); assertEquals("j:tagList###tag1###3056820\\:FACET\\:tags:4c1b0348\\-89d0\\-461e\\-b31d\\-d725b8e6ea18", Functions.getDeleteFacetUrl(facetValue2, query)); }