Class AdminPermissionDataInitializer

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

@Deprecated(forRemoval=true, since="1.9.0") public class AdminPermissionDataInitializer 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 permissions 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.
    Neutral order to enable components to easily come before/after this.

    Fields inherited from interface org.springframework.core.Ordered

    HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
  • Constructor Summary

    Constructors
    Constructor
    Description
    AdminPermissionDataInitializer(com.broadleafcommerce.common.extension.TypeFactory typeFactory, AdminPermissionService<AdminPermission> adminPermissionService, com.broadleafcommerce.common.extension.data.DataRouteSupporting route)
    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.
     
    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.
     
    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.

    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.
      Neutral order to enable components to easily come before/after this.
      See Also:
  • Constructor Details

    • AdminPermissionDataInitializer

      public AdminPermissionDataInitializer(com.broadleafcommerce.common.extension.TypeFactory typeFactory, AdminPermissionService<AdminPermission> adminPermissionService, com.broadleafcommerce.common.extension.data.DataRouteSupporting route)
      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
    • createPermissionsIfMissing

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

      protected void createPermissionIfMissing(String id, String name, 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.
    • getAdminPermissionService

      protected AdminPermissionService<AdminPermission> getAdminPermissionService()
      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.