@Service(value="org.squashtest.tm.service.customreport.CustomReportLibraryNodeService") @Transactional public class CustomReportLibraryNodeServiceImpl extends Object implements CustomReportLibraryNodeService
| Modifier and Type | Field and Description |
|---|---|
protected PermissionEvaluationService |
permissionService |
| Constructor and Description |
|---|
CustomReportLibraryNodeServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
List<org.squashtest.tm.domain.tree.TreeLibraryNode> |
copyNodes(List<org.squashtest.tm.domain.customreport.CustomReportLibraryNode> nodes,
org.squashtest.tm.domain.customreport.CustomReportLibraryNode target) |
List<org.squashtest.tm.domain.tree.TreeLibraryNode> |
copyNodes(List<Long> nodeIds,
Long targetId) |
org.squashtest.tm.domain.customreport.CustomReportLibraryNode |
createNewNode(Long parentId,
org.squashtest.tm.domain.tree.TreeEntity entity)
Service to add a new
CustomReportLibraryNode. |
OperationReport |
delete(List<Long> nodeIds) |
List<org.squashtest.tm.domain.customreport.CustomReportLibraryNode> |
findAllCustomReportLibraryNodeById(List<Long> treeNodeIds)
Return a list of
CustomReportLibraryNode given a list of ids |
List<Long> |
findAncestorIds(Long nodeId)
Return the list of all ancestor ids for a given node id
|
org.squashtest.tm.domain.chart.ChartDefinition |
findChartDefinitionByNodeId(Long treeNodeId)
Return a
ChartDefinition. |
org.squashtest.tm.domain.customreport.CustomReportDashboard |
findCustomReportDashboardById(Long treeNodeId)
Return a
CustomReportDashboard. |
org.squashtest.tm.domain.customreport.CustomReportLibraryNode |
findCustomReportLibraryNodeById(Long id)
Return a
CustomReportLibraryNode given an id |
List<org.squashtest.tm.domain.customreport.CustomReportLibraryNode> |
findDescendant(List<Long> nodeIds)
Find all descendant of a given list of node id's.
|
List<Long> |
findDescendantIds(List<Long> nodeIds)
Find all descendant id's of a given list of node id's.
|
org.squashtest.tm.domain.customreport.CustomReportFolder |
findFolderByTreeNodeId(Long treeNodeId)
Return a
CustomReportFolder. |
org.squashtest.tm.domain.customreport.CustomReportLibrary |
findLibraryByTreeNodeId(Long treeNodeId)
Return a
CustomReportLibrary. |
org.squashtest.tm.domain.customreport.CustomReportLibraryNode |
findNodeFromEntity(org.squashtest.tm.domain.tree.TreeEntity treeEntity)
Find the
CustomReportLibraryNode linked to a TreeEntity. |
void |
moveNodes(List<Long> nodeIds,
Long targetId) |
void |
renameNode(Long nodeId,
String newName) |
List<SuppressionPreviewReport> |
simulateDeletion(List<Long> nodeIds) |
@Inject protected PermissionEvaluationService permissionService
public org.squashtest.tm.domain.customreport.CustomReportLibraryNode findCustomReportLibraryNodeById(Long id)
CustomReportLibraryNodeServiceCustomReportLibraryNode given an idfindCustomReportLibraryNodeById in interface CustomReportLibraryNodeService@PreAuthorize(value="hasPermission(#treeNodeId, \'org.squashtest.tm.domain.customreport.CustomReportLibraryNode\' ,\'READ\') or hasRole(\'ROLE_ADMIN\')") @Transactional(readOnly=true) public org.squashtest.tm.domain.customreport.CustomReportLibrary findLibraryByTreeNodeId(Long treeNodeId)
CustomReportLibraryNodeServiceCustomReportLibrary. The given treeNodeId is the NODE's id, ie the id of the CustomReportLibraryNode
representing this entityfindLibraryByTreeNodeId in interface CustomReportLibraryNodeService@PostFilter(value="hasPermission(filterObject, \'READ\') or hasRole(\'ROLE_ADMIN\')") @Transactional(readOnly=true) public List<org.squashtest.tm.domain.customreport.CustomReportLibraryNode> findAllCustomReportLibraryNodeById(List<Long> treeNodeIds)
CustomReportLibraryNodeServiceCustomReportLibraryNode given a list of idsfindAllCustomReportLibraryNodeById in interface CustomReportLibraryNodeService@PreAuthorize(value="hasPermission(#treeNodeId, \'org.squashtest.tm.domain.customreport.CustomReportLibraryNode\' ,\'READ\') or hasRole(\'ROLE_ADMIN\')") @Transactional(readOnly=true) public org.squashtest.tm.domain.customreport.CustomReportFolder findFolderByTreeNodeId(Long treeNodeId)
CustomReportLibraryNodeServiceCustomReportFolder. The given treeNodeId is the NODE's id, ie the id of the CustomReportLibraryNode
representing this entityfindFolderByTreeNodeId in interface CustomReportLibraryNodeService@PreAuthorize(value="hasPermission(#treeNodeId, \'org.squashtest.tm.domain.customreport.CustomReportLibraryNode\' ,\'READ\') or hasRole(\'ROLE_ADMIN\')") @Transactional(readOnly=true) public org.squashtest.tm.domain.chart.ChartDefinition findChartDefinitionByNodeId(Long treeNodeId)
CustomReportLibraryNodeServiceChartDefinition. The given treeNodeId is the NODE's id, ie the id of the CustomReportLibraryNode
representing this entityfindChartDefinitionByNodeId in interface CustomReportLibraryNodeService@PreAuthorize(value="hasPermission(#treeNodeId, \'org.squashtest.tm.domain.customreport.CustomReportLibraryNode\' ,\'READ\') or hasRole(\'ROLE_ADMIN\')") @Transactional(readOnly=true) public org.squashtest.tm.domain.customreport.CustomReportDashboard findCustomReportDashboardById(Long treeNodeId)
CustomReportLibraryNodeServiceCustomReportDashboard. The given treeNodeId is the NODE's id, ie the id of the CustomReportLibraryNode
representing this entityfindCustomReportDashboardById in interface CustomReportLibraryNodeService@PreAuthorize(value="hasPermission(#parentId,\'org.squashtest.tm.domain.customreport.CustomReportLibraryNode\' ,\'WRITE\') or hasRole(\'ROLE_ADMIN\')") public org.squashtest.tm.domain.customreport.CustomReportLibraryNode createNewNode(Long parentId, org.squashtest.tm.domain.tree.TreeEntity entity)
CustomReportLibraryNodeServiceCustomReportLibraryNode. The caller is responsible for giving a
a not null, named TreeEntity. The service will persist the entity, create and persist the node and make links.
CustomReportLibraryNode
require a proper persist and reload to have an updated node and entity.createNewNode in interface CustomReportLibraryNodeServiceparentId - Id of parent node. Can't be null.public List<SuppressionPreviewReport> simulateDeletion(List<Long> nodeIds)
simulateDeletion in interface CustomReportLibraryNodeServicepublic OperationReport delete(List<Long> nodeIds)
delete in interface CustomReportLibraryNodeService@PostFilter(value="hasPermission(filterObject, \'READ\') or hasRole(\'ROLE_ADMIN\')") public List<org.squashtest.tm.domain.customreport.CustomReportLibraryNode> findDescendant(List<Long> nodeIds)
CustomReportLibraryNodeServicefindDescendant in interface CustomReportLibraryNodeServicepublic List<Long> findDescendantIds(List<Long> nodeIds)
CustomReportLibraryNodeServicefindDescendantIds in interface CustomReportLibraryNodeService@PreAuthorize(value="hasPermission(#nodeId, \'org.squashtest.tm.domain.customreport.CustomReportLibraryNode\' ,\'CREATE\') or hasRole(\'ROLE_ADMIN\')") public void renameNode(Long nodeId, String newName) throws org.squashtest.tm.exception.DuplicateNameException
renameNode in interface CustomReportLibraryNodeServiceorg.squashtest.tm.exception.DuplicateNameExceptionpublic List<Long> findAncestorIds(Long nodeId)
CustomReportLibraryNodeServicefindAncestorIds in interface CustomReportLibraryNodeServicepublic org.squashtest.tm.domain.customreport.CustomReportLibraryNode findNodeFromEntity(org.squashtest.tm.domain.tree.TreeEntity treeEntity)
CustomReportLibraryNodeServiceCustomReportLibraryNode linked to a TreeEntity.findNodeFromEntity in interface CustomReportLibraryNodeService@PreAuthorize(value="hasPermission(#target, \'org.squashtest.tm.domain.customreport.CustomReportLibraryNode\' ,\'WRITE\') or hasRole(\'ROLE_ADMIN\')") public List<org.squashtest.tm.domain.tree.TreeLibraryNode> copyNodes(List<org.squashtest.tm.domain.customreport.CustomReportLibraryNode> nodes, org.squashtest.tm.domain.customreport.CustomReportLibraryNode target)
copyNodes in interface CustomReportLibraryNodeService@PreAuthorize(value="hasPermission(#targetId, \'org.squashtest.tm.domain.customreport.CustomReportLibraryNode\' ,\'WRITE\') or hasRole(\'ROLE_ADMIN\')") public List<org.squashtest.tm.domain.tree.TreeLibraryNode> copyNodes(List<Long> nodeIds, Long targetId)
copyNodes in interface CustomReportLibraryNodeService@PreAuthorize(value="hasPermission(#targetId, \'org.squashtest.tm.domain.customreport.CustomReportLibraryNode\' ,\'WRITE\') or hasRole(\'ROLE_ADMIN\')") public void moveNodes(List<Long> nodeIds, Long targetId)
moveNodes in interface CustomReportLibraryNodeServiceCopyright © 2010–2017 Henix, henix.fr. All rights reserved.