I used Spring with this service and it is oki:
private CheckOutCheckInService checkOutCheckInService;
But now I get into troubles… it is not possible to create a working copy of my node (the xml file) in my system? To use the method checkout I need to give a nodeRef for the working copy but I guess I cannot give a nodeRef for a xml file in my system (I would like to copy it in my WEBINF of WebClient for example)?
* @param nodeRef a reference to the node to checkout
* @param destinationParentNodeRef the destination node reference for the working
* copy
* @param destinationAssocTypeQName the destination child assoc type for the working
*copy
* @param destinationAssocQName the destination child assoc qualified name for
*the working copy
* @return node reference to the created working copy
*/
public NodeRef checkout(
NodeRef nodeRef,
NodeRef destinationParentNodeRef,
QName destinationAssocTypeQName,
QName destinationAssocQName);