Revision 56700
Added by Ioannis Diplas almost 5 years ago
PiWikController.java | ||
---|---|---|
102 | 102 |
try (PrintWriter writer = new PrintWriter(p.toFile())) { |
103 | 103 |
|
104 | 104 |
StringBuilder sb = new StringBuilder(); |
105 |
sb.append(" repositoryid, siteid, authenticationtoken, creationdate, requestorname, requestoremail, validated, validationdate, comment, repositoryname, country \n");
|
|
105 |
sb.append(" Repository ID , Repository name, Country, Site ID, Authentication token, Creation date, Requestor full name, Requestor email, Validated, Validation date, Comment \n");
|
|
106 | 106 |
|
107 | 107 |
for(PiwikInfo piwikInfo : returning){ |
108 | 108 |
sb.append( |
109 | 109 |
(piwikInfo.getRepositoryId() == null ? "," : piwikInfo.getRepositoryId()+ ",")+ |
110 |
(piwikInfo.getRepositoryName() == null ? "," : piwikInfo.getRepositoryName()+ ",")+ |
|
111 |
(piwikInfo.getCountry() == null ? "," : piwikInfo.getCountry()+ ",")+ |
|
110 | 112 |
(piwikInfo.getSiteId() == null ? "," : piwikInfo.getSiteId()+ ",") + |
111 | 113 |
(piwikInfo.getAuthenticationToken() == null ? "," : piwikInfo.getAuthenticationToken()+ ",")+ |
112 | 114 |
(piwikInfo.getCreationDate() == null ? "," : piwikInfo.getCreationDate().toString()+ ",") + |
... | ... | |
114 | 116 |
(piwikInfo.getRequestorEmail() == null ? "," : piwikInfo.getRequestorEmail()+ ",")+ |
115 | 117 |
piwikInfo.isValidated() + "," + |
116 | 118 |
(piwikInfo.getValidationDate() == null ? "," : piwikInfo.getValidationDate().toString()+ ",") + |
117 |
(piwikInfo.getComment() == null ? "," : piwikInfo.getComment()+ ",") + |
|
118 |
(piwikInfo.getRepositoryName() == null ? "," : piwikInfo.getRepositoryName()+ ",")+ |
|
119 |
(piwikInfo.getCountry() == null ? "\n" : piwikInfo.getCountry()+ "\n") |
|
119 |
(piwikInfo.getComment() == null ? "\n" : piwikInfo.getComment()+ "\n") |
|
120 |
|
|
120 | 121 |
); |
121 | 122 |
} |
122 | 123 |
writer.write(sb.toString()); |
Also available in: Unified diff
Fixing naming for csv