Class DefaultTmaSubscriptionAccessService
java.lang.Object
de.hybris.platform.b2ctelcoservices.services.impl.DefaultTmaSubscriptionAccessService
- All Implemented Interfaces:
TmaSubscriptionAccessService
public class DefaultTmaSubscriptionAccessService
extends Object
implements TmaSubscriptionAccessService
Default implementation of the
TmaSubscriptionAccessService.- Since:
- 6.6
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateSubscriptionAccessModel(String principalUid, String billingSystemId, TmaSubscriptionBaseModel subscriptionBase, TmaAccessType accessType) Create aTmaSubscriptionAccessModelfor a givenTmaSubscriptionBaseModel.voiddeleteSubscriptionAccess(String principalUid, String billingSystemId, String subscriberIdentity) Delete theTmaSubscriptionAccessModelwith the id given.protected de.hybris.platform.servicelayer.model.ModelServiceprotected PrincipalServicegetSubscriptionAccessByPrincipalAndSubscriptionBase(String principalUid, String billingSystemId, String subscriberIdentity) Search for the subscription access object uniquely identified by the principal unique identifier, and the billing system id and subscriber identity unique combination.getSubscriptionAccessesByPrincipalUid(String principalUid) Search for allTmaSubscriptionAccessModels belonging to the principal with the given uidgetSubscriptionAccessesBySubscriberIdentity(String billingSystemId, String subscriberIdentity) Search for allTmaSubscriptionAccessModels belonging to the subscriber with the id given from the given billing system.getSubscriptionAccessesByType(String principalUid, TmaAccessType accessType) Search for allTmaSubscriptionAccessModels belonging to the principal with the uid given, filtered by given access type.protected TmaSubscriptionAccessDaovoidsetModelService(de.hybris.platform.servicelayer.model.ModelService modelService) voidsetPrincipalService(PrincipalService principalService) voidsetTmaSubscriptionAccessDao(TmaSubscriptionAccessDao tmaSubscriptionAccessDao) updateSubscriptionAccess(String principalUid, String billingSystemId, String subscriberIdentity, TmaAccessType accessType) Update theTmaAccessTypeof theTmaSubscriptionAccessModelwith the id given.
-
Constructor Details
-
DefaultTmaSubscriptionAccessService
public DefaultTmaSubscriptionAccessService()
-
-
Method Details
-
createSubscriptionAccessModel
public TmaSubscriptionAccessModel createSubscriptionAccessModel(String principalUid, String billingSystemId, TmaSubscriptionBaseModel subscriptionBase, TmaAccessType accessType) Description copied from interface:TmaSubscriptionAccessServiceCreate aTmaSubscriptionAccessModelfor a givenTmaSubscriptionBaseModel.- Specified by:
createSubscriptionAccessModelin interfaceTmaSubscriptionAccessService- Parameters:
principalUid- unique identifier of thePrincipalModelbillingSystemId- unique identifier of the billing systemsubscriptionBase- subscription base for which the access type is createdaccessType-TmaAccessTypethePrincipalModelhas on theTmaSubscriptionBaseModel- Returns:
- the newly created
TmaSubscriptionAccessModel
-
getSubscriptionAccessesByPrincipalUid
Description copied from interface:TmaSubscriptionAccessServiceSearch for allTmaSubscriptionAccessModels belonging to the principal with the given uid- Specified by:
getSubscriptionAccessesByPrincipalUidin interfaceTmaSubscriptionAccessService- Parameters:
principalUid- uid of the principal- Returns:
- a
ListofTmaSubscriptionAccessModelbelonging to the identified principal
-
getSubscriptionAccessByPrincipalAndSubscriptionBase
public TmaSubscriptionAccessModel getSubscriptionAccessByPrincipalAndSubscriptionBase(String principalUid, String billingSystemId, String subscriberIdentity) Description copied from interface:TmaSubscriptionAccessServiceSearch for the subscription access object uniquely identified by the principal unique identifier, and the billing system id and subscriber identity unique combination.- Specified by:
getSubscriptionAccessByPrincipalAndSubscriptionBasein interfaceTmaSubscriptionAccessService- Parameters:
principalUid- unique identifier of the Principal entitybillingSystemId- unique identifier of the billing systemsubscriberIdentity- unique identifier of the subscriber from the billing system- Returns:
TmaSubscriptionAccessModelidentified by the above parameters
-
getSubscriptionAccessesBySubscriberIdentity
public List<TmaSubscriptionAccessModel> getSubscriptionAccessesBySubscriberIdentity(String billingSystemId, String subscriberIdentity) Description copied from interface:TmaSubscriptionAccessServiceSearch for allTmaSubscriptionAccessModels belonging to the subscriber with the id given from the given billing system.- Specified by:
getSubscriptionAccessesBySubscriberIdentityin interfaceTmaSubscriptionAccessService- Parameters:
billingSystemId- unique identifier of the billing systemsubscriberIdentity- id of the subscriber for which theTmaSubscriptionAccessModelshould be retrieved- Returns:
- a
ListofTmaSubscriptionAccessModels belonging to the same subscriber
-
getSubscriptionAccessesByType
public List<TmaSubscriptionAccessModel> getSubscriptionAccessesByType(String principalUid, TmaAccessType accessType) Description copied from interface:TmaSubscriptionAccessServiceSearch for allTmaSubscriptionAccessModels belonging to the principal with the uid given, filtered by given access type.- Specified by:
getSubscriptionAccessesByTypein interfaceTmaSubscriptionAccessService- Parameters:
principalUid- uid of the principalaccessType- access type level for subscription access- Returns:
- a
ListofTmaSubscriptionAccessModelbelonging to the identified principal, having the given access type
-
updateSubscriptionAccess
public TmaSubscriptionAccessModel updateSubscriptionAccess(String principalUid, String billingSystemId, String subscriberIdentity, TmaAccessType accessType) Description copied from interface:TmaSubscriptionAccessServiceUpdate theTmaAccessTypeof theTmaSubscriptionAccessModelwith the id given.- Specified by:
updateSubscriptionAccessin interfaceTmaSubscriptionAccessService- Parameters:
principalUid- unique identifier of theTmaSubscriptionAccessModelto be updatedbillingSystemId- unique identifier of the billing systemsubscriberIdentity- unique identifier of the subscriber from the billing systemaccessType- the new value of theTmaAccessType- Returns:
- the newly updated
TmaSubscriptionAccessModel
-
deleteSubscriptionAccess
public void deleteSubscriptionAccess(String principalUid, String billingSystemId, String subscriberIdentity) Description copied from interface:TmaSubscriptionAccessServiceDelete theTmaSubscriptionAccessModelwith the id given.- Specified by:
deleteSubscriptionAccessin interfaceTmaSubscriptionAccessService- Parameters:
principalUid- the unique identifier of theTmaSubscriptionAccessModelto be deletedbillingSystemId- unique identifier of the billing systemsubscriberIdentity- unique identifier of the subscriber from the billing system
-
getModelService
protected de.hybris.platform.servicelayer.model.ModelService getModelService() -
setModelService
public void setModelService(de.hybris.platform.servicelayer.model.ModelService modelService) -
getTmaSubscriptionAccessDao
-
setTmaSubscriptionAccessDao
-
getPrincipalService
-
setPrincipalService
-