Package com.broadleafcommerce.auth.data
Class PermissionDataInitializer
java.lang.Object
com.broadleafcommerce.auth.data.PermissionDataInitializer
- All Implemented Interfaces:
DataInitializer
@Deprecated(forRemoval=true,
since="1.9.0")
public class PermissionDataInitializer
extends Object
implements DataInitializer
Deprecated, for removal: This API element is subject to removal in a future version.
Deprecated in favor of liquibase insert pattern (see
auth.starter.required.data.changelog.xml)
The seed data permissions will be defined here.
These permissions are necessary for seed data we define within this service (for roles or users). However, the admin user service also defines some of this same data for itself and will synchronize it over to this service. To avoid creation of duplicate records, the IDs used here should be kept in sync with whatever the admin user service seed data defines.
- Author:
- Nick Crum (ncrum)
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Deprecated, for removal: This API element is subject to removal in a future version.static final class
Deprecated, for removal: This API element is subject to removal in a future version. -
Constructor Summary
ConstructorDescriptionPermissionDataInitializer
(com.broadleafcommerce.common.extension.TypeFactory typeFactory, UserPermissionRepository<JpaUserPermission> userPermissionRepository) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Deprecated, for removal: This API element is subject to removal in a future version.Create account specific permissions.protected void
createPermissionIfMissing
(String id, String name) Deprecated, for removal: This API element is subject to removal in a future version.protected void
createPermissionIfMissing
(String id, String name, boolean accountPermission) 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.void
Deprecated, for removal: This API element is subject to removal in a future version.Initialize seed data for the application.
-
Constructor Details
-
PermissionDataInitializer
public PermissionDataInitializer(com.broadleafcommerce.common.extension.TypeFactory typeFactory, UserPermissionRepository<JpaUserPermission> userPermissionRepository) Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
initialize
@Transactional 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. -
createAccountPermissionsIfMissing
protected void createAccountPermissionsIfMissing()Deprecated, for removal: This API element is subject to removal in a future version.Create account specific permissions. These must pass true tocreatePermissionIfMissing(String, String, boolean)
for the accountPermission flag. -
createPermissionIfMissing
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.
-