cancel
Showing results for 
Search instead for 
Did you mean: 

Check out/in Javascript API

lista
Star Contributor
Star Contributor
Hi all,

I'm playing around with Check out/in functionalities, and what I have noticed is that while through Alfresco I have a couple of options (example is "Check in changes and keep file checked out "), API does not directly support them. Is this something that is 'left out' on purpose, or is it not there since I'm able to do this by doing check in, and then check out, one after another?

Thank you,
Lista.
2 REPLIES 2

gyro_gearless
Champ in-the-making
Champ in-the-making
Hmmm, have not done this in Javascript, but in Java world there is a checkin() method with this signature:

public interface CheckOutCheckInService 
{

   public NodeRef checkin(
         NodeRef workingCopyNodeRef,
         Map<String,Serializable> versionProperties,
         String contentUrl,
         boolean keepCheckedOut);
}


which should do what you want? Other options (version description, major/minor version update) may be contolled by passing appropriate versionProperties.

HTH
Gyro

lista
Star Contributor
Star Contributor
Here's the Javascript API, obviously parts are left out.
I guess in case of really needing the 'keep checked out feature', I'll switch to Java backed web scripts.

Thank you for the answer,
Lista.