public interface StatisticsService
extends com.appiancorp.services.ContextSensitiveService
This interface provides services for other applications using methods related to collaboration download statistics
Methods of service classes can all throw the unchecked exception
ServiceException
if any
system-level error (for example, server failure) occurs, and will in general
throw a checked exception (InvalidXXXException
) when an entity
to be retrieved is inaccessible, instead of returning null
.
Exceptions to this paradigm (including the use of ResultList
as
described below) are noted. All checked exceptions extend
AppianException
.
It may be necessary to retrieve a subset of results as opposed to an entire
collection, and also to sort the subset by some property of the returned
object. "Paging" methods which return a
ResultPage
are provided in certain
instances for this purpose. The ResultPage
will contain the
sorted subset of results
(via Result.getResults()
), and the
total number of items in the available result set
(via ResultPage.getAvailableItems()
).
It may also be necessary to retrieve some results, even if all results
cannot be retrieved (for instance, some of the entities corresponding
to a list of entity IDs may no longer exist). Methods which return a
ResultList
are provided for this
purpose. The Result.getResults()
method in this case will return all results which can be retrieved. In
addition, there will be a list of result codes
(ResultList.getResultCodes()
) that
represent the successful retrieval of an entity, or, if the entity could
not be retrieved, the reason for the failure. See the CODE_XXX
constants in ResultList
for details.
Modifier and Type | Method and Description |
---|---|
DownloadStatistics[] |
getCommunitiesWithMostDownloads(java.lang.Long num_)
|
ResultPage |
getCommunitiesWithMostDownloadsPaging(int startIndex_,
int batchSize_,
java.lang.Integer sortProperty_,
java.lang.Integer sortOrder_)
Gets the communities with the most downloads
|
DownloadStatistics[] |
getDownloadsByDayForKnowledgeCenter(java.lang.Long kcid_,
java.lang.Long days_)
|
ResultPage |
getDownloadsByDayForKnowledgeCenterPaging(java.lang.Long kcid_,
java.lang.Long days_,
int startIndex_,
int batchSize_,
java.lang.Integer sortProperty_,
java.lang.Integer sortOrder_)
Gets the number of downloads for the last N day for a specified knowledge
center
|
DownloadStatistics[] |
getDownloadsByHour()
|
ResultPage |
getDownloadsByHourPaging(int startIndex_,
int batchSize_,
java.lang.Integer sortProperty_,
java.lang.Integer sortOrder_)
Gets the number of downloads for each hour
|
DownloadStatistics[] |
getDownloadsByType()
|
ResultPage |
getDownloadsByTypePaging(int startIndex_,
int batchSize_,
java.lang.Integer sortProperty_,
java.lang.Integer sortOrder_)
Gets the number of downloads by document type
|
DownloadStatistics[] |
getDownloadsByWeekDays()
|
ResultPage |
getDownloadsByWeekDaysPaging(int startIndex_,
int batchSize_,
java.lang.Integer sortProperty_,
java.lang.Integer sortOrder_)
Gets the number of downloads by weekdays
|
UserStatistics |
getGeneralUserDownloadStatistics()
Gets application download statistics
|
DownloadStatistics[] |
getKnowledgeCentersWithMostDownloads(java.lang.Long num_)
|
ResultPage |
getKnowledgeCentersWithMostDownloadsPaging(int startIndex_,
int batchSize_,
java.lang.Integer sortProperty_,
java.lang.Integer sortOrder_)
Gets the knowledge centers with the most downloads
|
DownloadStatistics[] |
getNumberDownloads(java.lang.Long days)
|
ResultPage |
getNumberDownloadsPaging(java.lang.Long days_,
int startIndex_,
int batchSize_,
java.lang.Integer sortProperty_,
java.lang.Integer sortOrder_)
Gets the number of downloads in the last days_ days
|
DocumentStatistics[] |
getPopularDocumentsKnowledgeCenter(java.lang.Long kcid_,
java.lang.Long number_)
|
ResultPage |
getPopularDocumentsKnowledgeCenterPaging(java.lang.Long kcid_,
int startIndex_,
int batchSize_,
java.lang.Integer sortProperty_,
java.lang.Integer sortOrder_)
Gets the most popular documents in a specific knowledge center
|
DocumentStatistics[] |
getTopDocumentsByDownloads(java.lang.Long num_)
|
ResultPage |
getTopDocumentsByDownloadsPaging(int startIndex_,
int batchSize_,
java.lang.Integer sortProperty_,
java.lang.Integer sortOrder_)
Gets the top N documents with the most downloads
|
java.lang.Long |
getTotalDownloads()
Gets the total number of downloads from the collaboration application to
date
|
DownloadStatistics[] |
getUsersByDownloadedContent(java.lang.Long contentId_)
|
ResultPage |
getUsersByDownloadedContentPaging(java.lang.Long contentId_,
int startIndex_,
int batchSize_,
java.lang.Integer sortProperty_,
java.lang.Integer sortOrder_)
Gets the users who have downloaded a specific document, expressed
by content id.
|
DownloadStatistics[] |
getUsersByDownloadedDocument(java.lang.Long doid_)
|
ResultPage |
getUsersByDownloadedDocumentPaging(java.lang.Long docId_,
int startIndex_,
int batchSize_,
java.lang.Integer sortProperty_,
java.lang.Integer sortOrder_)
Gets the users who have downloaded a specific document
|
static final java.lang.Integer SORT_BY_NUMBER_OF_DOWNLOADS
getPopularDocumentsKnowledgeCenter(java.lang.Long, java.lang.Long)
,
getPopularDocumentsKnowledgeCenterPaging(java.lang.Long, int, int, java.lang.Integer, java.lang.Integer)
,
getTopDocumentsByDownloads(java.lang.Long)
,
getTopDocumentsByDownloadsPaging(int, int, java.lang.Integer, java.lang.Integer)
,
getNumberDownloads(java.lang.Long)
, and
getNumberDownloadsPaging(java.lang.Long, int, int, java.lang.Integer, java.lang.Integer)
)static final java.lang.Integer SORT_BY_NUMBER_OF_DOWNLOADS_DOCUMENTS
getPopularDocumentsKnowledgeCenter(java.lang.Long, java.lang.Long)
,
getPopularDocumentsKnowledgeCenterPaging(java.lang.Long, int, int, java.lang.Integer, java.lang.Integer)
,
getTopDocumentsByDownloads(java.lang.Long)
, and
getTopDocumentsByDownloadsPaging(int, int, java.lang.Integer, java.lang.Integer)
)static final java.lang.Integer SORT_BY_NUMBER_OF_DOWNLOADS_NUMDOWNLOADS
getNumberDownloads(java.lang.Long)
, and
getNumberDownloadsPaging(java.lang.Long, int, int, java.lang.Integer, java.lang.Integer)
)static final java.lang.Integer SORT_BY_COMMUNITY_NAME
static final java.lang.Integer SORT_BY_DOWNLOAD_DATE
getNumberDownloads(java.lang.Long)
, and
getNumberDownloadsPaging(java.lang.Long, int, int, java.lang.Integer, java.lang.Integer)
)static final java.lang.Integer SORT_BY_DOWNLOAD_DATE_NUMDOWNLOADS
getNumberDownloads(java.lang.Long)
, and
getNumberDownloadsPaging(java.lang.Long, int, int, java.lang.Integer, java.lang.Integer)
)static final java.lang.Integer SORT_BY_DOWNLOAD_HOUR_OF_DAY
static final java.lang.Integer SORT_BY_DOCUMENT_EXTENSION
static final java.lang.Integer SORT_BY_DOWNLOAD_DAY_OF_WEEK
static final java.lang.Integer SORT_BY_KNOWLEDGE_CENTER_NAME
static final java.lang.Integer SORT_BY_DOWNLOADER
static final boolean getTotalDownloads$UPDATES
static final boolean getNumberDownloads$UPDATES
static final boolean getNumberDownloadsPaging$UPDATES
static final boolean getGeneralUserDownloadStatistics$UPDATES
static final boolean getCommunitiesWithMostDownloads$UPDATES
static final boolean getCommunitiesWithMostDownloadsPaging$UPDATES
static final boolean getKnowledgeCentersWithMostDownloads$UPDATES
static final boolean getKnowledgeCentersWithMostDownloadsPaging$UPDATES
static final boolean getDownloadsByHour$UPDATES
static final boolean getDownloadsByHourPaging$UPDATES
static final boolean getDownloadsByType$UPDATES
static final boolean getDownloadsByTypePaging$UPDATES
static final boolean getTopDocumentsByDownloads$UPDATES
static final boolean getTopDocumentsByDownloadsPaging$UPDATES
static final boolean getDownloadsByWeekDays$UPDATES
static final boolean getDownloadsByWeekDaysPaging$UPDATES
static final boolean getUsersByDownloadedDocument$UPDATES
static final boolean getUsersByDownloadedContent$UPDATES
static final boolean getUsersByDownloadedDocumentPaging$UPDATES
static final boolean getUsersByDownloadedContentPaging$UPDATES
static final boolean getPopularDocumentsKnowledgeCenter$UPDATES
static final boolean getPopularDocumentsKnowledgeCenterPaging$UPDATES
static final boolean getDownloadsByDayForKnowledgeCenter$UPDATES
static final boolean getDownloadsByDayForKnowledgeCenterPaging$UPDATES
java.lang.Long getTotalDownloads()
ServiceException
- if any system-level error occursDownloadStatistics[] getNumberDownloads(java.lang.Long days)
getNumberDownloadsPaging(java.lang.Long, int, int, java.lang.Integer, java.lang.Integer)
days
- the number of days in the queryDownloadStatistics
objects, with the
downloadDate
and numberOfDownloads
fields
populated.
Each DownloadStatistics
object represents one day of download information.ServiceException
- if any system-level error occursResultPage getNumberDownloadsPaging(java.lang.Long days_, int startIndex_, int batchSize_, java.lang.Integer sortProperty_, java.lang.Integer sortOrder_)
days_
- the number of days in the querystartIndex_
- the index into the collection of total results at which
to start. Negative numbers are treated as zeros.batchSize_
- the number of results to return. Negative numbers will
result in the entire collection being returned, but this is
STRONGLY discouraged.sortProperty_
- the property by which the results will be sorted
(SORT_BY_NUMBER_OF_DOWNLOADS_NUMDOWNLOADS
or
SORT_BY_DOWNLOAD_DATE_NUMDOWNLOADS
)sortOrder_
- The order in which to sort the results. This is either
Constants.SORT_ORDER_ASCENDING
or
Constants.SORT_ORDER_DESCENDING
ResultPage
containing a list of
DownloadStatistics
objects, with the
downloadDate
and numberOfDownloads
fields
populated. Each
DownloadStatistics
object represents one day of download information.ServiceException
- if any system-level error occursUserStatistics getGeneralUserDownloadStatistics()
UserStatistics
object encapsulating application
download statistics, with the
numberOfUsersWhoHaveDownloaded
field populated.ServiceException
- if any system-level error occursDownloadStatistics[] getCommunitiesWithMostDownloads(java.lang.Long num_)
getCommunitiesWithMostDownloadsPaging(int, int, java.lang.Integer, java.lang.Integer)
num_
- the top number of communities to returnDownloadStatistics
objects, with the
communityName
and
numberOfDownloads
fields populated.
Each DownloadStatistics
object represents a community's
download informationServiceException
- if any system-level error occursResultPage getCommunitiesWithMostDownloadsPaging(int startIndex_, int batchSize_, java.lang.Integer sortProperty_, java.lang.Integer sortOrder_)
startIndex_
- the index into the collection of total results at which
to start. Negative numbers are treated as zeros.batchSize_
- the number of results to return. Negative numbers will
result in the entire collection being returned, but this is
STRONGLY discouraged.sortProperty_
- the property by which the results will be sorted
(SORT_BY_COMMUNITY_NAME
or
SORT_BY_NUMBER_OF_DOWNLOADS
)sortOrder_
- The order in which to sort the results. This is either
Constants.SORT_ORDER_ASCENDING
or
Constants.SORT_ORDER_DESCENDING
ResultPage
containing a list of
DownloadStatistics
objects, with the communityName
and
numberOfDownloads
fields populated.
Each DownloadStatistics
object represents a community's
download information.ServiceException
- if any system-level error occursDownloadStatistics[] getKnowledgeCentersWithMostDownloads(java.lang.Long num_)
getKnowledgeCentersWithMostDownloadsPaging(int, int, java.lang.Integer, java.lang.Integer)
num_
- the top number of knowledge centers to returnDownloadStatistics
objects, with the
knowledgeCenterName
and
numberOfDownloads
fields populated.
Each DownloadStatistics
object represents a knowledge
center's download information.ServiceException
- if any system-level error occursResultPage getKnowledgeCentersWithMostDownloadsPaging(int startIndex_, int batchSize_, java.lang.Integer sortProperty_, java.lang.Integer sortOrder_)
startIndex_
- the index into the collection of total results at which
to start. Negative numbers are treated as zeros.batchSize_
- the number of results to return. Negative numbers will
result in the entire collection being returned, but this is
STRONGLY discouraged.sortProperty_
- the property by which the results will be sorted
(SORT_BY_KNOWLEDGE_CENTER_NAME
or
SORT_BY_NUMBER_OF_DOWNLOADS
)sortOrder_
- The order in which to sort the results. This is either
Constants.SORT_ORDER_ASCENDING
or
Constants.SORT_ORDER_DESCENDING
ResultPage
containing a list of
DownloadStatistics
objects, with the
knowledgeCenterName
and
numberOfDownloads
fields populated.
Each DownloadStatistics
object represents a knowledge
center's download information.ServiceException
- if any system-level error occursDownloadStatistics[] getDownloadsByHour()
DownloadStatistics
objects.
Each DownloadStatistics
object represents download
information for an hour, with the downloadHourOfDay
and
numberOfDownloads
fields populatedServiceException
- if any system-level error occursResultPage getDownloadsByHourPaging(int startIndex_, int batchSize_, java.lang.Integer sortProperty_, java.lang.Integer sortOrder_)
startIndex_
- the index into the collection of total results at which
to start. Negative numbers are treated as zeros.batchSize_
- the number of results to return. Negative numbers will
result in the entire collection being returned, but this is
STRONGLY discouraged.sortProperty_
- the property by which the results will be sorted
(SORT_BY_DOWNLOAD_HOUR_OF_DAY
or
SORT_BY_NUMBER_OF_DOWNLOADS
)sortOrder_
- The order in which to sort the results. This is either
Constants.SORT_ORDER_ASCENDING
or
Constants.SORT_ORDER_DESCENDING
ResultPage
containing a list of
DownloadStatistics
objects, with the
downloadHourOfDay
and
numberOfDownloads
fields populated.
Each DownloadStatistics
object represents download
information for an hour.ServiceException
- if any system-level error occursDownloadStatistics[] getDownloadsByType()
DownloadStatistics
objects, with the
documentExtension
and
numberOfDownloads
fields populated.
Each DownloadStatistics
object represents download
information for a document extension.ServiceException
- if any system-level error occursResultPage getDownloadsByTypePaging(int startIndex_, int batchSize_, java.lang.Integer sortProperty_, java.lang.Integer sortOrder_)
startIndex_
- the index into the collection of total results at which
to start. Negative numbers are treated as zeros.batchSize_
- the number of results to return. Negative numbers will
result in the entire collection being returned, but this is
STRONGLY discouraged.sortProperty_
- the property by which the results will be sorted
(SORT_BY_DOCUMENT_EXTENSION
or
SORT_BY_NUMBER_OF_DOWNLOADS
)sortOrder_
- The order in which to sort the results. This is either
Constants.SORT_ORDER_ASCENDING
or
Constants.SORT_ORDER_DESCENDING
ResultPage
containing a list of
DownloadStatistics
objects, with the
documentExtension
and
numberOfDownloads
fields populated.
Each DownloadStatistics
object represents download
information for a document extension.ServiceException
- if any system-level error occursDocumentStatistics[] getTopDocumentsByDownloads(java.lang.Long num_)
num_
- the top number of documents to returnDocumentStatistics
objects which represent
the most downloaded documents, with the normal
DocumentService.getDocuments(java.lang.Long[])
fields
and the numberOfDownloads
field populatedServiceException
- if any system-level error occursResultPage getTopDocumentsByDownloadsPaging(int startIndex_, int batchSize_, java.lang.Integer sortProperty_, java.lang.Integer sortOrder_)
startIndex_
- the index into the collection of total results at which
to start. Negative numbers are treated as zeros.batchSize_
- the number of results to return. Negative numbers will
result in the entire collection being returned, but this is
STRONGLY discouraged.sortProperty_
- the property by which the results will be sorted
(SORT_BY_NUMBER_OF_DOWNLOADS_DOCUMENTS
or
any of the SORT_BY_XXX
fields under
Document
)sortOrder_
- The order in which to sort the results. This is either
Constants.SORT_ORDER_ASCENDING
or
Constants.SORT_ORDER_DESCENDING
ResultPage
containing a list of
DocumentStatistics
objects which represent
the most downloaded documents, with the normal
DocumentService.getDocuments(java.lang.Long[])
fields
and the numberOfDownloads
field populatedServiceException
- if any system-level error occursDownloadStatistics[] getDownloadsByWeekDays()
DownloadStatistics
objects, with the
downloadDayOfWeek
and
numberOfDownloads
fields populated.
Each DownloadStatistics
object represents download
information for a weekday.ServiceException
- if any system-level error occursResultPage getDownloadsByWeekDaysPaging(int startIndex_, int batchSize_, java.lang.Integer sortProperty_, java.lang.Integer sortOrder_)
startIndex_
- the index into the collection of total results at which
to start. Negative numbers are treated as zeros.batchSize_
- the number of results to return. Negative numbers will
result in the entire collection being returned, but this is
STRONGLY discouraged.sortProperty_
- the property by which the results will be sorted
(SORT_BY_DOWNLOAD_DAY_OF_WEEK
or
SORT_BY_NUMBER_OF_DOWNLOADS
)sortOrder_
- The order in which to sort the results. This is either
Constants.SORT_ORDER_ASCENDING
or
Constants.SORT_ORDER_DESCENDING
ResultPage
containing a list of
DownloadStatistics
objects, with the
downloadDayOfWeek
and
numberOfDownloads
fields populated.
Each DownloadStatistics
object represents download
information for a weekday.ServiceException
- if any system-level error occursDownloadStatistics[] getUsersByDownloadedDocument(java.lang.Long doid_) throws InvalidDocumentException
getUsersByDownloadedDocumentPaging(java.lang.Long, int, int, java.lang.Integer, java.lang.Integer)
doid_
- the unique ID of the documentDownloadStatistics
objects, with the
downloader
field populated.
Each DownloadStatistics
object represents one user who
downloaded the documentServiceException
- if any system-level error occursInvalidDocumentException
- if the document does not existDownloadStatistics[] getUsersByDownloadedContent(java.lang.Long contentId_) throws InvalidDocumentException
getUsersByDownloadedContentPaging(java.lang.Long, int, int, java.lang.Integer, java.lang.Integer)
contentId_
- the unique content ID of the documentDownloadStatistics
objects, with the
downloader
field populated.
Each DownloadStatistics
object represents one user who
downloaded the documentServiceException
- if any system-level error occursInvalidDocumentException
- if the document does not existResultPage getUsersByDownloadedDocumentPaging(java.lang.Long docId_, int startIndex_, int batchSize_, java.lang.Integer sortProperty_, java.lang.Integer sortOrder_) throws InvalidDocumentException
docId_
- the unique ID of the documentstartIndex_
- the index into the collection of total results at which
to start. Negative numbers are treated as zeros.batchSize_
- the number of results to return. Negative numbers will
result in the entire collection being returned, but this is
STRONGLY discouraged.sortProperty_
- the property by which the results will be sorted
(SORT_BY_DOWNLOADER
)sortOrder_
- The order in which to sort the results. This is either
Constants.SORT_ORDER_ASCENDING
or
Constants.SORT_ORDER_DESCENDING
ResultPage
containing a list of
DownloadStatistics
objects, with the
downloader
field populated.
Each DownloadStatistics
object represents one user who
downloaded the documentServiceException
- if any system-level error occursInvalidDocumentException
- if the document does not existResultPage getUsersByDownloadedContentPaging(java.lang.Long contentId_, int startIndex_, int batchSize_, java.lang.Integer sortProperty_, java.lang.Integer sortOrder_) throws InvalidDocumentException
docId_
- the unique ID of the documentstartIndex_
- the index into the collection of total results at which
to start. Negative numbers are treated as zeros.batchSize_
- the number of results to return. Negative numbers will
result in the entire collection being returned, but this is
STRONGLY discouraged.sortProperty_
- the property by which the results will be sorted
(SORT_BY_DOWNLOADER
)sortOrder_
- The order in which to sort the results. This is either
Constants.SORT_ORDER_ASCENDING
or
Constants.SORT_ORDER_DESCENDING
ResultPage
containing a list of
DownloadStatistics
objects, with the
downloader
field populated.
Each DownloadStatistics
object represents one user who
downloaded the documentServiceException
- if any system-level error occursInvalidDocumentException
- if the document does not existDocumentStatistics[] getPopularDocumentsKnowledgeCenter(java.lang.Long kcid_, java.lang.Long number_) throws InvalidKnowledgeCenterException
getPopularDocumentsKnowledgeCenterPaging(java.lang.Long, int, int, java.lang.Integer, java.lang.Integer)
kcid_
- the unique ID of the knowledge centernumber_
- the top number to documents to returnDocumentStatistics
objects representing
the most popular documents, with the normal
DocumentService.getDocuments(java.lang.Long[])
fields
and the numberOfDownloads
field populatedServiceException
- if any system-level error occursInvalidKnowledgeCenterException
- Never thrown. Is only declared for backwards compatibility.ResultPage getPopularDocumentsKnowledgeCenterPaging(java.lang.Long kcid_, int startIndex_, int batchSize_, java.lang.Integer sortProperty_, java.lang.Integer sortOrder_) throws InvalidKnowledgeCenterException
kcid_
- the unique ID of the knowledge centerstartIndex_
- the index into the collection of total results at which
to start. Negative numbers are treated as zeros.batchSize_
- the number of results to return. Negative numbers will
result in the entire collection being returned, but this is
STRONGLY discouraged.sortProperty_
- the property by which the results will be sorted
(SORT_BY_NUMBER_OF_DOWNLOADS_DOCUMENTS
or
any of the SORT_BY_XXX
fields under
Document
)sortOrder_
- The order in which to sort the results. This is either
Constants.SORT_ORDER_ASCENDING
or
Constants.SORT_ORDER_DESCENDING
ResultPage
containing a list of
DocumentStatistics
objects representing the most popular
documents, with the normal DocumentService.getDocuments(java.lang.Long[])
fields
and the numberOfDownloads
field populatedServiceException
- if any system-level error occursInvalidKnowledgeCenterException
- Never thrown. Is only declared for backwards compatibility.DownloadStatistics[] getDownloadsByDayForKnowledgeCenter(java.lang.Long kcid_, java.lang.Long days_) throws InvalidKnowledgeCenterException
getDownloadsByDayForKnowledgeCenterPaging(java.lang.Long, java.lang.Long, int, int, java.lang.Integer, java.lang.Integer)
kcid_
- the unique ID of the knowledge centerdays_
- the number of days in the queryDownloadStatistics
objects, with the
downloadDate
and numberOfDownloads
fields
populated.
Each DownloadStatistics
object represents one day of download
information for the knowledge centerServiceException
- if any system-level error occursInvalidKnowledgeCenterException
- Never thrown. Is only declared for backwards compatibility.ResultPage getDownloadsByDayForKnowledgeCenterPaging(java.lang.Long kcid_, java.lang.Long days_, int startIndex_, int batchSize_, java.lang.Integer sortProperty_, java.lang.Integer sortOrder_) throws InvalidKnowledgeCenterException
kcid_
- the unique ID of the knowledge centerdays_
- the number of days in the querystartIndex_
- the index into the collection of total results at which
to start. Negative numbers are treated as zeros.batchSize_
- the number of results to return. Negative numbers will
result in the entire collection being returned, but this is
STRONGLY discouraged.sortProperty_
- the property by which the results will be sorted
(SORT_BY_DOWNLOAD_DATE
or
SORT_BY_NUMBER_OF_DOWNLOADS
)sortOrder_
- The order in which to sort the results. This is either
Constants.SORT_ORDER_ASCENDING
or
Constants.SORT_ORDER_DESCENDING
ResultPage
containing a list of
DownloadStatistics
objects, with the downloadDate
and numberOfDownloads
fields populated. Each
DownloadStatistics
object represents one day of download
information for the knowledge centerServiceException
- if any system-level error occursInvalidKnowledgeCenterException
- Never thrown. Is only declared for backwards compatibility.Copyright © 2003-2024 Appian Corporation. All Rights Reserved.