Checking if repository has a piwik site before creating an identity for it
This commit is contained in:
parent
7e21cdc153
commit
1f7a25d184
|
@ -281,10 +281,16 @@ public class Converter {
|
||||||
|
|
||||||
//TODO check identitites
|
//TODO check identitites
|
||||||
//Map<String,String> identity = new HashMap<>();
|
//Map<String,String> identity = new HashMap<>();
|
||||||
Map<String, Object> identities = new HashMap<>();
|
|
||||||
identities.put("issuertype", "piwik");
|
if (repository.getPiwikInfo() != null) {
|
||||||
identities.put("pid","piwik:"+repository.getPiwikInfo().getSiteId());
|
Map<String, Object> identities = new HashMap<>();
|
||||||
repositoryMap.put("identities",identities);
|
|
||||||
|
identities.put("issuertype", "piwik");
|
||||||
|
identities.put("pid", "piwik:" + repository.getPiwikInfo().getSiteId());
|
||||||
|
|
||||||
|
repositoryMap.put("identities", identities);
|
||||||
|
}
|
||||||
|
|
||||||
repositoryMap.put("subjects","");
|
repositoryMap.put("subjects","");
|
||||||
|
|
||||||
return mapper.writeValueAsString(repositoryMap);
|
return mapper.writeValueAsString(repositoryMap);
|
||||||
|
|
Loading…
Reference in New Issue