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 Summary
ConstructorDescriptionLmsSubscriptionQueryServiceImpl
(QueryBuilderFactory queryBuilderFactory, Context context, PrincipalService principalService, BusinessUnitManager businessUnitManager) -
Method Summary
Modifier and TypeMethodDescription@Nullable Entity
findLmsSubscription
(Entity lmsObject, Principal principal, org.joda.time.DateTime datetime) finds the first Lms_subscription for the given parametersvoid
setAdditionalUserRelations
(List<String> additionalUserRelations)
-
Constructor Details
-
LmsSubscriptionQueryServiceImpl
public LmsSubscriptionQueryServiceImpl(QueryBuilderFactory queryBuilderFactory, Context context, PrincipalService principalService, BusinessUnitManager businessUnitManager)
-
-
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 interfaceLmsSubscriptionQueryService
- Parameters:
lmsObject
- the Lms_object entity the Lms_subscription should belong toprincipal
- the Principal for which a Lms_subscription should be founddatetime
- the datetime on which the Lms_subscription has to be valid- Returns:
- a Lms_subscription entity if one is found, null otherwise
-
setAdditionalUserRelations
-