Class DefaultTenantService<P extends Tenant>
java.lang.Object
com.broadleafcommerce.data.tracking.core.service.BaseMappableCrudEntityService<P>
com.broadleafcommerce.data.tracking.core.service.BaseRsqlMappableCrudEntityService<P>
com.broadleafcommerce.tenant.service.DefaultTenantService<P>
- All Implemented Interfaces:
com.broadleafcommerce.data.tracking.core.service.MappableCrudEntityService<P>
,com.broadleafcommerce.data.tracking.core.service.RsqlMappableCrudEntityService<P>
,TenantService<P>
public class DefaultTenantService<P extends Tenant>
extends com.broadleafcommerce.data.tracking.core.service.BaseRsqlMappableCrudEntityService<P>
implements TenantService<P>
-
Constructor Summary
ConstructorDescriptionDefaultTenantService
(TenantRepository<R> repository, com.broadleafcommerce.data.tracking.core.service.RsqlMappableCrudEntityHelper helper) -
Method Summary
Modifier and TypeMethodDescription<D,
R extends org.springframework.data.repository.CrudRepository<D, String> & com.broadleafcommerce.common.extension.DomainTypeAware>
Pprotected TenantRepository<?>
readByIdentifierAndIdentifierType
(String identifier, String identifierType) Read the tenant by itsTenant.getIdentifierValue()
and, optionally, byTenant.getIdentifierType()
.Methods inherited from class com.broadleafcommerce.data.tracking.core.service.BaseRsqlMappableCrudEntityService
getRsqlHelper, readAll, readAll, readAll, readAll
Methods inherited from class com.broadleafcommerce.data.tracking.core.service.BaseMappableCrudEntityService
convertFromPersistentDomain, createAll, createAllAllowingPartialSuccess, delete, getHelper, readAll, readAll, readAll, readAllByIds, readById, replaceAll, replaceAllAllowingPartialSuccess, updateAll, updateAllAllowingPartialSuccess
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.MappableCrudEntityService
createAll, createAllAllowingPartialSuccess, delete, readAll, readAll, readAll, readAllByIds, readById, replaceAll, replaceAllAllowingPartialSuccess, updateAll, updateAllAllowingPartialSuccess
Methods inherited from interface com.broadleafcommerce.data.tracking.core.service.RsqlMappableCrudEntityService
readAll, readAll, readAll, readAll
-
Constructor Details
-
DefaultTenantService
public DefaultTenantService(TenantRepository<R> repository, com.broadleafcommerce.data.tracking.core.service.RsqlMappableCrudEntityHelper helper)
-
-
Method Details
-
readByIdentifierAndIdentifierType
public Optional<P> readByIdentifierAndIdentifierType(String identifier, @Nullable String identifierType) Description copied from interface:TenantService
Read the tenant by itsTenant.getIdentifierValue()
and, optionally, byTenant.getIdentifierType()
. If not provided, identifier will default toResolutionIdentifierType.DOMAIN
.- Specified by:
readByIdentifierAndIdentifierType
in interfaceTenantService<P extends Tenant>
- Parameters:
identifier
- theTenant.getIdentifierValue()
identifierType
- theTenant.getIdentifierType()
- Returns:
- the
Tenant
with the matchingTenant.getIdentifierValue()
-
create
-
update
-
replace
-
getRepository
-