Interface CustomizedAdminUserRepository<D>
- All Superinterfaces:
com.broadleafcommerce.common.extension.DomainTypeAware
- All Known Subinterfaces:
AdminUserRepository<D>,JpaAdminUserRepository<D>
- All Known Implementing Classes:
JpaCustomizedAdminUserRepository
public interface CustomizedAdminUserRepository<D>
extends com.broadleafcommerce.common.extension.DomainTypeAware
Additional functionality necessary for
AdminUserRepository.- Author:
- Samarth Dhruva (samarthd)
-
Method Summary
Modifier and TypeMethodDescriptionfindUserWithApplicationAccess(String id, String applicationId) Reads the admin user in the data store that matches the user ID and the application ID to their assigned applications.Methods inherited from interface com.broadleafcommerce.common.extension.DomainTypeAware
getDomainType
-
Method Details
-
findUserWithApplicationAccess
Reads the admin user in the data store that matches the user ID and the application ID to their assigned applications.Special handling is added to return a user that may have application access but no assigned applications (meaning they should have access to all applications).
- Parameters:
id- the user ID of the admin userapplicationId- the application ID to match to the user if the user has assigned applications- Returns:
- an
Optionalcontaining the admin user if found, orOptional.empty()
-