|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.squashtest.tm.service.internal.library.AbstractLibraryNavigationService<org.squashtest.tm.domain.campaign.CampaignLibrary,org.squashtest.tm.domain.campaign.CampaignFolder,org.squashtest.tm.domain.campaign.CampaignLibraryNode>
org.squashtest.tm.service.internal.campaign.CampaignLibraryNavigationServiceImpl
@Service(value="squashtest.tm.service.CampaignLibraryNavigationService") @Transactional public class CampaignLibraryNavigationServiceImpl
| Field Summary |
|---|
| Fields inherited from class org.squashtest.tm.service.internal.library.AbstractLibraryNavigationService |
|---|
COPY_TOKEN, permissionService |
| Constructor Summary | |
|---|---|
CampaignLibraryNavigationServiceImpl()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.squashtest.tm.service.internal.library.AbstractLibraryNavigationService |
|---|
addFolderToFolder, addFolderToLibrary, checkPermission, copyNodesToFolder, copyNodesToLibrary, createCustomFieldValues, createCustomFieldValues, deleteNodes, findCreatableLibrary, findFolder, findFolderContent, findLibrary, findLibraryOfRootNodeIfExist, findLibraryRootContent, findParentIfExists, generateUniqueCopyNumber, initCustomFieldValues, makeCopierStrategy, makeMoverStrategy, moveNodesToFolder, moveNodesToLibrary, renameFolder, setFullFolderPath, simulateDeletion |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.squashtest.tm.service.library.LibraryNavigationService |
|---|
addFolderToFolder, addFolderToLibrary, copyNodesToFolder, copyNodesToLibrary, deleteNodes, findCreatableLibrary, findFolder, findFolderContent, findLibrary, findLibraryOfRootNodeIfExist, findLibraryRootContent, findParentIfExists, moveNodesToFolder, moveNodesToLibrary, renameFolder, simulateDeletion |
| Constructor Detail |
|---|
public CampaignLibraryNavigationServiceImpl()
| Method Detail |
|---|
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)
CampaignLibraryNavigationService
addIterationToCampaign 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)
CampaignLibraryNavigationService
addCampaignToCampaignLibrary 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)
CampaignLibraryNavigationService
addCampaignToCampaignFolder 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)
CampaignLibraryFinderService
getPathAsString 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)
CampaignLibraryNavigationService
simulateIterationDeletion in interface CampaignLibraryNavigationServicepublic OperationReport deleteIterations(List<Long> targetIds)
CampaignLibraryNavigationService
deleteIterations in interface CampaignLibraryNavigationServicepublic List<SuppressionPreviewReport> simulateSuiteDeletion(List<Long> targetIds)
CampaignLibraryNavigationService
simulateSuiteDeletion in interface CampaignLibraryNavigationServicepublic OperationReport deleteSuites(List<Long> targetIds)
CampaignLibraryNavigationService
deleteSuites 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)
CampaignLibraryNavigationService
exportCampaignToCSV in interface CampaignLibraryNavigationServicepublic List<String> getParentNodesAsStringList(Long nodeId)
getParentNodesAsStringList in interface CampaignLibraryNavigationService
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||