Is there a way to prevent the deletion of a file during CHECKIN services?

My scenario: I am creating a service that takes the current latest revision and creates a new one, using the same metadata and content. I'm almost done. The lack total that when I called the service (CHECKIN_SEL) the file whose path I provided in the parameter primaryFile:path is deleted. Of course, I can create a copy in the ~ temp directory, but I would rather prevent deletion. I have also observed that the log contains a line:

(internal) / 6...    Files to remove: /app/domains/content/ucm/cs/vault/document/2001.zip

I tried to analyze the service and I found the intradoc.server.DocServiceHandler.addFiles () method. This method calls another method, deleteFilesInDeleteList, in which the files appear to be deleted. It is, however, also an event filter, preDeleteFilesInDeleteList, triggered. So I created a filter code to undo the deletion, if certain conditions are met. The code looks as follows:

public int doFilter (workspace workspace, DataBinder dataBinder,
ExecutionContext executionContext) throw DataException,
ServiceException {}
BinderSnifferFilter.traceVerbose ("PreDeleteFilesFilter");
Vector v = SharedObjects.getOptList ("dontdelete");
If (v == null) {}
return 0;
}
String prevID = dataBinder.getLocal ("prevID");
If (v.contains (prevID)) {}
BinderSnifferFilter.traceVerbose (prevID + "is confined (-1)" ");
((Map) executionContext.getCachedObject ("lockedIDsList")) .put (prevID, "1");
Returns - 1;
}
BinderSnifferFilter.traceVerbose (prevID + "is not confined (0)" ");
return 0;
}

Tracing orders help to confirm that the filter returns-1, I also found this thread:Re: what event of java filter is to remove which mentions the updated object cache of lockedIDsList .

However, none of this seems to prevent deletion.

I also tried to find a class that adds the "" files to remove: ' message in the log, without success. "

Finally, I tried to lock the file by changing the owner/group/permissions in the file system. Curiously, the service has failed (the system could not read during CHECKIN), but in the end, the file has been deleted in any case.

have you tried to change binder.m_tempFiles? You should be able to change the vector before cleaning module is called.

Note: I have not tried...

Tags: Fusion Middleware

