You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2017/11/07 10:14:14 UTC

[sling-org-apache-sling-serviceusermapper] 07/17: SLING-4930 - keep only the 'mappings by user' section, I think the raw mappings are redundant

This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to annotated tag org.apache.sling.serviceusermapper-1.2.2
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-serviceusermapper.git

commit d45db0bac322ed2066bd35a8352ba56b5bb547aa
Author: Bertrand Delacretaz <bd...@apache.org>
AuthorDate: Fri Aug 7 10:45:24 2015 +0000

    SLING-4930 - keep only the 'mappings by user' section, I think the raw mappings are redundant
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/bundles/extensions/serviceusermapper@1694647 13f79535-47bb-0310-9956-ffa450edef68
---
 .../serviceusermapping/impl/MappingInventoryPrinter.java | 16 ----------------
 1 file changed, 16 deletions(-)

diff --git a/src/main/java/org/apache/sling/serviceusermapping/impl/MappingInventoryPrinter.java b/src/main/java/org/apache/sling/serviceusermapping/impl/MappingInventoryPrinter.java
index 0ae8ff1..cc1228d 100644
--- a/src/main/java/org/apache/sling/serviceusermapping/impl/MappingInventoryPrinter.java
+++ b/src/main/java/org/apache/sling/serviceusermapping/impl/MappingInventoryPrinter.java
@@ -112,13 +112,6 @@ public class MappingInventoryPrinter implements InventoryPrinter {
         w.key("mappingsCount").value(data.size());
         w.key("uniqueUsersCount").value(byUser.keySet().size());
         
-        w.key("rawMappings");
-        w.array();
-        for(Mapping m : data) {
-            asJSON(w, m);
-        }
-        w.endArray();
-        
         w.key("mappingsByUser");
         w.object();
         for(Map.Entry<String, List<Mapping>> e : byUser.entrySet()) {
@@ -150,16 +143,7 @@ public class MappingInventoryPrinter implements InventoryPrinter {
         final Map<String, List<Mapping>> byUser = getMappingsByUser(data);
         
         final String formatInfo = " (format: service name / sub service name / user)";
-        out.print("*** Raw Mappings (");
-        out.print(data.size());
-        out.print("):");
-        out.println(formatInfo);
-        
-        for(Mapping m : data) {
-            asText(out, m, "  ");
-        }
         
-        out.println();
         out.print("*** Mappings by user (");
         out.print(byUser.keySet().size());
         out.print(" users):");

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.