Skip to content

Commit

Permalink
Use only docId in getDocument at hid.Hydra
Browse files Browse the repository at this point in the history
  • Loading branch information
dolfinus committed May 15, 2019
1 parent cdea4af commit f84d1f7
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ trait Document {
private static String DOCUMENT_STATE_DISSOLVED = 'DOC_STATE_Dissolved'
private static String DOCUMENT_STATE_PROCESSING = 'DOC_STATE_Processing'
private static String DOCUMENT_STATE_PREPARED = 'DOC_STATE_Prepared'
private static String PROVIDER_ROLE = 'SUBJ_ROLE_Provider'
private static String RECEIVER_ROLE = 'SUBJ_ROLE_Receiver'
private static String PROVIDER_ROLE = 'SUBJ_ROLE_Provider'
private static String RECEIVER_ROLE = 'SUBJ_ROLE_Receiver'

def getDocumentsTable() {
return DOCUMENTS_TABLE
Expand Down Expand Up @@ -209,7 +209,10 @@ trait Document {
}

LinkedHashMap getDocument(def docId) {
return getDocumentBy(docId: docId)
def where = [
n_doc_id: docId
]
return hid.getTableData(getDocumentsTable(), where: where, order: order)
}

Boolean isDocument(String docType) {
Expand Down

0 comments on commit f84d1f7

Please sign in to comment.