Interface AgreementLogServiceLocal

    • Method Detail

      • appendValidations

        void appendValidations​(Validator validator,
                               List<Agreement> agreements,
                               Collection<AgreementVO> accepted)
        Appends a validation for each of the given agreements, if the corresponding one isn't accepted
      • hasPendingAgreements

        boolean hasPendingAgreements​(User user)
        Returns if the given user has a pending agreement
      • hasPendingAgreements

        boolean hasPendingAgreements​(User user,
                                     ProductsAccessor products)
        Returns if the given user has a pending agreement, using the given products to check
      • isAgreementAccepted

        boolean isAgreementAccepted​(Agreement agreement,
                                    User user)
        Returns whether the given agreement is accepted for the given user
      • isAnyAgreementAccepted

        boolean isAnyAgreementAccepted​(User user)
        Returns whether the given user has ever accepted some agreement
      • triggerActivatedExtensionPoints

        void triggerActivatedExtensionPoints​(User user)
        Extension points aren't triggered until the user is validated. Only then trigger them.