Class PermissionScopeDataInitializer

    • Constructor Detail

      • PermissionScopeDataInitializer

        public PermissionScopeDataInitializer​(com.broadleafcommerce.common.extension.TypeFactory typeFactory,
                                              PermissionRepository permissionScopeRepository,
                                              ScopeRepository scopeRepository)
    • Method Detail

      • initialize

        @Transactional
        public void initialize()
        Description copied from interface: DataInitializer
        Initialize seed data for the application.
        Specified by:
        initialize in interface DataInitializer
      • createPermissionScopesIfMissing

        protected void createPermissionScopesIfMissing()
      • createCustomerUserPermissionScopesIfMissing

        protected void createCustomerUserPermissionScopesIfMissing()
      • removePermissionScopeIfAvailable

        protected void removePermissionScopeIfAvailable​(String id,
                                                        String scopeId,
                                                        boolean permissionRoot)
      • createPermissionScopeIfMissing

        protected void createPermissionScopeIfMissing​(String id,
                                                      String scopeId,
                                                      String permission,
                                                      boolean permissionRoot)