package eu.bcvsolutions.idm.acc.service.api;

import eu.bcvsolutions.idm.acc.dto.AccTreeAccountDto;
import eu.bcvsolutions.idm.acc.dto.filter.TreeAccountFilter;
import eu.bcvsolutions.idm.core.api.service.ReadWriteDtoService;
import eu.bcvsolutions.idm.core.security.api.domain.BasePermission;

/**
 * Tree accounts on target system
 * 
 * @author Svanda
 *
 */
public interface AccTreeAccountService extends ReadWriteDtoService<AccTreeAccountDto, TreeAccountFilter> {

	/**
	 * Delete tree node account
	 * @param entity
	 * @param deleteAccount  If is true, then will be deleted (call provisioning) account on target system.
	 */
	void delete(AccTreeAccountDto entity, boolean deleteAccount, BasePermission... permission);
}
	
@@ -154,16 +154,74 @@
 Filter;%0A
+import eu.bcvsolutions.idm.core.api.script.ScriptEnabled;%0A
 import e
@@ -517,16 +517,31 @@
 tFilter%3E
+, ScriptEnabled
  %7B%0A%0A%09/**

Make AccTreeAccountService available in scripts.