@@ -70,25 +70,24 @@ public void createAttachment(AttachmentCreateEventContext context) throws IOExce
7070 public void markAttachmentAsDeleted (AttachmentMarkAsDeletedEventContext context )
7171 throws IOException {
7272 String [] contextValues = context .getContentId ().split (":" );
73- System .out .println ("Marking attachment INNER CONTEXTVALUES SDM @123" + contextValues );
7473 if (contextValues .length > 0 && !(contextValues [0 ].equalsIgnoreCase ("null" ))) {
7574 String objectId = contextValues [0 ];
7675 String folderId = contextValues [1 ];
7776 String entity = contextValues [2 ];
7877 // check if only attachment exists against the folderId
7978 List <CmisDocument > cmisDocuments =
8079 dbQuery .getAttachmentsForFolder (entity , persistenceService , folderId , context );
81- System .out .println ("Marking attachment INNER CMISDOCUMENTS SDM @123" + cmisDocuments );
80+ System .out .println ("Marking attachment INNER CMISDOCUMENTS SDM @123 -> " + cmisDocuments );
8281 if (cmisDocuments .isEmpty ()) {
83- System .out .println ("Marking attachment INNER EMPTY SDM @123" + cmisDocuments );
82+ System .out .println ("Marking attachment INNER EMPTY SDM @123" );
8483 // deleteFolder API
8584 sdmService .deleteDocument ("deleteTree" , folderId , context .getDeletionUserInfo ().getName ());
86- System .out .println ("Marking attachment INNER EMPTY DELETED SDM @123" + contextValues );
85+ System .out .println ("Marking attachment INNER EMPTY DELETED SDM @123" );
8786 } else {
8887 if (!isObjectIdPresent (cmisDocuments , objectId )) {
89- System .out .println ("Marking attachment INNER PRESENT SDM @123" + contextValues );
88+ System .out .println ("Marking attachment INNER PRESENT SDM @123 -> " + objectId );
9089 sdmService .deleteDocument ("delete" , objectId , context .getDeletionUserInfo ().getName ());
91- System .out .println ("Marking attachment INNER PRESENT DELETED SDM @123" + contextValues );
90+ System .out .println ("Marking attachment INNER PRESENT DELETED SDM @123" );
9291 }
9392 }
9493 }
0 commit comments