Class PermittedSpacesAnalyticsEvent

    • Constructor Detail

      • PermittedSpacesAnalyticsEvent

        public PermittedSpacesAnalyticsEvent​(int receivedSpacesCount,
                                             int requestedSpacesCount,
                                             boolean isFallbackServiceUsed,
                                             boolean isLegacyCodeUsed,
                                             long durationMillisecond,
                                             boolean permissionsExempt,
                                             Integer amountOfSids)
        An analytic event which is sent when method BulkPermissionService.getPermittedSpaces(SpacesQuery, int, int) is called.
        Parameters:
        receivedSpacesCount - Amount of spaces that were received in response from db
        requestedSpacesCount - Amount of spaces that were requested
        isFallbackServiceUsed - Indicates whether request was processed by denormalised permission service or by fallback service ("old" permissions service)
        durationMillisecond - The execution duration in milliseconds
        permissionsExempt - Indicate if the user is exempt from permission check
        amountOfSids - Amount of sids available for the current user. Should be null for fallback service
    • Method Detail

      • getReceivedSpacesCount

        public int getReceivedSpacesCount()
      • getRequestedSpacesCount

        public int getRequestedSpacesCount()
      • isFallbackServiceUsed

        public boolean isFallbackServiceUsed()
      • getDurationMillisecond

        public long getDurationMillisecond()
      • isPermissionsExempt

        public boolean isPermissionsExempt()
      • getAmountOfSids

        public Integer getAmountOfSids()
      • isLegacyCodeUsed

        public boolean isLegacyCodeUsed()