Class JpaCustomizedAccountPermissionRepository<D extends JpaAccountPermission>
- java.lang.Object
-
- com.broadleafcommerce.customer.provider.jpa.repository.JpaCustomizedAccountPermissionRepository<D>
-
- All Implemented Interfaces:
com.broadleafcommerce.common.extension.DomainTypeAware,CustomizedAccountPermissionRepository<D>
public class JpaCustomizedAccountPermissionRepository<D extends JpaAccountPermission> extends Object implements CustomizedAccountPermissionRepository<D>
Specialized implementation ofJpaAccountPermissionRepository.- Author:
- Samarth Dhruva (samarthd), Chris Kittrell (ckittrell)
-
-
Constructor Summary
Constructors Constructor Description JpaCustomizedAccountPermissionRepository()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanexistsByNameAndIdNot(@NonNull String name, String id, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)Reports whether there exists a permission in the data store whoseAccountPermission.getName()is equal to the givennameand whoseAccountPermission.getId()is not equal to the givenid.Class<D>getDomainType()Objectsave(Object entity)List<Object>saveAll(Iterable<?> entities)
-
-
-
Method Detail
-
saveAll
@Transactional("customerTransactionManager") public List<Object> saveAll(Iterable<?> entities)
-
getDomainType
public Class<D> getDomainType()
- Specified by:
getDomainTypein interfacecom.broadleafcommerce.common.extension.DomainTypeAware
-
existsByNameAndIdNot
public boolean existsByNameAndIdNot(@NonNull @NonNull String name, @Nullable String id, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)Description copied from interface:CustomizedAccountPermissionRepositoryReports whether there exists a permission in the data store whoseAccountPermission.getName()is equal to the givennameand whoseAccountPermission.getId()is not equal to the givenid.- Specified by:
existsByNameAndIdNotin interfaceCustomizedAccountPermissionRepository<D extends JpaAccountPermission>- Parameters:
name- the value that permission name must equal in order to matchid- (optional) the value that the permission's id must not equal in order to match. If this value isnull, then results will not be filtered by their id.contextInfo- The context of the user's request- Returns:
trueif there exists a permission matching the given name and not matching the given id,falseotherwise
-
-