@Service(value="squashtest.tm.service.CampaignLibraryNavigationService") @Transactional public class CampaignLibraryNavigationServiceImpl extends AbstractLibraryNavigationService<org.squashtest.tm.domain.campaign.CampaignLibrary,org.squashtest.tm.domain.campaign.CampaignFolder,org.squashtest.tm.domain.campaign.CampaignLibraryNode> implements CampaignLibraryNavigationService
permissionService| Constructor and Description |
|---|
CampaignLibraryNavigationServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCampaignToCampaignFolder(long folderId,
org.squashtest.tm.domain.campaign.Campaign newCampaign)
Adds a campaign to a folder.
|
void |
addCampaignToCampaignFolder(long folderId,
org.squashtest.tm.domain.campaign.Campaign campaign,
Map<Long,org.squashtest.tm.domain.customfield.RawValue> customFieldValues)
Adds a campaign to a folder, and its initial custom field values.
|
void |
addCampaignToCampaignLibrary(long libraryId,
org.squashtest.tm.domain.campaign.Campaign newCampaign)
Adds a Campaign to the root of the library.
|
void |
addCampaignToCampaignLibrary(long libraryId,
org.squashtest.tm.domain.campaign.Campaign campaign,
Map<Long,org.squashtest.tm.domain.customfield.RawValue> customFieldValues)
Adds a Campaign to the root of the Library, and its initial custom field values.
|
void |
addFolderToFolder(long destinationId,
org.squashtest.tm.domain.campaign.CampaignFolder newFolder)
Id annotation is used by PreventConcurrent, BatchPreventConcurrent and PreventConcurrents in sub classes |
void |
addFolderToLibrary(long destinationId,
org.squashtest.tm.domain.campaign.CampaignFolder newFolder)
Id annotation is used by PreventConcurrent, BatchPreventConcurrent and PreventConcurrents in sub classes |
int |
addIterationToCampaign(org.squashtest.tm.domain.campaign.Iteration iteration,
long campaignId,
boolean copyTestPlan)
Adds a new iteration to a campaign.
|
int |
addIterationToCampaign(org.squashtest.tm.domain.campaign.Iteration iteration,
long campaignId,
boolean copyTestPlan,
Map<Long,org.squashtest.tm.domain.customfield.RawValue> customFieldValues)
Adds a new iteration to a campaign.
|
List<org.squashtest.tm.domain.campaign.Iteration> |
copyIterationsToCampaign(long campaignId,
Long[] iterationsIds) |
List<org.squashtest.tm.domain.campaign.CampaignLibraryNode> |
copyNodesToFolder(long destinationId,
Long[] sourceNodesIds)
will create a deep copy of the given LibraryNodes, paste them in the destination folder, and return the copies.
|
List<org.squashtest.tm.domain.campaign.CampaignLibraryNode> |
copyNodesToLibrary(long destinationId,
Long[] targetIds)
same, when the destination is a Library.
|
OperationReport |
deleteIterations(List<Long> targetIds)
that method should delete the iterations.
|
OperationReport |
deleteNodes(List<Long> targetIds)
that method should delete the nodes.
|
OperationReport |
deleteSuites(List<Long> suiteIds,
boolean removeFromIter)
that method should delete test suites, and remove its references in iteration and iteration test plan item
|
org.squashtest.tm.domain.campaign.export.CampaignExportCSVModel |
exportCampaignToCSV(Long campaignId,
String exportType)
given a campaign Id, returns a model.
|
List<Long> |
findAllCampaignIdsForMilestone(org.squashtest.tm.domain.milestone.Milestone milestone) |
Collection<Long> |
findCampaignIdsFromSelection(Collection<Long> libraryIds,
Collection<Long> nodeIds)
Passing the ids of some selected CampaignLibrary and CampaignLibraryNode (in separate collections), will return
the ids of the Campaign encompassed by this selection.
|
List<org.squashtest.tm.domain.campaign.TestSuite> |
findIterationContent(long iterationId) |
List<org.squashtest.tm.domain.campaign.Iteration> |
findIterationsByCampaignId(long campaignId) |
List<org.squashtest.tm.domain.campaign.CampaignLibrary> |
findLinkableCampaignLibraries()
Returns the collection of
CampaignLibrarys which Campaigns can be linked by a Campaign via a
CallTestStep |
CampaignStatisticsBundle |
gatherCampaignStatisticsBundleByMilestone()
Returns all dashboard data for a milestone dashboard (ie about all campaigns that belong to the active milestone)
|
protected NodeDeletionHandler<org.squashtest.tm.domain.campaign.CampaignLibraryNode,org.squashtest.tm.domain.campaign.CampaignFolder> |
getDeletionHandler() |
protected CampaignFolderDao |
getFolderDao() |
protected CampaignLibraryDao |
getLibraryDao() |
protected LibraryNodeDao<org.squashtest.tm.domain.campaign.CampaignLibraryNode> |
getLibraryNodeDao() |
List<String> |
getParentNodesAsStringList(Long nodeId) |
protected PasteStrategy<org.squashtest.tm.domain.campaign.CampaignFolder,org.squashtest.tm.domain.campaign.CampaignLibraryNode> |
getPasteToFolderStrategy() |
protected PasteStrategy<org.squashtest.tm.domain.campaign.CampaignLibrary,org.squashtest.tm.domain.campaign.CampaignLibraryNode> |
getPasteToLibraryStrategy() |
String |
getPathAsString(long entityId)
Returns the path of a CampaignLibraryNode given its id.
|
void |
moveIterationsWithinCampaign(long destinationId,
Long[] nodeIds,
int position) |
void |
moveNodesToFolder(long destinationId,
Long[] targetIds) |
void |
moveNodesToFolder(long destinationId,
Long[] targetIds,
int position) |
void |
moveNodesToLibrary(long destinationId,
Long[] targetIds) |
void |
moveNodesToLibrary(long destinationId,
Long[] targetIds,
int position) |
List<SuppressionPreviewReport> |
simulateIterationDeletion(List<Long> targetIds)
that method should investigate the consequences of the deletion request of iterations, and return a report about
what will happen.
|
List<SuppressionPreviewReport> |
simulateSuiteDeletion(List<Long> targetIds)
that method should investigate the consequences of the deletion request of tes suites, and return a report about
what will happen.
|
checkPermission, createCustomFieldValues, createCustomFieldValues, findCreatableLibrary, findFolder, findFolderContent, findLibrary, findLibraryOfRootNodeIfExist, findLibraryRootContent, findParentIfExists, initCustomFieldValues, makeCopierStrategy, makeMoverStrategy, securityFilterIds, setFullFolderPath, simulateDeletionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfindCreatableLibrary, findFolder, findFolderContent, findLibrary, findLibraryOfRootNodeIfExist, findLibraryRootContent, findParentIfExists, simulateDeletionpublic CampaignLibraryNavigationServiceImpl()
protected NodeDeletionHandler<org.squashtest.tm.domain.campaign.CampaignLibraryNode,org.squashtest.tm.domain.campaign.CampaignFolder> getDeletionHandler()
getDeletionHandler in class AbstractLibraryNavigationService<org.squashtest.tm.domain.campaign.CampaignLibrary,org.squashtest.tm.domain.campaign.CampaignFolder,org.squashtest.tm.domain.campaign.CampaignLibraryNode>protected PasteStrategy<org.squashtest.tm.domain.campaign.CampaignFolder,org.squashtest.tm.domain.campaign.CampaignLibraryNode> getPasteToFolderStrategy()
getPasteToFolderStrategy in class AbstractLibraryNavigationService<org.squashtest.tm.domain.campaign.CampaignLibrary,org.squashtest.tm.domain.campaign.CampaignFolder,org.squashtest.tm.domain.campaign.CampaignLibraryNode>protected PasteStrategy<org.squashtest.tm.domain.campaign.CampaignLibrary,org.squashtest.tm.domain.campaign.CampaignLibraryNode> getPasteToLibraryStrategy()
getPasteToLibraryStrategy in class AbstractLibraryNavigationService<org.squashtest.tm.domain.campaign.CampaignLibrary,org.squashtest.tm.domain.campaign.CampaignFolder,org.squashtest.tm.domain.campaign.CampaignLibraryNode>@PreAuthorize(value="(hasPermission(#campaignId, \'org.squashtest.tm.domain.campaign.Campaign\', \'CREATE\')) or hasRole(\'ROLE_ADMIN\')") public List<org.squashtest.tm.domain.campaign.Iteration> copyIterationsToCampaign(long campaignId, Long[] iterationsIds)
copyIterationsToCampaign in interface CampaignLibraryNavigationService@PreAuthorize(value="hasPermission(#campaignId, \'org.squashtest.tm.domain.campaign.Campaign\', \'CREATE\') or hasRole(\'ROLE_ADMIN\')")
public int addIterationToCampaign(org.squashtest.tm.domain.campaign.Iteration iteration,
long campaignId,
boolean copyTestPlan)
CampaignLibraryNavigationServiceaddIterationToCampaign in interface CampaignLibraryNavigationService@PreAuthorize(value="hasPermission(#campaignId, \'org.squashtest.tm.domain.campaign.Campaign\', \'CREATE\') or hasRole(\'ROLE_ADMIN\')")
public int addIterationToCampaign(org.squashtest.tm.domain.campaign.Iteration iteration,
long campaignId,
boolean copyTestPlan,
Map<Long,org.squashtest.tm.domain.customfield.RawValue> customFieldValues)
CampaignLibraryNavigationServiceCustomField to the values of the corresponding CustomFieldValue.
Read that last sentence again.addIterationToCampaign in interface CampaignLibraryNavigationService@PreAuthorize(value="hasPermission(#destinationId, \'org.squashtest.tm.domain.campaign.Campaign\', \'WRITE\') or hasRole(\'ROLE_ADMIN\')")
public void moveIterationsWithinCampaign(long destinationId,
Long[] nodeIds,
int position)
moveIterationsWithinCampaign in interface CampaignLibraryNavigationServiceprotected final CampaignLibraryDao getLibraryDao()
getLibraryDao in class AbstractLibraryNavigationService<org.squashtest.tm.domain.campaign.CampaignLibrary,org.squashtest.tm.domain.campaign.CampaignFolder,org.squashtest.tm.domain.campaign.CampaignLibraryNode>protected final CampaignFolderDao getFolderDao()
getFolderDao in class AbstractLibraryNavigationService<org.squashtest.tm.domain.campaign.CampaignLibrary,org.squashtest.tm.domain.campaign.CampaignFolder,org.squashtest.tm.domain.campaign.CampaignLibraryNode>protected final LibraryNodeDao<org.squashtest.tm.domain.campaign.CampaignLibraryNode> getLibraryNodeDao()
getLibraryNodeDao in class AbstractLibraryNavigationService<org.squashtest.tm.domain.campaign.CampaignLibrary,org.squashtest.tm.domain.campaign.CampaignFolder,org.squashtest.tm.domain.campaign.CampaignLibraryNode>@PreAuthorize(value="hasPermission(#campaignId, \'org.squashtest.tm.domain.campaign.Campaign\' , \'READ\') or hasRole(\'ROLE_ADMIN\')") public List<org.squashtest.tm.domain.campaign.Iteration> findIterationsByCampaignId(long campaignId)
findIterationsByCampaignId in interface CampaignLibraryNavigationService@PreAuthorize(value="hasPermission(#libraryId, \'org.squashtest.tm.domain.campaign.CampaignLibrary\', \'CREATE\') or hasRole(\'ROLE_ADMIN\')")
public void addCampaignToCampaignLibrary(long libraryId,
org.squashtest.tm.domain.campaign.Campaign newCampaign)
CampaignLibraryNavigationServiceaddCampaignToCampaignLibrary in interface CampaignLibraryNavigationService@PreAuthorize(value="hasPermission(#libraryId, \'org.squashtest.tm.domain.campaign.CampaignLibrary\', \'CREATE\') or hasRole(\'ROLE_ADMIN\')")
public void addCampaignToCampaignLibrary(long libraryId,
org.squashtest.tm.domain.campaign.Campaign campaign,
Map<Long,org.squashtest.tm.domain.customfield.RawValue> customFieldValues)
CampaignLibraryNavigationServiceCustomField to the values of the corresponding CustomFieldValue.
Read that last sentence again.addCampaignToCampaignLibrary in interface CampaignLibraryNavigationService@PreAuthorize(value="hasPermission(#folderId, \'org.squashtest.tm.domain.campaign.CampaignFolder\', \'CREATE\') or hasRole(\'ROLE_ADMIN\')")
public void addCampaignToCampaignFolder(long folderId,
org.squashtest.tm.domain.campaign.Campaign newCampaign)
CampaignLibraryNavigationServiceaddCampaignToCampaignFolder in interface CampaignLibraryNavigationService@PreAuthorize(value="hasPermission(#folderId, \'org.squashtest.tm.domain.campaign.CampaignFolder\', \'CREATE\') or hasRole(\'ROLE_ADMIN\')")
public void addCampaignToCampaignFolder(long folderId,
org.squashtest.tm.domain.campaign.Campaign campaign,
Map<Long,org.squashtest.tm.domain.customfield.RawValue> customFieldValues)
CampaignLibraryNavigationServiceCustomField to the values of the corresponding CustomFieldValue.
Read that last sentence again.addCampaignToCampaignFolder in interface CampaignLibraryNavigationService@PostFilter(value="hasPermission(filterObject, \'READ\') or hasRole(\'ROLE_ADMIN\')") public List<org.squashtest.tm.domain.campaign.TestSuite> findIterationContent(long iterationId)
findIterationContent in interface CampaignLibraryNavigationServicepublic String getPathAsString(long entityId)
CampaignLibraryFinderServicegetPathAsString in interface CampaignLibraryFinderServiceentityId - the id of the node.@PostFilter(value="hasPermission(filterObject, \'READ\') or hasRole(\'ROLE_ADMIN\')") public List<org.squashtest.tm.domain.campaign.CampaignLibrary> findLinkableCampaignLibraries()
CampaignLibraryFinderServiceCampaignLibrarys which Campaigns can be linked by a Campaign via a
CallTestStepfindLinkableCampaignLibraries in interface CampaignLibraryFinderServicefindLinkableCampaignLibraries in interface CampaignLibraryNavigationServicepublic List<SuppressionPreviewReport> simulateIterationDeletion(List<Long> targetIds)
CampaignLibraryNavigationServicesimulateIterationDeletion in interface CampaignLibraryNavigationServicepublic OperationReport deleteIterations(List<Long> targetIds)
CampaignLibraryNavigationServicedeleteIterations in interface CampaignLibraryNavigationServicepublic List<SuppressionPreviewReport> simulateSuiteDeletion(List<Long> targetIds)
CampaignLibraryNavigationServicesimulateSuiteDeletion in interface CampaignLibraryNavigationService@PreAuthorize(value="hasPermission(#campaignId, \'org.squashtest.tm.domain.campaign.Campaign\' ,\'EXPORT\') or hasRole(\'ROLE_ADMIN\')") public org.squashtest.tm.domain.campaign.export.CampaignExportCSVModel exportCampaignToCSV(Long campaignId, String exportType)
CampaignLibraryNavigationServiceexportCampaignToCSV in interface CampaignLibraryNavigationServicepublic List<String> getParentNodesAsStringList(Long nodeId)
getParentNodesAsStringList in interface CampaignLibraryNavigationServicepublic List<Long> findAllCampaignIdsForMilestone(org.squashtest.tm.domain.milestone.Milestone milestone)
findAllCampaignIdsForMilestone in interface CampaignLibraryNavigationServicepublic Collection<Long> findCampaignIdsFromSelection(Collection<Long> libraryIds, Collection<Long> nodeIds)
CampaignLibraryFinderServicefindCampaignIdsFromSelection in interface CampaignLibraryFinderServicepublic CampaignStatisticsBundle gatherCampaignStatisticsBundleByMilestone()
CampaignLibraryFinderServicegatherCampaignStatisticsBundleByMilestone in interface CampaignLibraryFinderServicepublic OperationReport deleteSuites(List<Long> suiteIds, boolean removeFromIter)
CampaignLibraryNavigationServicedeleteSuites in interface CampaignLibraryNavigationServicepublic void addFolderToFolder(long destinationId,
org.squashtest.tm.domain.campaign.CampaignFolder newFolder)
LibraryNavigationServiceId annotation is used by PreventConcurrent, BatchPreventConcurrent and PreventConcurrents in sub classesaddFolderToFolder in interface LibraryNavigationService<org.squashtest.tm.domain.campaign.CampaignLibrary,org.squashtest.tm.domain.campaign.CampaignFolder,org.squashtest.tm.domain.campaign.CampaignLibraryNode>addFolderToFolder in class AbstractLibraryNavigationService<org.squashtest.tm.domain.campaign.CampaignLibrary,org.squashtest.tm.domain.campaign.CampaignFolder,org.squashtest.tm.domain.campaign.CampaignLibraryNode>public void addFolderToLibrary(long destinationId,
org.squashtest.tm.domain.campaign.CampaignFolder newFolder)
LibraryNavigationServiceId annotation is used by PreventConcurrent, BatchPreventConcurrent and PreventConcurrents in sub classesaddFolderToLibrary in interface LibraryNavigationService<org.squashtest.tm.domain.campaign.CampaignLibrary,org.squashtest.tm.domain.campaign.CampaignFolder,org.squashtest.tm.domain.campaign.CampaignLibraryNode>addFolderToLibrary in class AbstractLibraryNavigationService<org.squashtest.tm.domain.campaign.CampaignLibrary,org.squashtest.tm.domain.campaign.CampaignFolder,org.squashtest.tm.domain.campaign.CampaignLibraryNode>public List<org.squashtest.tm.domain.campaign.CampaignLibraryNode> copyNodesToFolder(long destinationId, Long[] sourceNodesIds)
LibraryNavigationServicecopyNodesToFolder in interface CampaignLibraryNavigationServicecopyNodesToFolder in interface LibraryNavigationService<org.squashtest.tm.domain.campaign.CampaignLibrary,org.squashtest.tm.domain.campaign.CampaignFolder,org.squashtest.tm.domain.campaign.CampaignLibraryNode>copyNodesToFolder in class AbstractLibraryNavigationService<org.squashtest.tm.domain.campaign.CampaignLibrary,org.squashtest.tm.domain.campaign.CampaignFolder,org.squashtest.tm.domain.campaign.CampaignLibraryNode>destinationId - the id of the folder where you need to copy to.sourceNodesIds - the list of the librarynodes we want copies of.public List<org.squashtest.tm.domain.campaign.CampaignLibraryNode> copyNodesToLibrary(long destinationId, Long[] targetIds)
LibraryNavigationServicecopyNodesToLibrary in interface CampaignLibraryNavigationServicecopyNodesToLibrary in interface LibraryNavigationService<org.squashtest.tm.domain.campaign.CampaignLibrary,org.squashtest.tm.domain.campaign.CampaignFolder,org.squashtest.tm.domain.campaign.CampaignLibraryNode>copyNodesToLibrary in class AbstractLibraryNavigationService<org.squashtest.tm.domain.campaign.CampaignLibrary,org.squashtest.tm.domain.campaign.CampaignFolder,org.squashtest.tm.domain.campaign.CampaignLibraryNode>destinationId - the id of the library where you need to copy to.targetIds - the list of the librarynodes we want copies of.public void moveNodesToFolder(long destinationId,
Long[] targetIds)
moveNodesToFolder in interface CampaignLibraryNavigationServicemoveNodesToFolder in interface LibraryNavigationService<org.squashtest.tm.domain.campaign.CampaignLibrary,org.squashtest.tm.domain.campaign.CampaignFolder,org.squashtest.tm.domain.campaign.CampaignLibraryNode>moveNodesToFolder in class AbstractLibraryNavigationService<org.squashtest.tm.domain.campaign.CampaignLibrary,org.squashtest.tm.domain.campaign.CampaignFolder,org.squashtest.tm.domain.campaign.CampaignLibraryNode>public void moveNodesToFolder(long destinationId,
Long[] targetIds,
int position)
moveNodesToFolder in interface CampaignLibraryNavigationServicemoveNodesToFolder in interface LibraryNavigationService<org.squashtest.tm.domain.campaign.CampaignLibrary,org.squashtest.tm.domain.campaign.CampaignFolder,org.squashtest.tm.domain.campaign.CampaignLibraryNode>moveNodesToFolder in class AbstractLibraryNavigationService<org.squashtest.tm.domain.campaign.CampaignLibrary,org.squashtest.tm.domain.campaign.CampaignFolder,org.squashtest.tm.domain.campaign.CampaignLibraryNode>public void moveNodesToLibrary(long destinationId,
Long[] targetIds)
moveNodesToLibrary in interface CampaignLibraryNavigationServicemoveNodesToLibrary in interface LibraryNavigationService<org.squashtest.tm.domain.campaign.CampaignLibrary,org.squashtest.tm.domain.campaign.CampaignFolder,org.squashtest.tm.domain.campaign.CampaignLibraryNode>moveNodesToLibrary in class AbstractLibraryNavigationService<org.squashtest.tm.domain.campaign.CampaignLibrary,org.squashtest.tm.domain.campaign.CampaignFolder,org.squashtest.tm.domain.campaign.CampaignLibraryNode>public void moveNodesToLibrary(long destinationId,
Long[] targetIds,
int position)
moveNodesToLibrary in interface CampaignLibraryNavigationServicemoveNodesToLibrary in interface LibraryNavigationService<org.squashtest.tm.domain.campaign.CampaignLibrary,org.squashtest.tm.domain.campaign.CampaignFolder,org.squashtest.tm.domain.campaign.CampaignLibraryNode>moveNodesToLibrary in class AbstractLibraryNavigationService<org.squashtest.tm.domain.campaign.CampaignLibrary,org.squashtest.tm.domain.campaign.CampaignFolder,org.squashtest.tm.domain.campaign.CampaignLibraryNode>public OperationReport deleteNodes(List<Long> targetIds)
LibraryNavigationServicedeleteNodes in interface CampaignLibraryNavigationServicedeleteNodes in interface LibraryNavigationService<org.squashtest.tm.domain.campaign.CampaignLibrary,org.squashtest.tm.domain.campaign.CampaignFolder,org.squashtest.tm.domain.campaign.CampaignLibraryNode>deleteNodes in class AbstractLibraryNavigationService<org.squashtest.tm.domain.campaign.CampaignLibrary,org.squashtest.tm.domain.campaign.CampaignFolder,org.squashtest.tm.domain.campaign.CampaignLibraryNode>Copyright © 2010–2017 Henix, henix.fr. All rights reserved.