org.squashtest.tm.service.internal.repository.hibernate
Class HibernateRequirementDeletionDao

java.lang.Object
  extended by org.squashtest.tm.service.internal.repository.hibernate.HibernateDeletionDao
      extended by org.squashtest.tm.service.internal.repository.hibernate.HibernateRequirementDeletionDao
All Implemented Interfaces:
DeletionDao, RequirementDeletionDao

@Repository
public class HibernateRequirementDeletionDao
extends HibernateDeletionDao
implements RequirementDeletionDao


Constructor Summary
HibernateRequirementDeletionDao()
           
 
Method Summary
 void deleteRequirementAuditEvents(List<Long> requirementIds)
           
 List<Long> findRequirementAttachmentListIds(List<Long> requirementIds)
           
 List<Long> findRequirementFolderAttachmentListIds(List<Long> folderIds)
           
 List<Long> findVersionIds(List<Long> requirementIds)
           
 void removeEntities(List<Long> entityIds)
           
 void removeFromVerifiedRequirementLists(List<Long> requirementIds)
           
 void removeTestStepsCoverageByRequirementVersionIds(List<Long> requirementVersionIds)
           
 List<Long>[] separateFolderFromRequirementIds(List<Long> originalIds)
          Given a list of RequirementLibraryNode ids, will tell which ones are folder ids and which ones are requirements.
 
Methods inherited from class org.squashtest.tm.service.internal.repository.hibernate.HibernateDeletionDao
executeDeleteNamedQuery, executeDeleteSQLQuery, executeSelectNamedQuery, executeSelectSQLQuery, flush, getSession, removeAttachmentList, removeAttachmentsLists, removeEntity
 
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.internal.repository.DeletionDao
flush, removeAttachmentList, removeAttachmentsLists, removeEntity
 

Constructor Detail

HibernateRequirementDeletionDao

public HibernateRequirementDeletionDao()
Method Detail

removeEntities

public void removeEntities(List<Long> entityIds)
Specified by:
removeEntities in interface DeletionDao

separateFolderFromRequirementIds

public List<Long>[] separateFolderFromRequirementIds(List<Long> originalIds)
Description copied from interface: RequirementDeletionDao
Given a list of RequirementLibraryNode ids, will tell which ones are folder ids and which ones are requirements.

Specified by:
separateFolderFromRequirementIds in interface RequirementDeletionDao
Parameters:
originalIds - the requirement library node ids we want to sort out.
Returns:
an array of list of ids : result[0] are the folder ids and result[1] are the requirement ids.

findRequirementAttachmentListIds

public List<Long> findRequirementAttachmentListIds(List<Long> requirementIds)
Specified by:
findRequirementAttachmentListIds in interface RequirementDeletionDao

findRequirementFolderAttachmentListIds

public List<Long> findRequirementFolderAttachmentListIds(List<Long> folderIds)
Specified by:
findRequirementFolderAttachmentListIds in interface RequirementDeletionDao

removeFromVerifiedRequirementLists

public void removeFromVerifiedRequirementLists(List<Long> requirementIds)
Specified by:
removeFromVerifiedRequirementLists in interface RequirementDeletionDao

removeTestStepsCoverageByRequirementVersionIds

public void removeTestStepsCoverageByRequirementVersionIds(List<Long> requirementVersionIds)
Specified by:
removeTestStepsCoverageByRequirementVersionIds in interface RequirementDeletionDao

deleteRequirementAuditEvents

public void deleteRequirementAuditEvents(List<Long> requirementIds)
Specified by:
deleteRequirementAuditEvents in interface RequirementDeletionDao

findVersionIds

public List<Long> findVersionIds(List<Long> requirementIds)
Specified by:
findVersionIds in interface RequirementDeletionDao


Copyright © 2010-2013 Henix, henix.fr. All Rights Reserved.