Author Topic: [ERROR] - deleteDocs implementation  (Read 1522 times)

ymeunier

  • Guest
[ERROR] - deleteDocs implementation
« on: November 29, 2017, 12:09:12 AM »
Hi,

we are implementing the deleteDocs method, but we are having a problem.
Indeed, with each attempt (while we are connected and we have the rights of suppression), we are rejected for rights problems.
Has anyone ever encountered this problem or implemented this method?
We are in version 9.5 (ODWEK and CMOD)

Code: [Select]
if (odHit.hasPermToDeleteDoc()) {
        // suppression de l'archive dans OnDemand (GODZILLA SADATA-1557)
Vector<ODHit> vectorODHit = new Vector<ODHit>();
vectorODHit.add(odHit);
odFolder.deleteDocs(vectorODHit);
} else {
TraceManager.info("[ERROR] - Pas de suppression autorisée !!!!!");
}

This is permissions :
AG NAMEDocPerms valueDoc AddDoc UpdateDoc PrintDoc cutDoc deleteDoc ViewAGPerms valueAccessAdminLogical View
I_SAECDCMC_USERDEF245falsefalsetruetruetruetrue1truefalsefalse

Best regards,
Yann

tnvpandian

  • Guest
Re: [ERROR] - deleteDocs implementation
« Reply #1 on: January 21, 2018, 07:59:38 AM »
HI,
Did you check the id which you use to connect to ondemand server has update/delete permissions on this application group?