Class AdminRoleDataInitializer

java.lang.Object
com.broadleafcommerce.adminuser.data.AdminRoleDataInitializer
All Implemented Interfaces:
DataInitializer, org.springframework.core.Ordered

@Deprecated public class AdminRoleDataInitializer extends Object implements DataInitializer
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)
  • Field Details

    • ORDER

      public static final int ORDER
      Deprecated.
      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 interface org.springframework.core.Ordered
    • initialize

      public void initialize()
      Deprecated.
      Description copied from interface: DataInitializer
      Initialize seed data for the application.
      Specified by:
      initialize in interface DataInitializer
    • 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

      protected AdminRoleService<AdminRole> getRoleService()
      Deprecated.
    • getRoute

      protected com.broadleafcommerce.common.extension.data.DataRouteSupporting getRoute()
      Deprecated.
    • isShouldCreateMarketplaceRoles

      protected boolean isShouldCreateMarketplaceRoles()
      Deprecated.