Class DefaultCustomerSegmentService<P extends CustomerSegment>
- java.lang.Object
 - 
- com.broadleafcommerce.data.tracking.core.service.BaseCrudEntityService<P>
 - 
- com.broadleafcommerce.data.tracking.core.service.BaseRsqlCrudEntityService<P>
 - 
- com.broadleafcommerce.customer.service.DefaultCustomerSegmentService<P>
 
 
 
 
- 
- Type Parameters:
 P- A type or subtype ofCustomerSegment
- All Implemented Interfaces:
 CustomerSegmentService<P>,com.broadleafcommerce.data.tracking.core.service.CrudEntityService<P>,com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService<P>
public class DefaultCustomerSegmentService<P extends CustomerSegment> extends com.broadleafcommerce.data.tracking.core.service.BaseRsqlCrudEntityService<P> implements CustomerSegmentService<P>
Default implementation ofCustomerSegmentService 
- 
- 
Constructor Summary
Constructors Constructor Description DefaultCustomerSegmentService(CustomerSegmentRepository<com.broadleafcommerce.data.tracking.core.Trackable> repository, com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityHelper helper) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanManuallyAddCustomerToSegment(String segmentId, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)Evaluates whether the customer segment with the given ID allows manually adding customers.protected CustomerSegmentRepository<com.broadleafcommerce.data.tracking.core.Trackable>getRepo()- 
Methods inherited from class com.broadleafcommerce.data.tracking.core.service.BaseRsqlCrudEntityService
getRsqlHelper, readAll, readAll, readAll, readAll 
- 
Methods inherited from class com.broadleafcommerce.data.tracking.core.service.BaseCrudEntityService
convertFromPersistentDomain, convertToPersistentDomain, create, createAll, createAllAllowingPartialSuccess, delete, getHelper, getRepository, getSortPositionStrategy, readAll, readAll, readAll, readAllByContextId, readByContextId, replace, replaceAll, replaceAllAllowingPartialSuccess, setSortPositionStrategy, update, updateAll, updateAllAllowingPartialSuccess, updateSort 
- 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 
- 
Methods inherited from interface com.broadleafcommerce.data.tracking.core.service.CrudEntityService
create, createAll, createAllAllowingPartialSuccess, delete, readAll, readAll, readAll, readAllByContextId, readByContextId, replace, replaceAll, replaceAllAllowingPartialSuccess, update, updateAll, updateAllAllowingPartialSuccess, updateSort 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
DefaultCustomerSegmentService
public DefaultCustomerSegmentService(CustomerSegmentRepository<com.broadleafcommerce.data.tracking.core.Trackable> repository, com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityHelper helper)
 
 - 
 
- 
Method Detail
- 
canManuallyAddCustomerToSegment
public boolean canManuallyAddCustomerToSegment(String segmentId, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
Description copied from interface:CustomerSegmentServiceEvaluates whether the customer segment with the given ID allows manually adding customers.As an example, using the default customer segment types,
CUSTOMER_SETandRULE_BASED, only sets support manually adding customers, as rule based segments are derived.- Specified by:
 canManuallyAddCustomerToSegmentin interfaceCustomerSegmentService<P extends CustomerSegment>- Parameters:
 segmentId- The ID of the segment to evaluatecontext- Context information regarding sandboxing and multitenant state- Returns:
 trueif customers may be manually added to this segment, elsefalse
 
- 
getRepo
protected CustomerSegmentRepository<com.broadleafcommerce.data.tracking.core.Trackable> getRepo()
 
 - 
 
 -