Class AdminRoleDataInitializer
java.lang.Object
com.broadleafcommerce.adminuser.data.AdminRoleDataInitializer
- All Implemented Interfaces:
DataInitializer,org.springframework.core.Ordered
Deprecated.
Roles and permissions should only be added to auth
The seed-data roles will be defined here and persistence events will message them to the
authentication service.
If some of these permissions are also already defined in the authentication service, to prevent creation of duplicate records, the IDs of these records must be the same as those in the authentication service.
- Author:
- Nick Crum (ncrum), Samarth Dhruva (samarthd)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classDeprecated. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDeprecated.Ordering after the permissions data initializer to ensure we can reference permissions.Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
ConstructorsConstructorDescriptionAdminRoleDataInitializer(com.broadleafcommerce.common.extension.TypeFactory typeFactory, AdminRoleService<AdminRole> roleService, com.broadleafcommerce.common.extension.data.DataRouteSupporting route, boolean shouldCreateMarketplaceRoles) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidDeprecated.protected voidDeprecated.protected voidDeprecated.protected voidDeprecated.Creates the role used by CSR users.protected voidDeprecated.protected voidDeprecated.protected voidDeprecated.protected voidDeprecated.protected voidDeprecated.protected voidDeprecated.protected voidcreateRoleIfMissing(String id, String name, Collection<String> permissionIds, String tenantId) Deprecated.intgetOrder()Deprecated.protected AdminRoleService<AdminRole>Deprecated.protected com.broadleafcommerce.common.extension.data.DataRouteSupportinggetRoute()Deprecated.protected com.broadleafcommerce.common.extension.TypeFactoryDeprecated.voidDeprecated.Initialize seed data for the application.protected booleanDeprecated.
-
Field Details
-
ORDER
public static final int ORDERDeprecated.Ordering after the permissions data initializer to ensure we can reference permissions.- See Also:
-
-
Constructor Details
-
AdminRoleDataInitializer
public AdminRoleDataInitializer(com.broadleafcommerce.common.extension.TypeFactory typeFactory, AdminRoleService<AdminRole> roleService, com.broadleafcommerce.common.extension.data.DataRouteSupporting route, boolean shouldCreateMarketplaceRoles) Deprecated.
-
-
Method Details
-
getOrder
public int getOrder()Deprecated.- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-
initialize
public void initialize()Deprecated.Description copied from interface:DataInitializerInitialize seed data for the application.- Specified by:
initializein interfaceDataInitializer
-
createPartialAccessRole
protected void createPartialAccessRole()Deprecated. -
createFullAccessRole
protected void createFullAccessRole()Deprecated. -
createBaseUserRole
protected void createBaseUserRole()Deprecated. -
createApproveUserRole
protected void createApproveUserRole()Deprecated. -
createDeployUserRole
protected void createDeployUserRole()Deprecated. -
createApplicationAccessRole
protected void createApplicationAccessRole()Deprecated. -
createCSRRole
protected void createCSRRole()Deprecated.Creates the role used by CSR users. -
createMarketplaceOperator
protected void createMarketplaceOperator()Deprecated. -
createMarketplaceVendorAdmin
protected void createMarketplaceVendorAdmin()Deprecated. -
createMarketplaceVendorMerchandiser
protected void createMarketplaceVendorMerchandiser()Deprecated. -
createRoleIfMissing
protected void createRoleIfMissing(String id, String name, Collection<String> permissionIds, String tenantId) Deprecated. -
getTypeFactory
protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory()Deprecated. -
getRoleService
Deprecated. -
getRoute
protected com.broadleafcommerce.common.extension.data.DataRouteSupporting getRoute()Deprecated. -
isShouldCreateMarketplaceRoles
protected boolean isShouldCreateMarketplaceRoles()Deprecated.
-