Interface StatisticsService
- All Superinterfaces:
com.appiancorp.services.ContextSensitiveService,Service
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.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final IntegerCode to use communityName as the sort propertystatic final IntegerCode to use documentExtension as the sort propertystatic final IntegerCode to use downloadDate as the sort property (for all methods exceptgetNumberDownloads(java.lang.Long), andgetNumberDownloadsPaging(java.lang.Long, int, int, java.lang.Integer, java.lang.Integer))static final IntegerCode to use downloadDate as the sort property (forgetNumberDownloads(java.lang.Long), andgetNumberDownloadsPaging(java.lang.Long, int, int, java.lang.Integer, java.lang.Integer))static final IntegerCode to use downloadDaysOfWeek as the sort propertystatic final IntegerCode to use downloadHourOfDay as the sort propertystatic final IntegerCode to use downloader as the sort propertystatic final IntegerCode to use knowledgeCenterName as the sort propertystatic final IntegerCode to use numberOfDownloads as the sort property (for all methods exceptgetPopularDocumentsKnowledgeCenter(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), andgetNumberDownloadsPaging(java.lang.Long, int, int, java.lang.Integer, java.lang.Integer))static final IntegerCode to use numberOfDownloads as the sort property (forgetPopularDocumentsKnowledgeCenter(java.lang.Long, java.lang.Long),getPopularDocumentsKnowledgeCenterPaging(java.lang.Long, int, int, java.lang.Integer, java.lang.Integer),getTopDocumentsByDownloads(java.lang.Long), andgetTopDocumentsByDownloadsPaging(int, int, java.lang.Integer, java.lang.Integer))static final IntegerCode to use numberOfDownloads as the sort property (forgetNumberDownloads(java.lang.Long), andgetNumberDownloadsPaging(java.lang.Long, int, int, java.lang.Integer, java.lang.Integer))Fields inherited from interface com.appiancorp.services.ContextSensitiveService
SET_SERVICE_CONTEXT_METHOD_NAME -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.getCommunitiesWithMostDownloadsPaging(int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Gets the communities with the most downloadsgetDownloadsByDayForKnowledgeCenter(Long kcid_, Long days_) getDownloadsByDayForKnowledgeCenterPaging(Long kcid_, Long days_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Gets the number of downloads for the last N day for a specified knowledge centergetDownloadsByHourPaging(int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Gets the number of downloads for each hourgetDownloadsByTypePaging(int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Gets the number of downloads by document typegetDownloadsByWeekDaysPaging(int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Gets the number of downloads by weekdaysGets application download statisticsgetKnowledgeCentersWithMostDownloadsPaging(int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Gets the knowledge centers with the most downloadsgetNumberDownloads(Long days) getNumberDownloadsPaging(Long days_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Gets the number of downloads in the last days_ daysgetPopularDocumentsKnowledgeCenter(Long kcid_, Long number_) getPopularDocumentsKnowledgeCenterPaging(Long kcid_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Gets the most popular documents in a specific knowledge centergetTopDocumentsByDownloadsPaging(int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Gets the top N documents with the most downloadsGets the total number of downloads from the collaboration application to dategetUsersByDownloadedContent(Long contentId_) getUsersByDownloadedContentPaging(Long documentContentId, int startIndex, int batchSize, Integer sortProperty, Integer sortOrder) Gets the users who have downloaded a specific document, expressed by content id.getUsersByDownloadedDocument(Long doid_) getUsersByDownloadedDocumentPaging(Long docId_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Gets the users who have downloaded a specific documentMethods inherited from interface com.appiancorp.services.ContextSensitiveService
setServiceContext
-
Field Details
-
SORT_BY_NUMBER_OF_DOWNLOADS
Code to use numberOfDownloads as the sort property (for all methods exceptgetPopularDocumentsKnowledgeCenter(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), andgetNumberDownloadsPaging(java.lang.Long, int, int, java.lang.Integer, java.lang.Integer)) -
SORT_BY_NUMBER_OF_DOWNLOADS_DOCUMENTS
Code to use numberOfDownloads as the sort property (forgetPopularDocumentsKnowledgeCenter(java.lang.Long, java.lang.Long),getPopularDocumentsKnowledgeCenterPaging(java.lang.Long, int, int, java.lang.Integer, java.lang.Integer),getTopDocumentsByDownloads(java.lang.Long), andgetTopDocumentsByDownloadsPaging(int, int, java.lang.Integer, java.lang.Integer)) -
SORT_BY_NUMBER_OF_DOWNLOADS_NUMDOWNLOADS
Code to use numberOfDownloads as the sort property (forgetNumberDownloads(java.lang.Long), andgetNumberDownloadsPaging(java.lang.Long, int, int, java.lang.Integer, java.lang.Integer)) -
SORT_BY_COMMUNITY_NAME
Code to use communityName as the sort property -
SORT_BY_DOWNLOAD_DATE
Code to use downloadDate as the sort property (for all methods exceptgetNumberDownloads(java.lang.Long), andgetNumberDownloadsPaging(java.lang.Long, int, int, java.lang.Integer, java.lang.Integer)) -
SORT_BY_DOWNLOAD_DATE_NUMDOWNLOADS
Code to use downloadDate as the sort property (forgetNumberDownloads(java.lang.Long), andgetNumberDownloadsPaging(java.lang.Long, int, int, java.lang.Integer, java.lang.Integer)) -
SORT_BY_DOWNLOAD_HOUR_OF_DAY
Code to use downloadHourOfDay as the sort property -
SORT_BY_DOCUMENT_EXTENSION
Code to use documentExtension as the sort property -
SORT_BY_DOWNLOAD_DAY_OF_WEEK
Code to use downloadDaysOfWeek as the sort property -
SORT_BY_KNOWLEDGE_CENTER_NAME
Code to use knowledgeCenterName as the sort property -
SORT_BY_DOWNLOADER
Code to use downloader as the sort property -
getTotalDownloads$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getNumberDownloads$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getNumberDownloadsPaging$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getGeneralUserDownloadStatistics$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getCommunitiesWithMostDownloads$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getCommunitiesWithMostDownloadsPaging$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getKnowledgeCentersWithMostDownloads$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getKnowledgeCentersWithMostDownloadsPaging$UPDATES
@Deprecated(forRemoval=true) static final boolean getKnowledgeCentersWithMostDownloadsPaging$UPDATESDeprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getDownloadsByHour$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getDownloadsByHourPaging$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getDownloadsByType$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getDownloadsByTypePaging$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getTopDocumentsByDownloads$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getTopDocumentsByDownloadsPaging$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getDownloadsByWeekDays$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getDownloadsByWeekDaysPaging$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getUsersByDownloadedDocument$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getUsersByDownloadedContent$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getUsersByDownloadedDocumentPaging$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getUsersByDownloadedContentPaging$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getPopularDocumentsKnowledgeCenter$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getPopularDocumentsKnowledgeCenterPaging$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getDownloadsByDayForKnowledgeCenter$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getDownloadsByDayForKnowledgeCenterPaging$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
-
Method Details
-
getTotalDownloads
Gets the total number of downloads from the collaboration application to date- Returns:
- the total number of downloads
-
getNumberDownloads
Deprecated.Gets the number of downloads in the last days_ days- Parameters:
days- the number of days in the query- Returns:
- a list of
DownloadStatisticsobjects, with thedownloadDateandnumberOfDownloadsfields populated. EachDownloadStatisticsobject represents one day of download information.
-
getNumberDownloadsPaging
@Read(K_COLLAB_STAT) ResultPage getNumberDownloadsPaging(Long days_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Gets the number of downloads in the last days_ days- Parameters:
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_NUMDOWNLOADSorSORT_BY_DOWNLOAD_DATE_NUMDOWNLOADS)sortOrder_- The order in which to sort the results. This is eitherConstants.SORT_ORDER_ASCENDINGorConstants.SORT_ORDER_DESCENDING- Returns:
- a
ResultPagecontaining a list ofDownloadStatisticsobjects, with thedownloadDateandnumberOfDownloadsfields populated. EachDownloadStatisticsobject represents one day of download information.
-
getGeneralUserDownloadStatistics
Gets application download statistics- Returns:
- a
UserStatisticsobject encapsulating application download statistics, with thenumberOfUsersWhoHaveDownloadedfield populated.
-
getCommunitiesWithMostDownloads
Deprecated.Gets the top num_ communities with the most downloads- Parameters:
num_- the top number of communities to return- Returns:
- a list of
DownloadStatisticsobjects, with thecommunityNameandnumberOfDownloadsfields populated. EachDownloadStatisticsobject represents a community's download information
-
getCommunitiesWithMostDownloadsPaging
@Read(K_COLLAB_STAT) ResultPage getCommunitiesWithMostDownloadsPaging(int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Gets the communities with the most downloads- Parameters:
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_NAMEorSORT_BY_NUMBER_OF_DOWNLOADS)sortOrder_- The order in which to sort the results. This is eitherConstants.SORT_ORDER_ASCENDINGorConstants.SORT_ORDER_DESCENDING- Returns:
- a
ResultPagecontaining a list ofDownloadStatisticsobjects, with thecommunityNameandnumberOfDownloadsfields populated. EachDownloadStatisticsobject represents a community's download information.
-
getKnowledgeCentersWithMostDownloads
@Deprecated @Read(K_COLLAB_STAT) DownloadStatistics[] getKnowledgeCentersWithMostDownloads(Long num_) Deprecated.Gets the top num_ knowledge centers with the most downloads- Parameters:
num_- the top number of knowledge centers to return- Returns:
- a list of
DownloadStatisticsobjects, with theknowledgeCenterNameandnumberOfDownloadsfields populated. EachDownloadStatisticsobject represents a knowledge center's download information.
-
getKnowledgeCentersWithMostDownloadsPaging
@Read(K_COLLAB_STAT) ResultPage getKnowledgeCentersWithMostDownloadsPaging(int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Gets the knowledge centers with the most downloads- Parameters:
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_NAMEorSORT_BY_NUMBER_OF_DOWNLOADS)sortOrder_- The order in which to sort the results. This is eitherConstants.SORT_ORDER_ASCENDINGorConstants.SORT_ORDER_DESCENDING- Returns:
- a
ResultPagecontaining a list ofDownloadStatisticsobjects, with theknowledgeCenterNameandnumberOfDownloadsfields populated. EachDownloadStatisticsobject represents a knowledge center's download information.
-
getDownloadsByHour
Gets the number of downloads for each hour- Returns:
- a list of
DownloadStatisticsobjects. EachDownloadStatisticsobject represents download information for an hour, with thedownloadHourOfDayandnumberOfDownloadsfields populated
-
getDownloadsByHourPaging
@Read(K_COLLAB_STAT) ResultPage getDownloadsByHourPaging(int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Gets the number of downloads for each hour- Parameters:
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_DAYorSORT_BY_NUMBER_OF_DOWNLOADS)sortOrder_- The order in which to sort the results. This is eitherConstants.SORT_ORDER_ASCENDINGorConstants.SORT_ORDER_DESCENDING- Returns:
- a
ResultPagecontaining a list ofDownloadStatisticsobjects, with thedownloadHourOfDayandnumberOfDownloadsfields populated. EachDownloadStatisticsobject represents download information for an hour.
-
getDownloadsByType
Gets the number of downloads by document type- Returns:
- a list of
DownloadStatisticsobjects, with thedocumentExtensionandnumberOfDownloadsfields populated. EachDownloadStatisticsobject represents download information for a document extension.
-
getDownloadsByTypePaging
@Read(K_COLLAB_STAT) ResultPage getDownloadsByTypePaging(int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Gets the number of downloads by document type- Parameters:
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_EXTENSIONorSORT_BY_NUMBER_OF_DOWNLOADS)sortOrder_- The order in which to sort the results. This is eitherConstants.SORT_ORDER_ASCENDINGorConstants.SORT_ORDER_DESCENDING- Returns:
- a
ResultPagecontaining a list ofDownloadStatisticsobjects, with thedocumentExtensionandnumberOfDownloadsfields populated. EachDownloadStatisticsobject represents download information for a document extension.
-
getTopDocumentsByDownloads
Gets the top num_ documents in terms of how often they have been downloaded- Parameters:
num_- the top number of documents to return- Returns:
- a list of
DocumentStatisticsobjects which represent the most downloaded documents, with the normalDocumentService.getDocuments(java.lang.Long[])fields and thenumberOfDownloadsfield populated
-
getTopDocumentsByDownloadsPaging
@Read(K_COLLAB_STAT) ResultPage getTopDocumentsByDownloadsPaging(int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Gets the top N documents with the most downloads- Parameters:
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_DOCUMENTSor any of theSORT_BY_XXXfields underDocument)sortOrder_- The order in which to sort the results. This is eitherConstants.SORT_ORDER_ASCENDINGorConstants.SORT_ORDER_DESCENDING- Returns:
- a
ResultPagecontaining a list ofDocumentStatisticsobjects which represent the most downloaded documents, with the normalDocumentService.getDocuments(java.lang.Long[])fields and thenumberOfDownloadsfield populated
-
getDownloadsByWeekDays
Gets the number of downloads by weekdays- Returns:
- a list of
DownloadStatisticsobjects, with thedownloadDayOfWeekandnumberOfDownloadsfields populated. EachDownloadStatisticsobject represents download information for a weekday.
-
getDownloadsByWeekDaysPaging
@Read(K_COLLAB_STAT) ResultPage getDownloadsByWeekDaysPaging(int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Gets the number of downloads by weekdays- Parameters:
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_WEEKorSORT_BY_NUMBER_OF_DOWNLOADS)sortOrder_- The order in which to sort the results. This is eitherConstants.SORT_ORDER_ASCENDINGorConstants.SORT_ORDER_DESCENDING- Returns:
- a
ResultPagecontaining a list ofDownloadStatisticsobjects, with thedownloadDayOfWeekandnumberOfDownloadsfields populated. EachDownloadStatisticsobject represents download information for a weekday.
-
getUsersByDownloadedDocument
@Deprecated @Read(K_COLLAB_STAT) DownloadStatistics[] getUsersByDownloadedDocument(Long doid_) throws InvalidDocumentException Deprecated.Gets the users who have downloaded a specific document- Parameters:
doid_- the unique ID of the document- Returns:
- a list of
DownloadStatisticsobjects, with thedownloaderfield populated. EachDownloadStatisticsobject represents one user who downloaded the document - Throws:
InvalidDocumentException- if the document does not exist
-
getUsersByDownloadedContent
@Deprecated @Read(K_COLLAB_STAT) DownloadStatistics[] getUsersByDownloadedContent(Long contentId_) throws InvalidDocumentException Deprecated.Gets the users who have downloaded a specific document, expressed by content id. This allows one particular version of a document to be examined (use ContentService's getVersionId for this id).- Parameters:
contentId_- the unique content ID of the document- Returns:
- a list of
DownloadStatisticsobjects, with thedownloaderfield populated. EachDownloadStatisticsobject represents one user who downloaded the document - Throws:
InvalidDocumentException- if the document does not exist
-
getUsersByDownloadedDocumentPaging
@Read(K_COLLAB_STAT) ResultPage getUsersByDownloadedDocumentPaging(Long docId_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) throws InvalidDocumentException Gets the users who have downloaded a specific document- Parameters:
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 eitherConstants.SORT_ORDER_ASCENDINGorConstants.SORT_ORDER_DESCENDING- Returns:
- a
ResultPagecontaining a list ofDownloadStatisticsobjects, with thedownloaderfield populated. EachDownloadStatisticsobject represents one user who downloaded the document - Throws:
InvalidDocumentException- if the document does not exist
-
getUsersByDownloadedContentPaging
@Read(K_COLLAB_STAT) ResultPage getUsersByDownloadedContentPaging(Long documentContentId, int startIndex, int batchSize, Integer sortProperty, Integer sortOrder) throws InvalidDocumentException Gets the users who have downloaded a specific document, expressed by content id. This allows one particular version of a document to be examined (use ContentService's getVersionId for this id).- Parameters:
documentContentId- 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 eitherConstants.SORT_ORDER_ASCENDINGorConstants.SORT_ORDER_DESCENDING- Returns:
- a
ResultPagecontaining a list ofDownloadStatisticsobjects, with thedownloaderfield populated. EachDownloadStatisticsobject represents one user who downloaded the document - Throws:
InvalidDocumentException- if the document does not exist
-
getPopularDocumentsKnowledgeCenter
@Deprecated @Read(K_COLLAB_STAT) DocumentStatistics[] getPopularDocumentsKnowledgeCenter(Long kcid_, Long number_) throws InvalidKnowledgeCenterException Deprecated.Gets the number_ most popular documents in a specific knowledge center- Parameters:
kcid_- the unique ID of the knowledge centernumber_- the top number to documents to return- Returns:
- an array of
DocumentStatisticsobjects representing the most popular documents, with the normalDocumentService.getDocuments(java.lang.Long[])fields and thenumberOfDownloadsfield populated - Throws:
InvalidKnowledgeCenterException- Never thrown. Is only declared for backwards compatibility.
-
getPopularDocumentsKnowledgeCenterPaging
@Read(K_COLLAB_STAT) ResultPage getPopularDocumentsKnowledgeCenterPaging(Long kcid_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) throws InvalidKnowledgeCenterException Gets the most popular documents in a specific knowledge center- Parameters:
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_DOCUMENTSor any of theSORT_BY_XXXfields underDocument)sortOrder_- The order in which to sort the results. This is eitherConstants.SORT_ORDER_ASCENDINGorConstants.SORT_ORDER_DESCENDING- Returns:
- a
ResultPagecontaining a list ofDocumentStatisticsobjects representing the most popular documents, with the normalDocumentService.getDocuments(java.lang.Long[])fields and thenumberOfDownloadsfield populated - Throws:
InvalidKnowledgeCenterException- Never thrown. Is only declared for backwards compatibility.
-
getDownloadsByDayForKnowledgeCenter
@Deprecated @Read(K_COLLAB_STAT) DownloadStatistics[] getDownloadsByDayForKnowledgeCenter(Long kcid_, Long days_) throws InvalidKnowledgeCenterException Deprecated.Gets the number of downloads for the last days_ day for a specified knowledge center- Parameters:
kcid_- the unique ID of the knowledge centerdays_- the number of days in the query- Returns:
- a list of
DownloadStatisticsobjects, with thedownloadDateandnumberOfDownloadsfields populated. EachDownloadStatisticsobject represents one day of download information for the knowledge center - Throws:
InvalidKnowledgeCenterException- Never thrown. Is only declared for backwards compatibility.
-
getDownloadsByDayForKnowledgeCenterPaging
@Read(K_COLLAB_STAT) ResultPage getDownloadsByDayForKnowledgeCenterPaging(Long kcid_, Long days_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) throws InvalidKnowledgeCenterException Gets the number of downloads for the last N day for a specified knowledge center- Parameters:
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_DATEorSORT_BY_NUMBER_OF_DOWNLOADS)sortOrder_- The order in which to sort the results. This is eitherConstants.SORT_ORDER_ASCENDINGorConstants.SORT_ORDER_DESCENDING- Returns:
- a
ResultPagecontaining a list ofDownloadStatisticsobjects, with thedownloadDateandnumberOfDownloadsfields populated. EachDownloadStatisticsobject represents one day of download information for the knowledge center - Throws:
InvalidKnowledgeCenterException- Never thrown. Is only declared for backwards compatibility.
-
getCommunitiesWithMostDownloadsPaging(int, int, java.lang.Integer, java.lang.Integer)