Check out/in Javascript API

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2010 07:45 AM
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.
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.
Labels:
- Labels:
-
Archive
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2010 08:48 AM
Hmmm, have not done this in Javascript, but in Java world there is a checkin() method with this signature:
which should do what you want? Other options (version description, major/minor version update) may be contolled by passing appropriate versionProperties.
HTH
Gyro
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

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2010 03:12 AM
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.
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.
