Interface DocumentSource
-
public interface DocumentSource
Contains methods to fetch Connect documents/items and their versions/relationships.These methods are exposed to Velocity reports on the
documentSource
object within the global context. Example:$documentSource.getDocument(1)
-
-
Method Summary
-
-
-
Method Detail
-
getDocumentFieldDtoFor
DocumentTypeFieldDTO getDocumentFieldDtoFor(Integer documentTypeFieldId, Integer projectId)
-
getDocumentsWithGlobalId
List<ContourItem> getDocumentsWithGlobalId(String globalId, Integer organizationId)
-
getContourItem
ContourItem getContourItem(Integer contourItemId)
-
isSyncItem
boolean isSyncItem(ContourItem item)
-
getDocumentTypeFieldByName
DocumentTypeField getDocumentTypeFieldByName(String name, Integer documentTypeId)
-
getDocumentTypeFieldListByType
List<DocumentTypeField> getDocumentTypeFieldListByType(Integer documentTypeId)
-
getDocumentNode
DocumentNode getDocumentNode(Integer scope, Integer refId)
-
getSubTreeIds
List<Integer> getSubTreeIds(Integer projectId, Integer scope, Integer refId, Integer baselineId)
-
getDocumentNodeForBaseLine
DocumentNodeDTO getDocumentNodeForBaseLine(Integer scope, Integer refId, Integer baseLineId)
-
getAllDocumentTagsByDocumentId
List<DocumentTag> getAllDocumentTagsByDocumentId(Integer docId)
-
getAllDocumentsByTagId
List<DocumentTag> getAllDocumentsByTagId(Integer tagId)
-
getDocumentType
DocumentType getDocumentType(Integer documentTypeId)
-
getVersionByDocAndVersionNumber
Version getVersionByDocAndVersionNumber(Integer docId, Integer versionNumber)
-
getRelationshipType
RelationshipType getRelationshipType(Integer typeId)
-
getAllVersionInfoForOriginDocumentId
List<VersionInfo> getAllVersionInfoForOriginDocumentId(Integer originDocumentId)
-
getDocumentFieldByName
DocumentField getDocumentFieldByName(String name, Integer docTypeId)
-
getLookupType
LookupType getLookupType(Integer lookupTypeId)
-
getBase64Image
String getBase64Image(Integer attachmentId) throws IOException
- Throws:
IOException
-
getAllRelationshipsForDocuments
List<DocumentDocument> getAllRelationshipsForDocuments(Collection<Integer> docIds, boolean onlyIncludeTreeRelationships)
-
getRelationshipsForDocument
List<DocumentDocument> getRelationshipsForDocument(Integer documentId, boolean isForward)
-
getRelationshipBetweenDocuments
DocumentDocument getRelationshipBetweenDocuments(Integer fromDocId, Integer toDocId)
-
getRelationshipsForDocumentAndType
List<DocumentDocument> getRelationshipsForDocumentAndType(Integer documentId, Integer relatedTypeId, boolean isForward)
-
getItem
ContourItemDTO getItem(Integer currentVersionItemId, Integer versionNumber)
-
getItem
ContourItemDTO getItem(Integer itemId)
-
getRelationships
VersionedRelationshipPageResults getRelationships(Integer currentVersionItemId, Integer baselineId, int start, int count) throws Exception
- Throws:
Exception
-
getRelationships
VersionedRelationshipPageResults getRelationships(Integer currentVersionItemId, String timestamp, int start, int count)
-
getRelationshipsForItemAtTime
RelationshipDTOSearchResults getRelationshipsForItemAtTime(Integer currentVersionDocumentId, Date timestamp, Integer start, Integer count) throws Exception
- Throws:
Exception
-
getDocumentTypeListForOrganization
List<DocumentType> getDocumentTypeListForOrganization(Integer orgId)
-
getAttachment
Attachment getAttachment(Integer attachmentId)
-
getOrCreateProjectNode
@Deprecated DocumentNode getOrCreateProjectNode(Integer projectId)
Deprecated.Added for compatibiliy. This is a READ ONLY method. No objects will be created- Parameters:
projectId
- The ID of the project- Returns:
- The project document matching the given id
-
getAllBaselineDocumentNodeIds
List<Integer> getAllBaselineDocumentNodeIds(List<Integer> baselineIds)
-
getDocumentURLs
List<DocumentUrl> getDocumentURLs(Integer documentId)
-
getAllSuspectRelationshipsForProject
Integer getAllSuspectRelationshipsForProject(Integer projectId)
-
getDocumentTypeField
DocumentTypeField getDocumentTypeField(Integer documentTypeFieldId)
-
getDocumentListByType
List<Document> getDocumentListByType(Integer documentTypeId, boolean activeOnly, Object ignored)
-
getDocument_DocAttachments
List<DocumentDocAttach> getDocument_DocAttachments(Integer docId)
-
getVersionTiedToEventEntry
Version getVersionTiedToEventEntry(EventEntry eventEntry)
-
getDocumentInfoList
List<DocumentInfo> getDocumentInfoList(Integer documentTypeId, Integer projectId, Integer limit)
-
getRelationshipCountForDocumentAndType
long getRelationshipCountForDocumentAndType(Integer documentId, Integer relatedTypeId, boolean isForward)
-
getDocumentGroup
DocumentGroup getDocumentGroup(Integer groupId)
-
-