public class HibDocumentDaoImpl extends com.jamasoftware.contour.data.util.hibernate4.HibernateDaoSupport implements DocumentDao
Constructor and Description |
---|
HibDocumentDaoImpl() |
public Document getDocument(Integer docId)
getDocument
in interface DocumentDao
public boolean getDocumentActiveValue(Integer documentId)
getDocumentActiveValue
in interface DocumentDao
public List<Document> getDocumentByIds(Collection<Integer> docIds)
getDocumentByIds
in interface DocumentDao
public Document getDocument(String documentKey, Integer projectId)
getDocument
in interface DocumentDao
public Document getDocumentByNameAndGroup(String name, Integer groupId)
getDocumentByNameAndGroup
in interface DocumentDao
public List<Document> getDocumentsByNameAndRelease(String name, String release, Integer projectId)
getDocumentsByNameAndRelease
in interface DocumentDao
public void saveDocument(Document doc)
saveDocument
in interface DocumentDao
public void saveDocument(Document doc, boolean useMode)
saveDocument
in interface DocumentDao
public void deleteDocument(Document doc)
deleteDocument
in interface DocumentDao
public void clearDocumentReferencesForReleases(List<Integer> releaseIds)
clearDocumentReferencesForReleases
in interface DocumentDao
public List<Document_Document> getDocumentListWithSuspectLinks(Integer projectId)
public Integer getMaxSortOrder(Integer parentId, boolean isParentProject)
getMaxSortOrder
in interface DocumentDao
public List<Document> getDocumentListByType(Integer documentTypeId, boolean activeOnly, SorterList sorter)
getDocumentListByType
in interface DocumentDao
public int getDocumentsByTypeCount(Integer documentTypeId, Integer projectId, boolean activeOnly)
getDocumentsByTypeCount
in interface DocumentDao
public Iterator<Document> getDocumentIteratorByType(Integer documentTypeId, Integer projectId, boolean activeOnly, SorterList sorter, Integer pageSize)
getDocumentIteratorByType
in interface DocumentDao
public void saveAttachmentRelationship(Document_DocAttach dtod)
saveAttachmentRelationship
in interface DocumentDao
public Document_DocAttach getDocumentDocAttachment(Integer docAttachId)
getDocumentDocAttachment
in interface DocumentDao
public Document_DocAttach getDocumentDocAttachment(Integer documentId, Integer docAttachmentId)
getDocumentDocAttachment
in interface DocumentDao
public SearchResults<Document_DocAttach> getDocumentAttachments(Integer documentId, PageInfo pageInfo, SorterList sorter)
getDocumentAttachments
in interface DocumentDao
public SearchResults<Document_DocAttach> getAttachmentDocuments(Integer attachmentDocId, PageInfo pageInfo)
getAttachmentDocuments
in interface DocumentDao
public void deleteDocumentAttachment(Document_DocAttach docAtt)
deleteDocumentAttachment
in interface DocumentDao
public List<Document_Document> getTraces(Integer fromDocId, Integer toDocId)
public List<Document_Document> getAllRelationshipsForProject(Integer projectId)
public int getTotalProjectItems(int projectId)
getTotalProjectItems
in interface DocumentDao
public List<DocumentField> getDocumentLookupFields(Integer orgId)
getDocumentLookupFields
in interface DocumentDao
public List<Integer> getActiveDocumentIdsInProject(Integer projectId)
getActiveDocumentIdsInProject
in interface DocumentDao
public List<DocumentCustomFieldValue> replaceCustomLookupById(Integer originalLookupId, Lookup newLookup, DocumentField dField)
replaceCustomLookupById
in interface DocumentDao
public List<Document> replacePredefinedLookupById(Integer originalLookupId, Lookup newLookup, DocumentField dField)
replacePredefinedLookupById
in interface DocumentDao
public List<Integer> getDocumentDocumentList(List<Integer> documentIds)
getDocumentDocumentList
in interface DocumentDao
public List<Integer> getDocumentToAttachmentDocumentList(List<Integer> documentIds)
getDocumentToAttachmentDocumentList
in interface DocumentDao
public List<Document_DocAttach> getDocument_DocAttachments(Integer documentId)
getDocument_DocAttachments
in interface DocumentDao
public List<Document> getXProjectLinkReferences(List<Integer> documentIds)
getXProjectLinkReferences
in interface DocumentDao
public List<Integer> getIdsFor(Integer orgId, String property, Class<?> clazz, List<String> subqueries, String inListProperty, List<Object> inList)
getIdsFor
in interface DocumentDao
public Map<Integer,Map<String,List<Integer>>> getSystemSharedGlobalIdToDocumentIdsMap()
getSystemSharedGlobalIdToDocumentIdsMap
in interface DocumentDao
public List<Integer> getIdsWithSharedGlobalIds(Integer orgId, List<String> subqueries, String inListProperty, List<Object> inList)
getIdsWithSharedGlobalIds
in interface DocumentDao
public List<Object> subquerySearchWithProjection(Integer orgId, String projection, Class<?> searchClass, org.apache.lucene.search.Query query)
subquerySearchWithProjection
in interface DocumentDao
public TestCaseStep getTestCaseStep(Integer id)
getTestCaseStep
in interface DocumentDao
public List<Document> getSyncedDocuments(Integer projectId, Integer orgId)
getSyncedDocuments
in interface DocumentDao
public Set<Integer> getDocIdsInDatabase(List<Integer> docIdsToCheck)
getDocIdsInDatabase
in interface DocumentDao
public com.jamasoftware.contour.api.reuse.service.dto.ActiveAndGlobalIdDTO getActiveAndGlobalIdOfItem(Integer id)
getActiveAndGlobalIdOfItem
in interface DocumentDao
public void deleteCustomFields(Collection<DocumentCustomFieldValue> customFieldValues)
deleteCustomFields
in interface DocumentDao
public void setDomainClassMapping(DomainClassMapping domainClassMapping)
Copyright (c) 2013-2014 Jama Software, Inc. All Rights Reserved.