Class AdminRoleDataInitializer

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

@Deprecated(forRemoval=true, since="1.9.0") public class AdminRoleDataInitializer extends Object implements DataInitializer
Deprecated, for removal: This API element is subject to removal in a future version.
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 Classes
    Modifier and Type
    Class
    Description
    static final class 
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Deprecated, for removal: This API element is subject to removal in a future version.
    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

    Constructors
    Constructor
    Description
    AdminRoleDataInitializer(com.broadleafcommerce.common.extension.TypeFactory typeFactory, AdminRoleService<AdminRole> roleService, com.broadleafcommerce.common.extension.data.DataRouteSupporting route, boolean shouldCreateMarketplaceRoles)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Creates the role used by CSR users.
    protected void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected void
    createRoleIfMissing(String id, String name, Collection<String> permissionIds, String tenantId)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    int
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected com.broadleafcommerce.common.extension.data.DataRouteSupporting
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected com.broadleafcommerce.common.extension.TypeFactory
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Initialize seed data for the application.
    protected boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • ORDER

      public static final int ORDER
      Deprecated, for removal: This API element is subject to removal in a future version.
      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, for removal: This API element is subject to removal in a future version.
  • Method Details

    • getOrder

      public int getOrder()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getOrder in interface org.springframework.core.Ordered
    • initialize

      public void initialize()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: DataInitializer
      Initialize seed data for the application.
      Specified by:
      initialize in interface DataInitializer
    • createPartialAccessRole

      protected void createPartialAccessRole()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • createFullAccessRole

      protected void createFullAccessRole()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • createBaseUserRole

      protected void createBaseUserRole()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • createApproveUserRole

      protected void createApproveUserRole()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • createDeployUserRole

      protected void createDeployUserRole()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • createApplicationAccessRole

      protected void createApplicationAccessRole()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • createCSRRole

      protected void createCSRRole()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Creates the role used by CSR users.
    • createMarketplaceOperator

      protected void createMarketplaceOperator()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • createMarketplaceVendorAdmin

      protected void createMarketplaceVendorAdmin()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • createMarketplaceVendorMerchandiser

      protected void createMarketplaceVendorMerchandiser()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • createRoleIfMissing

      protected void createRoleIfMissing(String id, String name, Collection<String> permissionIds, String tenantId)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getTypeFactory

      protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getRoleService

      protected AdminRoleService<AdminRole> getRoleService()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getRoute

      protected com.broadleafcommerce.common.extension.data.DataRouteSupporting getRoute()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • isShouldCreateMarketplaceRoles

      protected boolean isShouldCreateMarketplaceRoles()
      Deprecated, for removal: This API element is subject to removal in a future version.