Class AdminPermissionDataInitializer
java.lang.Object
com.broadleafcommerce.adminuser.data.AdminPermissionDataInitializer
- All Implemented Interfaces:
DataInitializer,org.springframework.core.Ordered
Deprecated.
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 ClassesModifier and TypeClassDescriptionstatic final classDeprecated. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDeprecated.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
ConstructorsConstructorDescriptionAdminPermissionDataInitializer(com.broadleafcommerce.common.extension.TypeFactory typeFactory, AdminPermissionService<AdminPermission> adminPermissionService, com.broadleafcommerce.common.extension.data.DataRouteSupporting route) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcreatePermissionIfMissing(String id, String name, String tenantId) Deprecated.protected voidDeprecated.protected AdminPermissionService<AdminPermission>Deprecated.intgetOrder()Deprecated.protected com.broadleafcommerce.common.extension.data.DataRouteSupportinggetRoute()Deprecated.protected com.broadleafcommerce.common.extension.TypeFactoryDeprecated.voidDeprecated.Initialize seed data for the application.
-
Field Details
-
ORDER
public static final int ORDERDeprecated.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.
-
-
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
-
createPermissionsIfMissing
protected void createPermissionsIfMissing()Deprecated. -
createPermissionIfMissing
Deprecated. -
getTypeFactory
protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory()Deprecated. -
getAdminPermissionService
Deprecated. -
getRoute
protected com.broadleafcommerce.common.extension.data.DataRouteSupporting getRoute()Deprecated.
-