org.squashtest.tm.service.internal.campaign
@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
COPY_TOKEN, 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,String> 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,String> customFieldValues)
Adds a Campaign to the root of the Library, and its initial custom field values.
|
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,String> customFieldValues)
Adds a new iteration to a campaign.
|
List<org.squashtest.tm.domain.campaign.Iteration> |
copyIterationsToCampaign(long campaignId,
Long[] iterationsIds) |
OperationReport |
deleteIterations(List<Long> targetIds)
that method should delete the iterations.
|
OperationReport |
deleteSuites(List<Long> targetIds)
that method should delete test suites, and remove its references in iteration and iteration test plan item
|
org.squashtest.tm.domain.campaign.CampaignExportCSVModel |
exportCampaignToCSV(Long campaignId,
String exportType)
given a campaign Id, returns a model.
|
org.squashtest.tm.domain.campaign.Campaign |
findCampaign(long reqId) |
org.squashtest.tm.domain.campaign.Iteration |
findIteration(long iterationId) |
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() |
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.
|
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.
|
addFolderToFolder, addFolderToLibrary, checkPermission, copyNodesToFolder, copyNodesToLibrary, createCustomFieldValues, createCustomFieldValues, deleteNodes, findCreatableLibrary, findFolder, findFolderContent, findLibrary, findLibraryOfRootNodeIfExist, findLibraryRootContent, findParentIfExists, generateUniqueCopyNumber, initCustomFieldValues, makeCopierStrategy, makeMoverStrategy, moveNodesToFolder, moveNodesToLibrary, renameFolder, setFullFolderPath, simulateDeletionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddFolderToFolder, addFolderToLibrary, copyNodesToFolder, copyNodesToLibrary, deleteNodes, findCreatableLibrary, findFolder, findFolderContent, findLibrary, findLibraryOfRootNodeIfExist, findLibraryRootContent, findParentIfExists, moveNodesToFolder, moveNodesToLibrary, renameFolder, 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@PostAuthorize(value="hasPermission(returnObject,\'READ\') or hasRole(\'ROLE_ADMIN\')") public org.squashtest.tm.domain.campaign.Campaign findCampaign(long reqId)
findCampaign 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,String> customFieldValues)
CampaignLibraryNavigationServiceCustomField to the values of the corresponding CustomFieldValue.
Read that last sentence again.addIterationToCampaign 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,String> 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,String> customFieldValues)
CampaignLibraryNavigationServiceCustomField to the values of the corresponding CustomFieldValue.
Read that last sentence again.addCampaignToCampaignFolder in interface CampaignLibraryNavigationService@PostAuthorize(value="hasPermission(returnObject, \'READ\') or hasRole(\'ROLE_ADMIN\')") public org.squashtest.tm.domain.campaign.Iteration findIteration(long iterationId)
findIteration 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()
findLinkableCampaignLibraries 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 CampaignLibraryNavigationServicepublic OperationReport deleteSuites(List<Long> targetIds)
CampaignLibraryNavigationServicedeleteSuites in interface CampaignLibraryNavigationService@PreAuthorize(value="hasPermission(#campaignId, \'org.squashtest.tm.domain.campaign.Campaign\' ,\'EXPORT\') or hasRole(\'ROLE_ADMIN\')") public org.squashtest.tm.domain.campaign.CampaignExportCSVModel exportCampaignToCSV(Long campaignId, String exportType)
CampaignLibraryNavigationServiceexportCampaignToCSV in interface CampaignLibraryNavigationServicepublic List<String> getParentNodesAsStringList(Long nodeId)
getParentNodesAsStringList in interface CampaignLibraryNavigationServiceCopyright © 2010-2014 Henix, henix.fr. All Rights Reserved.