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 ClassesModifier and TypeClassDescriptionstatic final classDeprecated, for removal: This API element is subject to removal in a future version. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDeprecated, 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
ConstructorsConstructorDescriptionAdminPermissionDataInitializer(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 TypeMethodDescriptionprotected voidcreatePermissionIfMissing(String id, String name, String tenantId) Deprecated, for removal: This API element is subject to removal in a future version.protected voidDeprecated, for removal: This API element is subject to removal in a future version.protected AdminPermissionService<AdminPermission>Deprecated, for removal: This API element is subject to removal in a future version.intgetOrder()Deprecated, for removal: This API element is subject to removal in a future version.protected com.broadleafcommerce.common.extension.data.DataRouteSupportinggetRoute()Deprecated, for removal: This API element is subject to removal in a future version.protected com.broadleafcommerce.common.extension.TypeFactoryDeprecated, for removal: This API element is subject to removal in a future version.voidDeprecated, for removal: This API element is subject to removal in a future version.Initialize seed data for the application.
-
Field Details
-
ORDER
public static final int ORDERDeprecated, 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:
getOrderin interfaceorg.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:DataInitializerInitialize seed data for the application.- Specified by:
initializein interfaceDataInitializer
-
createPermissionsIfMissing
protected void createPermissionsIfMissing()Deprecated, for removal: This API element is subject to removal in a future version. -
createPermissionIfMissing
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
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.
-