@Path(value="/stats") public class MockStatisticsResource extends Object implements StatisticsResource
DATE_FORMAT, SERVICE_PATH
Constructor and Description |
---|
MockStatisticsResource() |
Modifier and Type | Method and Description |
---|---|
ContributionStatistics |
getContributionStatistics(String projectSlug,
String versionSlug,
String username,
String dateRange,
boolean includeAutomatedEntry)
Get contribution statistic from project-version within given date
range.
|
ContainerTranslationStatistics |
getStatistics(String projectSlug,
String iterationSlug,
boolean includeDetails,
boolean includeWordStats,
String[] locales)
Get translation statistics for a Project iteration and (optionally) it's
underlying documents.
|
ContainerTranslationStatistics |
getStatistics(String projectSlug,
String iterationSlug,
String docId,
boolean includeWordStats,
String[] locales)
Get translation statistics for a Document.
|
public ContainerTranslationStatistics getStatistics(String projectSlug, String iterationSlug, @DefaultValue(value="false") boolean includeDetails, @DefaultValue(value="false") boolean includeWordStats, String[] locales)
StatisticsResource
getStatistics
in interface StatisticsResource
projectSlug
- Project identifier.iterationSlug
- Project Iteration identifier.includeDetails
- Indicates whether to include detailed statistics for the
project iteration's documents.includeWordStats
- Indicates whether to include word-level statistics. Default is
only message level stats.locales
- Locale statistics to be fetched. If this is empty, all locale
statistics will be returned. This parameter may be specified
multiple times if multiple locales are to be fetched.public ContainerTranslationStatistics getStatistics(String projectSlug, String iterationSlug, String docId, @DefaultValue(value="false") boolean includeWordStats, String[] locales)
StatisticsResource
getStatistics
in interface StatisticsResource
projectSlug
- Project identifier.iterationSlug
- Project Iteration identifier.docId
- Document identifier.includeWordStats
- Indicates whether to include word-level statistics. Default is
only message level stats.locales
- Locale statistics to be fetched. If this is empty, all locale
statistics will be returned. This parameter may be specified
multiple times if multiple locales are to be fetched.public ContributionStatistics getContributionStatistics(String projectSlug, String versionSlug, String username, String dateRange, boolean includeAutomatedEntry)
StatisticsResource
getContributionStatistics
in interface StatisticsResource
projectSlug
- project identifierversionSlug
- version identifierusername
- username of contributordateRange
- date range from..to (yyyy-mm-dd..yyyy-mm-dd)includeAutomatedEntry
- whether to include automatic entries of translation into statisticCopyright © 2017 Zanata Project. All rights reserved.