• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

knowledgepixels / nanodash / 18836452063

27 Oct 2025 09:39AM UTC coverage: 13.1% (-0.6%) from 13.674%
18836452063

push

github

tkuhn
feat: Get term definition nanopubs for resource part pages

457 of 4440 branches covered (10.29%)

Branch coverage included in aggregate %.

1212 of 8300 relevant lines covered (14.6%)

0.65 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

10.51
src/main/java/com/knowledgepixels/nanodash/Space.java
1
package com.knowledgepixels.nanodash;
2

3
import static com.knowledgepixels.nanodash.Utils.vf;
4

5
import java.io.Serializable;
6
import java.util.ArrayList;
7
import java.util.Calendar;
8
import java.util.Collections;
9
import java.util.HashMap;
10
import java.util.HashSet;
11
import java.util.List;
12
import java.util.Map;
13
import java.util.Set;
14

15
import org.eclipse.rdf4j.model.IRI;
16
import org.eclipse.rdf4j.model.Literal;
17
import org.eclipse.rdf4j.model.Statement;
18
import org.eclipse.rdf4j.model.vocabulary.DCTERMS;
19
import org.eclipse.rdf4j.model.vocabulary.OWL;
20
import org.nanopub.Nanopub;
21
import org.nanopub.extra.services.ApiResponse;
22
import org.nanopub.extra.services.ApiResponseEntry;
23
import org.nanopub.extra.services.QueryRef;
24
import org.nanopub.vocabulary.NTEMPLATE;
25
import org.slf4j.Logger;
26
import org.slf4j.LoggerFactory;
27

28
import com.github.jsonldjava.shaded.com.google.common.collect.Ordering;
29
import com.google.common.collect.ArrayListMultimap;
30
import com.google.common.collect.Multimap;
31
import com.knowledgepixels.nanodash.template.Template;
32
import com.knowledgepixels.nanodash.template.TemplateData;
33

34
import jakarta.xml.bind.DatatypeConverter;
35

36
/**
37
 * Class representing a "Space", which can be any kind of collaborative unit, like a project, group, or event.
38
 */
