Package services.gui

Class AdminService


  • @Singleton
    public class AdminService
    extends java.lang.Object
    Service class mostly for Admin controller.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.fasterxml.jackson.databind.JsonNode getAdminStatus()  
      java.util.List<java.util.Map<java.lang.String,​java.lang.Object>> getLatestStudyRuns​(int limit)  
      java.util.List<java.util.Map<java.lang.String,​java.lang.String>> getLatestUsers​(int limit)
      Gets the last seen time of users that were active latest, except the signed in one.
      com.google.common.collect.ImmutableMap<java.lang.String,​java.lang.Object> getResultDataSize​(Study study, int studyResultCount)  
      com.google.common.collect.ImmutableMap<java.lang.String,​java.lang.Object> getResultFileSize​(Study study, int studyResultCount)  
      java.util.List<java.util.Map<java.lang.String,​java.lang.Object>> getStudiesData​(java.util.Collection<Study> studyList, boolean studyAssetsSizeFlag, boolean resultDataSizeFlag, boolean resultFileSizeFlag)  
      java.util.Map<java.lang.String,​java.lang.Object> getStudyAssetDirSize​(Study study)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getStudiesData

        public java.util.List<java.util.Map<java.lang.String,​java.lang.Object>> getStudiesData​(java.util.Collection<Study> studyList,
                                                                                                     boolean studyAssetsSizeFlag,
                                                                                                     boolean resultDataSizeFlag,
                                                                                                     boolean resultFileSizeFlag)
                                                                                              throws java.io.IOException
        Throws:
        java.io.IOException
      • getStudyAssetDirSize

        public java.util.Map<java.lang.String,​java.lang.Object> getStudyAssetDirSize​(Study study)
                                                                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • getResultDataSize

        public com.google.common.collect.ImmutableMap<java.lang.String,​java.lang.Object> getResultDataSize​(Study study,
                                                                                                                 int studyResultCount)
      • getResultFileSize

        public com.google.common.collect.ImmutableMap<java.lang.String,​java.lang.Object> getResultFileSize​(Study study,
                                                                                                                 int studyResultCount)
      • getLatestUsers

        public java.util.List<java.util.Map<java.lang.String,​java.lang.String>> getLatestUsers​(int limit)
        Gets the last seen time of users that were active latest, except the signed in one. It is limited to 'limit' latest users.
      • getLatestStudyRuns

        public java.util.List<java.util.Map<java.lang.String,​java.lang.Object>> getLatestStudyRuns​(int limit)
      • getAdminStatus

        public com.fasterxml.jackson.databind.JsonNode getAdminStatus()