Class PutCommand
- java.lang.Object
-
- org.exoplatform.services.jcr.webdav.command.PutCommand
-
public class PutCommand extends Object
Created by The eXo Platform SAS.- Version:
- $Id: $
- Author:
- Vitaly Guly - gavrikvetal@gmail.com
-
-
Constructor Summary
Constructors Constructor Description PutCommand(NullResourceLocksHolder nullResourceLocks, javax.ws.rs.core.UriBuilder uriBuilder, MimeTypeRecognizer mimeTypeRecognizer)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Responseput(javax.jcr.Session session, String path, InputStream inputStream, String fileNodeType, String contentNodeType, List<String> mixins, String updatePolicyType, String autoVersion, List<String> tokens)Webdav Put method implementation.javax.ws.rs.core.Responseput(javax.jcr.Session session, String path, InputStream inputStream, String fileNodeType, String contentNodeType, List<String> mixins, List<String> tokens, javax.ws.rs.core.MultivaluedMap<String,String> allowedAutoVersionPath)Webdav Put method implementation.
-
-
-
Constructor Detail
-
PutCommand
public PutCommand(NullResourceLocksHolder nullResourceLocks, javax.ws.rs.core.UriBuilder uriBuilder, MimeTypeRecognizer mimeTypeRecognizer)
Constructor.- Parameters:
nullResourceLocks- resource locks.uriBuilder- - provides data used in 'location' headermimeTypeRecognizer- - provides mime-type recognizer
-
-
Method Detail
-
put
public javax.ws.rs.core.Response put(javax.jcr.Session session, String path, InputStream inputStream, String fileNodeType, String contentNodeType, List<String> mixins, String updatePolicyType, String autoVersion, List<String> tokens)Webdav Put method implementation.- Parameters:
session- current sessionpath- resource pathinputStream- stream that contains resource contentfileNodeType- the node type of file nodecontentNodeType- the node type of contentmixins- the list of mixinsupdatePolicyType- update policytokens- tokens- Returns:
- the instance of javax.ws.rs.core.Response
-
put
public javax.ws.rs.core.Response put(javax.jcr.Session session, String path, InputStream inputStream, String fileNodeType, String contentNodeType, List<String> mixins, List<String> tokens, javax.ws.rs.core.MultivaluedMap<String,String> allowedAutoVersionPath)Webdav Put method implementation.- Parameters:
session- current sessionpath- resource pathinputStream- stream that contains resource contentfileNodeType- the node type of file nodecontentNodeType- the node type of contentmixins- the list of mixinstokens- tokensallowedAutoVersionPath-- Returns:
- the instance of javax.ws.rs.core.Response
-
-