Class LmsSubscriptionQueryServiceImpl

java.lang.Object
ch.tocco.nice2.optional.lms.impl.util.LmsSubscriptionQueryServiceImpl
All Implemented Interfaces:
LmsSubscriptionQueryService

@Component public class LmsSubscriptionQueryServiceImpl extends Object implements LmsSubscriptionQueryService
  • Constructor Details

  • Method Details

    • findLmsSubscription

      @Nullable public @Nullable Entity findLmsSubscription(Entity lmsObject, Principal principal, org.joda.time.DateTime datetime)
      Description copied from interface: LmsSubscriptionQueryService
      finds the first Lms_subscription for the given parameters
      Specified by:
      findLmsSubscription in interface LmsSubscriptionQueryService
      Parameters:
      lmsObject - the Lms_object entity the Lms_subscription should belong to
      principal - the Principal for which a Lms_subscription should be found
      datetime - the datetime on which the Lms_subscription has to be valid
      Returns:
      a Lms_subscription entity if one is found, null otherwise
    • setAdditionalUserRelations

      @Autowired(required=false) public void setAdditionalUserRelations(List<String> additionalUserRelations)