Interface CustomizedAccountRoleRepository<D>
-
- All Superinterfaces:
com.broadleafcommerce.common.extension.DomainTypeAware
- All Known Subinterfaces:
AccountRoleRepository<D>
,JpaAccountRoleRepository<D>
- All Known Implementing Classes:
JpaCustomizedAccountRoleRepository
public interface CustomizedAccountRoleRepository<D> extends com.broadleafcommerce.common.extension.DomainTypeAware
Additional functionality necessary forAccountRoleRepository
.- Author:
- Samarth Dhruva (samarthd), Chris Kittrell (ckittrell)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
existsByNameAndIdNot(String name, String id, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Reports whether there exists a role in the data store whoseAccountRole.getName()
is equal to the givenname
and whoseAccountRole.getId()
is not equal to the givenid
.
-
-
-
Method Detail
-
existsByNameAndIdNot
@Policy(operationTypes=READ) boolean existsByNameAndIdNot(String name, @Nullable String id, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Reports whether there exists a role in the data store whoseAccountRole.getName()
is equal to the givenname
and whoseAccountRole.getId()
is not equal to the givenid
.Results are restricted to only the roles accessible from the given context as described in the class-level javadocs.
- Parameters:
name
- the value that role name must equal in order to matchid
- (optional) the value that the role'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:
true
if there exists a role with a matching or null tenant ID, a matching name, and a not matching id,false
otherwise
-
-