Class DefaultExternalRoleMappingService<P extends ExternalRoleMapping,D extends com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable & com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware>
java.lang.Object
com.broadleafcommerce.auth.security.service.DefaultExternalRoleMappingService<P,D>
- All Implemented Interfaces:
ExternalRoleMappingService<P>
public class DefaultExternalRoleMappingService<P extends ExternalRoleMapping,D extends com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable & com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware>
extends Object
implements ExternalRoleMappingService<P>
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultExternalRoleMappingService
(ExternalRoleMappingRepository<D> repository, UserRoleService<UserRole> userRoleService, SimplePayloadMapper mapper, com.broadleafcommerce.data.tracking.core.mapping.validation.EntityValidatorManager validator) -
Method Summary
Modifier and TypeMethodDescriptionvoid
protected P
fromRepositoryDomain
(D entity) fromRepositoryDomain
(List<D> entity) protected SimplePayloadMapper
protected ExternalRoleMappingRepository<D>
protected UserRoleService<UserRole>
protected com.broadleafcommerce.data.tracking.core.mapping.validation.EntityValidatorManager
org.springframework.data.domain.Page<P>
readByExternalRoleIdentifierIn
(Collection<String> externalRoleIds) readByRoleIdIn
(Collection<String> roleIds) resolveRolesFromExternalRoleIdentifiers
(Collection<String> externalRoleIds) protected D
toRepositoryDomain
(P roleMapping) protected void
-
Constructor Details
-
DefaultExternalRoleMappingService
public DefaultExternalRoleMappingService(ExternalRoleMappingRepository<D> repository, UserRoleService<UserRole> userRoleService, SimplePayloadMapper mapper, com.broadleafcommerce.data.tracking.core.mapping.validation.EntityValidatorManager validator)
-
-
Method Details
-
readById
- Specified by:
readById
in interfaceExternalRoleMappingService<P extends ExternalRoleMapping>
-
readByExternalRoleIdentifierIn
- Specified by:
readByExternalRoleIdentifierIn
in interfaceExternalRoleMappingService<P extends ExternalRoleMapping>
-
readByRoleIdIn
- Specified by:
readByRoleIdIn
in interfaceExternalRoleMappingService<P extends ExternalRoleMapping>
-
readAll
public org.springframework.data.domain.Page<P> readAll(String name, org.springframework.data.domain.Pageable page) - Specified by:
readAll
in interfaceExternalRoleMappingService<P extends ExternalRoleMapping>
-
create
- Specified by:
create
in interfaceExternalRoleMappingService<P extends ExternalRoleMapping>
-
update
- Specified by:
update
in interfaceExternalRoleMappingService<P extends ExternalRoleMapping>
-
delete
- Specified by:
delete
in interfaceExternalRoleMappingService<P extends ExternalRoleMapping>
-
resolveRolesFromExternalRoleIdentifiers
- Specified by:
resolveRolesFromExternalRoleIdentifiers
in interfaceExternalRoleMappingService<P extends ExternalRoleMapping>
-
validate
-
toRepositoryDomain
-
fromRepositoryDomain
-
fromRepositoryDomain
-
getRepository
-
getUserRoleService
-
getMapper
-
getValidator
@NonNull protected com.broadleafcommerce.data.tracking.core.mapping.validation.EntityValidatorManager getValidator()
-