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 class
Deprecated. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Deprecated.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 void
Deprecated.protected void
Deprecated.protected void
Deprecated.protected void
Deprecated.Creates the role used by CSR users.protected void
Deprecated.protected void
Deprecated.protected void
Deprecated.protected void
Deprecated.protected void
Deprecated.protected void
Deprecated.protected void
createRoleIfMissing
(String id, String name, Collection<String> permissionIds, String tenantId) Deprecated.int
getOrder()
Deprecated.protected AdminRoleService<AdminRole>
Deprecated.protected com.broadleafcommerce.common.extension.data.DataRouteSupporting
getRoute()
Deprecated.protected com.broadleafcommerce.common.extension.TypeFactory
Deprecated.void
Deprecated.Initialize seed data for the application.protected boolean
Deprecated.
-
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:
getOrder
in interfaceorg.springframework.core.Ordered
-
initialize
public void initialize()Deprecated.Description copied from interface:DataInitializer
Initialize seed data for the application.- Specified by:
initialize
in 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.
-