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 class
Deprecated, for removal: This API element is subject to removal in a future version. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic 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
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 void
createPermissionIfMissing
(String id, String name, String tenantId) 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 AdminPermissionService<AdminPermission>
Deprecated, for removal: This API element is subject to removal in a future version.int
getOrder()
Deprecated, for removal: This API element is subject to removal in a future version.protected com.broadleafcommerce.common.extension.data.DataRouteSupporting
getRoute()
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.
-
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:
getOrder
in 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:DataInitializer
Initialize seed data for the application.- Specified by:
initialize
in 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.
-