Interface UserAttributeStorage

    • Method Detail

      • findAll

        @NotNull
        Map<String,​String> findAll​(long userId)
        Find all user attributes
        Parameters:
        userId - user id
        Returns:
        a mapping of user attributes keys to their values
      • deleteAll

        void deleteAll​(long userId)
        Delete all user attributes
        Parameters:
        userId - user id
      • delete

        boolean delete​(long userId,
                       @NotNull
                       String attributeKey)
        Delete user attribute
        Parameters:
        userId - user id
        attributeKey - attribute key
        Returns:
        true if the attribute with specified key was deleted and false otherwise
      • findUsersIdsByAttributeValue

        List<Long> findUsersIdsByAttributeValue​(@NotNull
                                                String attributeKey,
                                                @NotNull
                                                String attributeValue,
                                                boolean caseSensitive)