Similar Questions

  • Is there a way to recover the deleted files without using any software?

    Is there a way to recover the deleted files without using any software?

    Is there a way to recover the deleted files without using any software?

    # Software is necessary.

    First check the recylcl tray. If she isn't here, read the following:

    "Deleting" a file does not delete actually it brand just space be used. There are third-party programs that can sometimes recover deleted files. The problem is that the space used by the file is likely to be replaced very quickly, and this makes the unrecoverable file.

    So your chances of successfully recover this file are decent, if you try it again immediately after deleting it and quickly down. If you have used the computer since then (for example to read this answer and write that question), your chances may be very weak now.

    But if the file is large enough, it's still worth a try. Stop using the computer in question immediately, if you haven't done so already. Download an undelete program (in here is one: http://www3.telus.net/mikebike/RESTORATION.html but there are many other choice; do a search) on a friend's computer and bring it to you on a diskette, CD, or drive to the thumb.

    If that fails, your only recourse is to bring or send the drive to a professional file recovery company. This kind of service is very expensive and may or may not work in your case.

  • ___Is there a way to prevent the reopening of Ai CS5 documents after an accident?

    ___Is there a way to prevent the reopening of Ai CS5 documents after an accident?

    In my view, that a specific document is originally have plant, so after that AI crashes, he's trying to re - open the file when I restart There, and then it crashes again - to infinity!

    There is nothing I know which causes Illustrator automatically open a document after a crash. I would like to rebuild preferences (immediately after the start of Illustrator hold SHIFT, Option, command).

    Now, if your operating system crashes and you need to restart your computer, there is something on the mac.

    Also update Illustrator 15.02 If you wish.

  • is there a way to convert the GIF to JPEG files?

    I have WINDOWS XP. Is there a way to convert the GIF to JPEG files?  Thank you.

    Tuesday, June 26, 2012 21:13:13 + 0000, PSSLIV wrote:

    I have WINDOWS XP. Is there a way to convert the GIF to JPEG files?

    Almost any image editor can do, including Microsoft Paint, which
    provided with Windows. Just open the GIF file, and then do a save as, and
    Choose the type of JPG file.  There are also many third-party programs
    which can convert a chart type to another, including the GIF to JPG.
    Do a search on the web.

    Ken Blake, Microsoft MVP

  • Is there a way to prevent the iPad mail to use the former winners as suggestions. I want to limit suggestions for only groups and individuals in my database of contacts

    Is there a way to prevent mail iPad with former winners like suggestions for email addresses?

    I want to limit suggestions for only e-mail addresses in my database of contacts.

    You cannot stop suggestions. Usually, you can remove but I just checked and I don't know if it is still possible.

  • Is there a way to prevent the feature "save under" on a PDF document?

    I know how to password protect the document so it can't be printed and published, but "save under" always seems to be an option. Is there a way to set the PDF file, so it can be displayed only?

    Is not possible.

  • After cropping the photo, is there a way to prevent the function from the previous version?

    After cropping a photo, I don't want that it is original to never be recoverable. Is there a way to do this? I just discovered the tool of the previous version. Can it be disabled or the photo "permatized" sort?

    Thank you

    After cropping a photo, I don't want that it is original to never be recoverable. Is there a way to do this? I just discovered the tool of the previous version. Can it be disabled or the photo "permatized" sort?

    Thank you

    ====================================
    Library archives new copies of edition
    photos in a hidden just to file
    Revenant.

    If you deleted the originals of copies... back
    is not possible.

    Is the path to the folder on Vista systems:

    C:\Users\\Appdata\Local\Microsoft\
    Windows Gallery\Original photos

    It would be a hidden file, you may need to
    Change the following setting:

    Reach... Control Panel / folder Options / View tab.
    ... To check "Show the hidden files and folders" / apply / OK.

  • Is there a way to view the settings for a file that has changed?

    I know that you assume that to do all you edits in Lightroom, but sometimes, I have always used Bridge and make any changes. Is it possible to see which files have different changes, I get this error when I try and register in LR, but it doesn't tell me what files?

    I was watching my email and vinsolo have got the right answer, but removed his response. There is an arrow in the upper right corner with lines above him that indicate which file has been changed outside LR. It's so light and small on my computer that I missed. Thanks, Vinsolo!

  • Is there a way to prevent the continued actions?

    I have interactivity built into my slide that involves the user making a good amount of click. (The majority of them is ' increment $$variable$ $ by X ").

    But he keeps continues each time clicks learning which means that they move to the next slide until they are ready.

    I've already shifted the time "to pause after" so that the learner can do more than a few clicks before they resume, but ideally I want the learner to stay on the blade until they choose to pass or get the correct question.

    Any suggestions welcome!

    Thank you

    M

    P.S. I use 8 Captivate

    Maybe this post (there's also a link to a Youtube tutorial) may specify:

    Why choose Standard Simple action? -Captivate Blog

    Although this was written for COP6, everything is also valid for CP8

  • When changing the "browser.newtab.url" is there a way to prevent the update address bar?

    When I change "browser.newtab.url" to about: home and open a new tab, focus is set on the address bar, not the search box on the home page of firefox. The same thing happens if I change the url to google.com or another search engine. Is it possible to avoid this.

    This has been fixed in version 14 and more.

  • A way to prevent the first writing of file extension added to the XMP file names?

    Hello world

    I'm having a problem with the creation of sidecar XMP files that I hope you can help me with. I found that, as a general rule, the XMP sidecar files created in Adobe applications are named the same as the original file, that they are associated with, only with a different extension, for example add metadata about the file IMG1234. CR2 in Lightroom creates the file IMG1234.xmp . However, in Premiere Pro, adding metadata against CLIP1234. MXF creates one CLIP1234. MXF .xmp sidecar.

    We are wanting to use a dam at our office (Daminion) for all our assets (photos, Photoshop and Illustrator files and videos). Ideally, it uses XMP to manage metadata and can automatically recognize the XMP metadata created by Adobe applications - except metadata added by first. In this case, I have to manually remove the first extension in filenames sidecar created by first for Daminion to their affiliation with their corresponding video files. It is a royal pain and prevents any exchange of metadata without seam between the two programs.

    Is it possible to stop the Premiere Pro adds the extension of video to the XMP file format? No other work around?

    Thanks in advance!

    There is no setting for this in PP.

  • Is there a way to see the dimensions of a file?

    I sent a large number of printed material and must check the document dimensions of properties all the time.

    Is it possible to make in the IOS app?

    It would be great to see the size in mm somewhere.

    Hello

    Currently, Acrobat DC IOS doesn't have an option to view the properties of the document (including the dimensions of the document).  Sorry for the inconvenience.

    If you wish, you can submit a feature through the next page request.

    Adobe - feature request/Bug Report Form

    The product management team will take your request into consideration for a future release of Acrobat DC.

    Thank you for your inquiry.

  • Is there a maximum size or the limit of text file during storage and data transfer?

    HI -.

    We used WriteExtFile and AppendExtFile to store data in a CSV text file in a data folder in the same location as the executable files of Authorware.

    WriteExtFile ("data\\"^"Variable_Names.txt", Survey_Variable_Names)

    AppendExtFile ("data\\Survey_DATA.txt", Survey_Data)

    As a general rule, we always put our executable files on the hard disk of the computer (c) due to some issues we had with an incompatible network drive in the past.  Have the files on the C: drive, eliminated any network problem.  Our data has accumulated would be always stored on the C: drive as well.

    Now, we need to store a backup copy of the data on a server, on the C: drive.

    My question is: is there is a maximum file size that can be "read in" and then "written" using Authorware?

    My thought was to use ReadExtFile to read the content of the 'Survey_DATA.txt' file and use WriteExtFile to write these same data on a drive on the network, by adding the date and time at the end of the name of the file as a backup file.

    I used this logic, which is working to write on the "P": network drive

    WriteExtFile ("P:\\Survey_Project\\BackupData\\DATA_BACKUP_"^Backup_Date^"_"^Backup_Time^".txt", Survey_Backup_Data)

    Of course, the size of the original text on the C: drive file will continue to grow because "AppendExtFile" is used to add the data of every investigation file in the data file (CSV, each record on its own line).  If the size of the file we will read again (ReadExtFile) will also continue to grow.

    Is there a limit to what we can read in and then write back?

    Thank you!

    Scott

    My apologies, it has been a few years...

    CopyFile is a function that you can load the WinAPI.u32

    Once loaded, use it like this

    Success: = CopyFile (FileLocation ^ "Sourcefile.txt",)

    Destination ^ "DestinationFilename.txt") "

    Remember that you must include WinAPI.u32 with your packed files.

    Steve

  • Download my site on Adobe Business Catalyst and I noticed that it transforms all my text to images? Why does do that and is there a way to prevent it from happening?

    I don't mind Muse did this on my site downloading, but once my text becomes an image on my site, it creates a halo of light around my text makes it fuzzy. Is there a way to prevent the Muse to change my text in images?

    Hello

    In my opinion, you use system for text fonts in the site. I suggest that you use either secure Web fonts or self hosted options police.

    Please visit the links below to understand how to work with them.

    http://TV.Adobe.com/watch/learn-Adobe-Muse-cc/Web-safe-vs-nonweb-safe-fonts-in-Muse/

    Add web fonts self-hosted | Adobe Muse CC tutorials

    http://helpx.Adobe.com/Muse/using/typography.html

    Concerning

    Vivek

  • is there a way to send the contact information form to the constant contact email service

    I use constant contact email service. is there a way to link the form of contact information to this service?

    I don't use Constant content so I can't be specific, but if the Constant Contact provides you with the forms that you can integrate in your Web site then you can do this by using the object--> the tool Insert HTML code. But there is no way to do it with the standard format of Muse.

Maybe you are looking for

  • Unable to connect to wireless network - WiFi is not available

    Hello The usual problem I have is that I can see the wireless adapter but when I go to connect it tells me that the adapter is not available and to update the list. I also - when I can connect - the connection drop after a period of time. Any help pl

  • need to know how to get the password

    I created a log on for a friend on my laptop and when I did set a password I do not know how to find the password it doesn't let me do something the friends connect on the site because I am admin

  • No screen saver after logoff

    With Windows XP, after that I disconnected a screen saver would come on.  With Windows 7 I now notice that after I have my screen saver does not illuminate logoff.  Is there anyway to have this happen? Thank you Mike Stevens

  • ASA IPS Signature unsuccessfully URL

    I want to update the signatures of ASA IPS by proxy. What are the destination URL I need to allow my proxy?

  • EPUB Format reader?

    Does anyone know of a reader for EPUB files?   My local library uses this format for downloading e-books.    I see nothing in the APP store that suggests he might read this format.