@Service(value="treeNodeService") public class TreeNodeService<E extends TreeNode,D extends TreeNodeDao<E>> extends PermissionAwareCrudService<E,D>
TreeNode model.AbstractCrudServicepermissionCollectionServicedao, logger| Modifier | Constructor and Description |
|---|---|
|
TreeNodeService()
Default constructor, which calls the type-constructor
|
protected |
TreeNodeService(Class<E> entityClass)
Constructor that sets the concrete entity class for the service.
|
| Modifier and Type | Method and Description |
|---|---|
E |
cloneAndPersistTreeNode(E node)
This unproxies and eagerly fetches the whole node/tree and detaches it
from the hibernate session before persisting a new "clone" instance in the database.
|
void |
setDao(D dao)
We have to use
Qualifier to define the correct dao here. |
addAndSaveGroupPermissions, addAndSaveUserPermissions, findAllUserGroupPermissionsOfUserGroup, findAllUserPermissionsOfUser, getPermissionCollectionService, removeAndSaveGroupPermissions, removeAndSaveUserPermissions, setPermissionCollectionServicedelete, findAll, findAllRestricted, findAllWhereFieldEquals, findAllWithCollectionContaining, findById, findBySimpleFilter, loadById, saveOrUpdate, updatePartialWithJsonNodegetDao, getEntityClasspublic TreeNodeService()
public E cloneAndPersistTreeNode(E node) throws Exception
node - IllegalAccessExceptionNoSuchFieldExceptionException@Autowired @Qualifier(value="treeNodeDao") public void setDao(D dao)
Qualifier to define the correct dao here.
Otherwise, spring can not decide which dao has to be autowired here
as there are multiple candidates.setDao in class PermissionAwareCrudService<E extends TreeNode,D extends TreeNodeDao<E>>dao - the dao to setCopyright © 2020 terrestris GmbH & Co. KG. All rights reserved.