OnDemand User Group

Support Forums => OD/WEK & JAVA API => Topic started by: ymeunier on November 29, 2017, 12:09:12 AM

Title: [ERROR] - deleteDocs implementation
Post by: ymeunier 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
Title: Re: [ERROR] - deleteDocs implementation
Post by: tnvpandian 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?