Package org.cyclos.impl.access
Interface AgreementLogServiceLocal
-
- All Superinterfaces:
AgreementLogService,Service
- All Known Implementing Classes:
AgreementLogServiceImpl
public interface AgreementLogServiceLocal extends AgreementLogService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AgreementLogaccept(Agreement agreement, User user)Accepts the agreement for the given uservoidappendValidations(Validator validator, List<Agreement> agreements, Collection<AgreementVO> accepted)Appends a validation for each of the given agreements, if the corresponding one isn't acceptedList<Agreement>getUserPendingAgreements(User user)Return pending agreements of the given user.booleanhasPendingAgreements(User user)Returns if the given user has a pending agreementbooleanhasPendingAgreements(User user, ProductsAccessor products)Returns if the given user has a pending agreement, using the given products to checkbooleanisAgreementAccepted(Agreement agreement, User user)Returns whether the given agreement is accepted for the given userbooleanisAnyAgreementAccepted(User user)Returns whether the given user has ever accepted some agreementvoidtriggerActivatedExtensionPoints(User user)Extension points aren't triggered until the user is validated.-
Methods inherited from interface org.cyclos.services.access.AgreementLogService
acceptPending, getData, load, saveOptional
-
-
-
-
Method Detail
-
accept
AgreementLog accept(Agreement agreement, User user)
Accepts the agreement for the given user
-
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
-
getUserPendingAgreements
List<Agreement> getUserPendingAgreements(User user) throws FrameworkException
Return pending agreements of the given user.- Throws:
FrameworkException
-
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.
-
-