Class AdminUserDataInitializer
java.lang.Object
com.broadleafcommerce.adminuser.data.AdminUserDataInitializer
- All Implemented Interfaces:
- DataInitializer,- org.springframework.core.Ordered
- Direct Known Subclasses:
- DefaultMasterGlobalAdminUserDataInitializer
The seed-data admin users will be defined here and persistence events will message them to the
 authentication service.
 
Since the admin user service cannot define passwords, the authentication service's seed data defines basic representations of these user records with a password set. The persistence events sent here will theoretically update those existing records with fleshed out details regarding roles/permissions.
For this to work without producing duplicate records, the IDs of the user records must be the same as those in the authentication service.
- Author:
- Nick Crum (ncrum), Samarth Dhruva (samarthd)
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic final classstatic final class
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intOrdering after the role/permissions data initializers to ensure we can reference roles/permissions.Fields inherited from interface org.springframework.core.OrderedHIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
- 
Constructor SummaryConstructorsConstructorDescriptionAdminUserDataInitializer(com.broadleafcommerce.common.extension.TypeFactory typeFactory, AdminUserService<AdminUser> userService, com.broadleafcommerce.common.extension.data.DataRouteSupporting route, boolean shouldCreateMarketplaceUsers) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidintgetOrder()protected com.broadleafcommerce.common.extension.data.DataRouteSupportinggetRoute()protected com.broadleafcommerce.common.extension.TypeFactoryprotected AdminUserService<AdminUser>voidInitialize seed data for the application.protected boolean
- 
Field Details- 
ORDERpublic static final int ORDEROrdering after the role/permissions data initializers to ensure we can reference roles/permissions.- See Also:
 
 
- 
- 
Constructor Details- 
AdminUserDataInitializerpublic AdminUserDataInitializer(com.broadleafcommerce.common.extension.TypeFactory typeFactory, AdminUserService<AdminUser> userService, com.broadleafcommerce.common.extension.data.DataRouteSupporting route, boolean shouldCreateMarketplaceUsers) 
 
- 
- 
Method Details- 
getOrderpublic int getOrder()- Specified by:
- getOrderin interface- org.springframework.core.Ordered
 
- 
initializepublic void initialize()Description copied from interface:DataInitializerInitialize seed data for the application.- Specified by:
- initializein interface- DataInitializer
 
- 
createReadOnlyGlobalAdminUserIfMissingprotected void createReadOnlyGlobalAdminUserIfMissing()
- 
createMasterGlobalAdminUserIfMissingprotected void createMasterGlobalAdminUserIfMissing()
- 
createGlobalAdminUserIfMissingprotected void createGlobalAdminUserIfMissing()
- 
createAAAHotSaucesAdminUserIfMissingprotected void createAAAHotSaucesAdminUserIfMissing()
- 
createHeatClinicAdminUserIfMissingprotected void createHeatClinicAdminUserIfMissing()
- 
createSecondMasterGlobalAdminUserIfMissingprotected void createSecondMasterGlobalAdminUserIfMissing()
- 
createMarketplaceOperatorAdminUserIfMissingprotected void createMarketplaceOperatorAdminUserIfMissing()
- 
createWildBillAdminAdminUserIfMissingprotected void createWildBillAdminAdminUserIfMissing()
- 
createWildBillMerchandiserAdminUserIfMissingprotected void createWildBillMerchandiserAdminUserIfMissing()
- 
createJudgeJuryAdminAdminUserIfMissingprotected void createJudgeJuryAdminAdminUserIfMissing()
- 
createJudgeJuryMerchandiserAdminUserIfMissingprotected void createJudgeJuryMerchandiserAdminUserIfMissing()
- 
createWildBillAndJudgeJuryAdminAdminUserIfMissingprotected void createWildBillAndJudgeJuryAdminAdminUserIfMissing()
- 
createWildBillAndJudgeJuryMerchandiserAdminUserIfMissingprotected void createWildBillAndJudgeJuryMerchandiserAdminUserIfMissing()
- 
getTypeFactoryprotected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory()
- 
getUserService
- 
getRouteprotected com.broadleafcommerce.common.extension.data.DataRouteSupporting getRoute()
- 
isShouldCreateMarketplaceUsersprotected boolean isShouldCreateMarketplaceUsers()
 
-