39
public class Space implements Serializable {
40

41
    private static final Logger logger = LoggerFactory.getLogger(Space.class);
3✔
42

43
    /**
44
     * The predicate to assign the admins of the space.
45
     */
46
    public static final IRI HAS_ADMIN = vf.createIRI("https://w3id.org/kpxl/gen/terms/hasAdmin");
4✔
47

48
    /**
49
     * The predicate for pinned templates in the space.
50
     */
51
    public static final IRI HAS_PINNED_TEMPLATE = vf.createIRI("https://w3id.org/kpxl/gen/terms/hasPinnedTemplate");
4✔
52

53
    /**
54
     * The predicate for pinned queries in the space.
55
     */
56
    public static final IRI HAS_PINNED_QUERY = vf.createIRI("https://w3id.org/kpxl/gen/terms/hasPinnedQuery");
4✔
57

58
    private static List<Space> spaceList;
59
    private static Map<String, List<Space>> spaceListByType;
60
    private static Map<String, Space> spacesByCoreInfo = new HashMap<>();
4✔
61
    private static Map<String, Space> spacesById;
62
    private static Map<Space, Set<Space>> subspaceMap;
63
    private static Map<Space, Set<Space>> superspaceMap;
64
    private static boolean loaded = false;
3✔
65

66
    /**
67
     * Refresh the list of spaces from the API response.
68
     *
69
     * @param resp The API response containing space data.
70
     */
71
    public static synchronized void refresh(ApiResponse resp) {
72
        spaceList = new ArrayList<>();
4✔
73
        spaceListByType = new HashMap<>();
4✔
74
        Map<String, Space> prevSpacesByCoreInfoPrev = spacesByCoreInfo;
2✔
75
        spacesByCoreInfo = new HashMap<>();
4✔
76
        spacesById = new HashMap<>();
4✔
77
        subspaceMap = new HashMap<>();
4✔
78
        superspaceMap = new HashMap<>();
4✔
79
        for (ApiResponseEntry entry : resp.getData()) {
11!
80
            Space space = new Space(entry);
×
81
            Space prevSpace = prevSpacesByCoreInfoPrev.get(space.getCoreInfoString());
×
82
            if (prevSpace != null) space = prevSpace;
×
83
            spaceList.add(space);
×
84
            spaceListByType.computeIfAbsent(space.getType(), k -> new ArrayList<>()).add(space);
×
85
            spacesByCoreInfo.put(space.getCoreInfoString(), space);
×
86
            spacesById.put(space.getId(), space);
×
87
        }
×
88
        for (Space space : spaceList) {
×
89
            Space superSpace = space.getIdSuperspace();
×
90
            if (superSpace == null) continue;
×
91
            subspaceMap.computeIfAbsent(superSpace, k -> new HashSet<>()).add(space);
×
92
            superspaceMap.computeIfAbsent(space, k -> new HashSet<>()).add(superSpace);
×
93
        }
×
94
        loaded = true;
×
95
    }
×
96

97
    /**
98
     * Check if the spaces have been loaded.
99
     *
100
     * @return true if loaded, false otherwise.
101
     */
102
    public static boolean isLoaded() {
103
        return loaded;
×
104
    }
105

106
    public static boolean areAllSpacesInitialized() {
107
        for (Space space : spaceList) {
×
108
            if (!space.isDataInitialized()) return false;
×
109
        }
×
110
        return true;
×
111
    }
112

113
    public static void triggerAllDataUpdates() {
114
        for (Space space : spaceList) {
×
115
            space.triggerDataUpdate();
×
116
        }
×
117
    }
×
118

119
    /**
120
     * Ensure that the spaces are loaded, fetching them from the API if necessary.
121
     */
122
    public static void ensureLoaded() {
123
        if (spaceList == null) {
2!
124
            refresh(QueryApiAccess.forcedGet(new QueryRef("get-spaces")));
×
125
        }
126
    }
×
127

128
    /**
129
     * Get the list of all spaces.
130
     *
131
     * @return List of spaces.
132
     */
133
    public static List<Space> getSpaceList() {
134
        ensureLoaded();
×
135
        return spaceList;
×
136
    }
137

138
    /**
139
     * Get the list of spaces of a specific type.
140
     *
141
     * @param type The type of spaces to retrieve.
142
     * @return List of spaces of the specified type.
143
     */
144
    public static List<Space> getSpaceList(String type) {
145
        ensureLoaded();
×
146
        return spaceListByType.computeIfAbsent(type, k -> new ArrayList<>());
×
147
    }
148

149
    /**
150
     * Get a space by its id.
151
     *
152
     * @param id The id of the space.
153
     * @return The corresponding Space object, or null if not found.
154
     */
155
    public static Space get(String id) {
156
        ensureLoaded();
×
157
        return spacesById.get(id);
×
158
    }
159

160
    /**
161
     * Mark all spaces as needing a data update.
162
     */
163
    public static void refresh() {
164
        ensureLoaded();
×
165
        for (Space space : spaceList) {
×
166
            space.dataNeedsUpdate = true;
×
167
        }
×
168
    }
×
169

170
    private String id, label, rootNanopubId, type;
171
    private Nanopub rootNanopub = null;
3✔
172
    private SpaceData data = new SpaceData();
5✔
173

174
    private static class SpaceData implements Serializable {
2✔
175

176
        List<String> altIds = new ArrayList<>();
5✔
177

178
        String description = null;
3✔
179
        Calendar startDate, endDate;
180
        IRI defaultProvenance = null;
3✔
181

182
        List<IRI> admins = new ArrayList<>();
5✔
183
        Map<IRI, Set<SpaceMemberRole>> users = new HashMap<>();
5✔
184
        List<SpaceMemberRole> roles = new ArrayList<>();
5✔
185
        Map<IRI, SpaceMemberRole> roleMap = new HashMap<>();
5✔
186

187
        Map<String, IRI> adminPubkeyMap = new HashMap<>();
5✔
188
        Set<Serializable> pinnedResources = new HashSet<>();
5✔
189
        List<ResourceView> views = new ArrayList<>();
5✔
190
        Set<String> pinGroupTags = new HashSet<>();
5✔
191
        Map<String, Set<Serializable>> pinnedResourceMap = new HashMap<>();
6✔
192

193
        void addAdmin(IRI admin) {
194
            // TODO This isn't efficient for long owner lists:
195
            if (admins.contains(admin)) return;
×
196
            admins.add(admin);
×
197
            UserData ud = User.getUserData();
×
198
            for (String pubkeyhash : ud.getPubkeyhashes(admin, true)) {
×
199
                adminPubkeyMap.put(pubkeyhash, admin);
×
200
            }
×
201
        }
×
202

203
    }
204

205
    private boolean dataInitialized = false;
3✔
206
    private boolean dataNeedsUpdate = true;
3✔
207

208
    private Space(ApiResponseEntry resp) {
2✔
209
        this.id = resp.get("space");
5✔
210
        this.label = resp.get("label");
5✔
211
        this.type = resp.get("type");
5✔
212
        this.rootNanopubId = resp.get("np");
5✔
213
        this.rootNanopub = Utils.getAsNanopub(rootNanopubId);
×
214
        setCoreData(data);
×
215
    }
×
216

217
    /**
218
     * Get the ID of the space.
219
     *
220
     * @return The space ID.
221
     */
222
    public String getId() {
223
        return id;
×
224
    }
225

226
    /**
227
     * Get the root nanopublication ID of the space.
228
     *
229
     * @return The root nanopub ID.
230
     */
231
    public String getRootNanopubId() {
232
        return rootNanopubId;
×
233
    }
234

235
    /**
236
     * Get a string combining the space ID and root nanopub ID for core identification.
237
     *
238
     * @return The core info string.
239
     */
240
    public String getCoreInfoString() {
241
        return id + " " + rootNanopubId;
×
242
    }
243

244
    /**
245
     * Get the root nanopublication of the space.
246
     *
247
     * @return The root Nanopub object.
248
     */
249
    public Nanopub getRootNanopub() {
250
        return rootNanopub;
×
251
    }
252

253
    /**
254
     * Get the label of the space.
255
     *
256
     * @return The space label.
257
     */
258
    public String getLabel() {
259
        return label;
×
260
    }
261

262
    /**
263
     * Get the type of the space.
264
     *
265
     * @return The space type.
266
     */
267
    public String getType() {
268
        return type;
×
269
    }
270

271
    /**
272
     * Get the start date of the space.
273
     *
274
     * @return The start date as a Calendar object, or null if not set.
275
     */
276
    public Calendar getStartDate() {
277
        return data.startDate;
×
278
    }
279

280
    /**
281
     * Get the end date of the space.
282
     *
283
     * @return The end date as a Calendar object, or null if not set.
284
     */
285
    public Calendar getEndDate() {
286
        return data.endDate;
×
287
    }
288

289
    /**
290
     * Get a simplified label for the type of space by removing any namespace prefix.
291
     *
292
     * @return The simplified type label.
293
     */
294
    public String getTypeLabel() {
295
        return type.replaceFirst("^.*/", "");
×
296
    }
297

298
    /**
299
     * Get the description of the space.
300
     *
301
     * @return The description string.
302
     */
303
    public String getDescription() {
304
        return data.description;
×
305
    }
306

307
    /**
308
     * Check if the space data has been initialized.
309
     *
310
     * @return true if initialized, false otherwise.
311
     */
312
    public boolean isDataInitialized() {
313
        triggerDataUpdate();
×
314
        return dataInitialized;
×
315
    }
316

317
    /**
318
     * Get the list of admins in this space.
319
     *
320
     * @return List of admin IRIs.
321
     */
322
    public List<IRI> getAdmins() {
323
        ensureInitialized();
×
324
        return data.admins;
×
325
    }
326

327
    /**
328
     * Get the list of members in this space.
329
     *
330
     * @return List of member IRIs.
331
     */
332
    public List<IRI> getUsers() {
333
        ensureInitialized();
×
334
        List<IRI> users = new ArrayList<IRI>(data.users.keySet());
×
335
        users.sort(User.getUserData().userComparator);
×
336
        return users;
×
337
    }
338

339
    /**
340
     * Get the roles of a specific member in this space.
341
     *
342
     * @param userId The IRI of the member.
343
     * @return Set of roles assigned to the member, or null if the member is not part of this space.
344
     */
345
    public Set<SpaceMemberRole> getMemberRoles(IRI userId) {
346
        ensureInitialized();
×
347
        return data.users.get(userId);
×
348
    }
349

350
    /**
351
     * Check if a user is a member of this space.
352
     *
353
     * @param userId The IRI of the user to check.
354
     * @return true if the user is a member, false otherwise.
355
     */
356
    public boolean isMember(IRI userId) {
357
        ensureInitialized();
×
358
        return data.users.containsKey(userId);
×
359
    }
360

361
    public boolean isAdminPubkey(String pubkey) {
362
        ensureInitialized();
×
363
        return data.adminPubkeyMap.containsKey(pubkey);
×
364
    }
365

366
    /**
367
     * Get the list of pinned resources in this space.
368
     *
369
     * @return List of pinned resources.
370
     */
371
    public Set<Serializable> getPinnedResources() {
372
        ensureInitialized();
×
373
        return data.pinnedResources;
×
374
    }
375

376
    /**
377
     * Get the set of tags used for grouping pinned resources.
378
     *
379
     * @return Set of tags.
380
     */
381
    public Set<String> getPinGroupTags() {
382
        ensureInitialized();
×
383
        return data.pinGroupTags;
×
384
    }
385

386
    /**
387
     * Get a map of pinned resources grouped by their tags.
388
     *
389
     * @return Map where keys are tags and values are lists of pinned resources (Templates or GrlcQueries).
390
     */
391
    public Map<String, Set<Serializable>> getPinnedResourceMap() {
392
        ensureInitialized();
×
393
        return data.pinnedResourceMap;
×
394
    }
395

396
    /**
397
     * Get the list of views (GrlcQueries) associated with this space.
398
     *
399
     * @return List of GrlcQuery views.
400
     */
401
    public List<ResourceView> getViews() {
402
        return data.views;
×
403
    }
404

405
    /**
406
     * Get the default provenance IRI for this space.
407
     *
408
     * @return The default provenance IRI, or null if not set.
409
     */
410
    public IRI getDefaultProvenance() {
411
        return data.defaultProvenance;
×
412
    }
413

414
    /**
415
     * Get the roles defined in this space.
416
     *
417
     * @return List of roles.
418
     */
419
    public List<SpaceMemberRole> getRoles() {
420
        return data.roles;
×
421
    }
422

423
    /**
424
     * Get the super ID of the space.
425
     *
426
     * @return Always returns null. Use getIdSuperspace() instead.
427
     */
428
    public String getSuperId() {
429
        return null;
×
430
    }
431

432
    /**
433
     * Get the superspace ID.
434
     *
435
     * @return The superspace, or null if not applicable.
436
     */
437
    public Space getIdSuperspace() {
438
        if (!id.matches("https?://[^/]+/.*/[^/]*/?")) return null;
×
439
        String superId = id.replaceFirst("(https?://[^/]+/.*)/[^/]*/?", "$1");
×
440
        if (spacesById.containsKey(superId)) {
×
441
            return spacesById.get(superId);
×
442
        }
443
        return null;
×
444
    }
445

446
    /**
447
     * Get superspaces of this space.
448
     *
449
     * @return List of superspaces.
450
     */
451
    public List<Space> getSuperspaces() {
452
        if (superspaceMap.containsKey(this)) {
×
453
            List<Space> superspaces = new ArrayList<>(superspaceMap.get(this));
×
454
            Collections.sort(superspaces, Ordering.usingToString());
×
455
            return superspaces;
×
456
        }
457
        return new ArrayList<>();
×
458
    }
459

460
    /**
461
     * Get subspaces of this space.
462
     *
463
     * @return List of subspaces.
464
     */
465
    public List<Space> getSubspaces() {
466
        if (subspaceMap.containsKey(this)) {
×
467
            List<Space> subspaces = new ArrayList<>(subspaceMap.get(this));
×
468
            Collections.sort(subspaces, Ordering.usingToString());
×
469
            return subspaces;
×
470
        }
471
        return new ArrayList<>();
×
472
    }
473

474
    /**
475
     * Get subspaces of a specific type.
476
     *
477
     * @param type The type of subspaces to retrieve.
478
     * @return List of subspaces of the specified type.
479
     */
480
    public List<Space> getSubspaces(String type) {
481
        List<Space> l = new ArrayList<>();
×
482
        for (Space s : getSubspaces()) {
×
483
            if (s.getType().equals(type)) l.add(s);
×
484
        }
×
485
        return l;
×
486
    }
487

488
    /**
489
     * Get alternative IDs for the space.
490
     *
491
     * @return List of alternative IDs.
492
     */
493
    public List<String> getAltIDs() {
494
        return data.altIds;
×
495
    }
496

497
    private synchronized void ensureInitialized() {
498
        Thread thread = triggerDataUpdate();
×
499
        if (!dataInitialized && thread != null) {
×
500
            try {
501
                thread.join();
×
502
            } catch (InterruptedException ex) {
×
503
                logger.error("failed to join thread", ex);
×
504
            }
×
505
        }
506
    }
×
507

508
    private synchronized Thread triggerDataUpdate() {
509
        if (dataNeedsUpdate) {
×
510
            Thread thread = new Thread(() -> {
×
511
                try {
512
                    SpaceData newData = new SpaceData();
×
513
                    setCoreData(newData);
×
514

515
                    newData.roles.add(SpaceMemberRole.ADMIN_ROLE);
×
516
                    newData.roleMap.put(SpaceMemberRole.HAS_ADMIN_PREDICATE, SpaceMemberRole.ADMIN_ROLE);
×
517

518
                    // TODO Improve this:
519
                    Multimap<String, String> spaceIds = ArrayListMultimap.create();
×
520
                    Multimap<String, String> resourceIds = ArrayListMultimap.create();
×
521
                    spaceIds.put("space", id);
×
522
                    resourceIds.put("resource", id);
×
523
                    for (String id : newData.altIds) {
×
524
                        spaceIds.put("space", id);
×
525
                        resourceIds.put("resource", id);
×
526
                    }
×
527

528
                    for (ApiResponseEntry r : QueryApiAccess.get(new QueryRef("get-admins", spaceIds)).getData()) {
×
529
                        String pubkeyhash = r.get("pubkey");
×
530
                        if (newData.adminPubkeyMap.containsKey(pubkeyhash)) {
×
531
                            IRI adminId = Utils.vf.createIRI(r.get("admin"));
×
532
                            newData.addAdmin(adminId);
×
533
                            newData.users.computeIfAbsent(adminId, (k) -> new HashSet<>()).add(SpaceMemberRole.ADMIN_ROLE);
×
534
                        }
535
                    }
×
536
                    newData.admins.sort(User.getUserData().userComparator);
×
537

538
                    Multimap<String, String> getSpaceMemberParams = ArrayListMultimap.create(spaceIds);
×
539

540
                    for (ApiResponseEntry r : QueryApiAccess.get(new QueryRef("get-space-member-roles", spaceIds)).getData()) {
×
541
                        if (!newData.adminPubkeyMap.containsKey(r.get("pubkey"))) continue;
×
542
                        SpaceMemberRole role = new SpaceMemberRole(r);
×
543
                        newData.roles.add(role);
×
544

545
                        // TODO Handle cases of overlapping properties:
546
                        for (IRI p : role.getRegularProperties()) newData.roleMap.put(p, role);
×
547
                        for (IRI p : role.getInverseProperties()) newData.roleMap.put(p, role);
×
548

549
                        role.addRoleParams(getSpaceMemberParams);
×
550
                    }
×
551

552
                    for (ApiResponseEntry r : QueryApiAccess.get(new QueryRef("get-space-members", getSpaceMemberParams)).getData()) {
×
553
                        IRI memberId = Utils.vf.createIRI(r.get("member"));
×
554
                        SpaceMemberRole role = newData.roleMap.get(Utils.vf.createIRI(r.get("role")));
×
555
                        newData.users.computeIfAbsent(memberId, (k) -> new HashSet<>()).add(role);
×
556
                    }
×
557

558
                    for (ApiResponseEntry r : QueryApiAccess.get(new QueryRef("get-pinned-templates", spaceIds)).getData()) {
×
559
                        if (!newData.adminPubkeyMap.containsKey(r.get("pubkey"))) continue;
×
560
                        Template t = TemplateData.get().getTemplate(r.get("template"));
×
561
                        if (t == null) continue;
×
562
                        newData.pinnedResources.add(t);
×
563
                        String tag = r.get("tag");
×
564
                        if (tag != null && !tag.isEmpty()) {
×
565
                            newData.pinGroupTags.add(r.get("tag"));
×
566
                            newData.pinnedResourceMap.computeIfAbsent(tag, k -> new HashSet<>()).add(TemplateData.get().getTemplate(r.get("template")));
×
567
                        }
568
                    }
×
569
                    for (ApiResponseEntry r : QueryApiAccess.get(new QueryRef("get-pinned-queries", spaceIds)).getData()) {
×
570
                        if (!newData.adminPubkeyMap.containsKey(r.get("pubkey"))) continue;
×
571
                        GrlcQuery query = GrlcQuery.get(r.get("query"));
×
572
                        if (query == null) continue;
×
573
                        newData.pinnedResources.add(query);
×
574
                        String tag = r.get("tag");
×
575
                        if (tag != null && !tag.isEmpty()) {
×
576
                            newData.pinGroupTags.add(r.get("tag"));
×
577
                            newData.pinnedResourceMap.computeIfAbsent(tag, k -> new HashSet<>()).add(query);
×
578
                        }
579
                    }
×
580
                    for (ApiResponseEntry r : QueryApiAccess.get(new QueryRef("get-view-displays", resourceIds)).getData()) {
×
581
                        if (!newData.adminPubkeyMap.containsKey(r.get("pubkey"))) continue;
×
582
                        ResourceView view = ResourceView.get(r.get("view"));
×
583
                        if (view == null) continue;
×
584
                        newData.views.add(view);
×
585
                    }
×
586
                    data = newData;
×
587
                    dataInitialized = true;
×
588
                } catch (Exception ex) {
×
589
                    logger.error("Error while trying to update space data: {}", ex);
×
590
                }
×
591
            });
×
592
            thread.start();
×
593
            dataNeedsUpdate = false;
×
594
            return thread;
×
595
        }
596
        return null;
×
597
    }
598

599
    private void setCoreData(SpaceData data) {
600
        for (Statement st : rootNanopub.getAssertion()) {
×
601
            if (st.getSubject().stringValue().equals(getId())) {
×
602
                if (st.getPredicate().equals(OWL.SAMEAS) && st.getObject() instanceof IRI objIri) {
×
603
                    data.altIds.add(objIri.stringValue());
×
604
                } else if (st.getPredicate().equals(DCTERMS.DESCRIPTION)) {
×
605
                    data.description = st.getObject().stringValue();
×
606
                } else if (st.getPredicate().stringValue().equals("http://schema.org/startDate")) {
×
607
                    try {
608
                        data.startDate = DatatypeConverter.parseDateTime(st.getObject().stringValue());
×
609
                    } catch (IllegalArgumentException ex) {
×
610
                        logger.error("Failed to parse date {}", st.getObject().stringValue());
×
611
                    }
×
612
                } else if (st.getPredicate().stringValue().equals("http://schema.org/endDate")) {
×
613
                    try {
614
                        data.endDate = DatatypeConverter.parseDateTime(st.getObject().stringValue());
×
615
                    } catch (IllegalArgumentException ex) {
×
616
                        logger.error("Failed to parse date {}", st.getObject().stringValue());
×
617
                    }
×
618
                } else if (st.getPredicate().equals(HAS_ADMIN) && st.getObject() instanceof IRI obj) {
×
619
                    data.addAdmin(obj);
×
620
                } else if (st.getPredicate().equals(HAS_PINNED_TEMPLATE) && st.getObject() instanceof IRI obj) {
×
621
                    data.pinnedResources.add(TemplateData.get().getTemplate(obj.stringValue()));
×
622
                } else if (st.getPredicate().equals(HAS_PINNED_QUERY) && st.getObject() instanceof IRI obj) {
×
623
                    data.pinnedResources.add(GrlcQuery.get(obj.stringValue()));
×
624
                } else if (st.getPredicate().equals(NTEMPLATE.HAS_DEFAULT_PROVENANCE) && st.getObject() instanceof IRI obj) {
×
625
                    data.defaultProvenance = obj;
×
626
                }
627
            } else if (st.getPredicate().equals(NTEMPLATE.HAS_TAG) && st.getObject() instanceof Literal l) {
×
628
                data.pinGroupTags.add(l.stringValue());
×
629
                Set<Serializable> list = data.pinnedResourceMap.get(l.stringValue());
×
630
                if (list == null) {
×
631
                    list = new HashSet<>();
×
632
                    data.pinnedResourceMap.put(l.stringValue(), list);
×
633
                }
634
                list.add(TemplateData.get().getTemplate(st.getSubject().stringValue()));
×
635
            }
636
        }
×
637
    }
×
638

639
    @Override
640
    public String toString() {
641
        return id;
×
642
    }
643

644
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc