public class DocumentLinkDAOJpa extends Object implements DocumentLinkDAO
DocumentLinkDAO
.Constructor and Description |
---|
DocumentLinkDAOJpa() |
Modifier and Type | Method and Description |
---|---|
void |
deleteDocumentLink(DocumentLink link)
Delete a link between 2 docs.
|
DataObjectService |
getDataObjectService() |
DocumentLink |
getDocumentLink(String documentLinkId) |
javax.persistence.EntityManager |
getEntityManager() |
protected DocumentLink |
getLinkedDocument(String orgnDocId,
String destDocId) |
List<DocumentLink> |
getLinkedDocumentsByDocId(String docId)
Get all docs linked to origin doc.
|
List<DocumentLink> |
getOutgoingLinkedDocumentsByDocId(String docId) |
DocumentLink |
saveDocumentLink(DocumentLink link)
save a link for 2 docs
|
protected DocumentLink |
saveIfNotExists(DocumentLink link) |
void |
setDataObjectService(DataObjectService dataObjectService) |
void |
setEntityManager(javax.persistence.EntityManager entityManager) |
public DocumentLinkDAOJpa()
public void deleteDocumentLink(DocumentLink link)
DocumentLinkDAO
deleteDocumentLink
in interface DocumentLinkDAO
public List<DocumentLink> getLinkedDocumentsByDocId(String docId)
DocumentLinkDAO
getLinkedDocumentsByDocId
in interface DocumentLinkDAO
public List<DocumentLink> getOutgoingLinkedDocumentsByDocId(String docId)
getOutgoingLinkedDocumentsByDocId
in interface DocumentLinkDAO
public DocumentLink saveDocumentLink(DocumentLink link)
DocumentLinkDAO
saveDocumentLink
in interface DocumentLinkDAO
protected DocumentLink saveIfNotExists(DocumentLink link)
protected DocumentLink getLinkedDocument(String orgnDocId, String destDocId)
public DocumentLink getDocumentLink(String documentLinkId)
getDocumentLink
in interface DocumentLinkDAO
public DataObjectService getDataObjectService()
public void setDataObjectService(DataObjectService dataObjectService)
public javax.persistence.EntityManager getEntityManager()
public void setEntityManager(javax.persistence.EntityManager entityManager)
Copyright © 2005–2014 The Kuali Foundation. All rights reserved.