Compare commits
8 Commits
v1.1.3-acs
...
v1.1.6-acs
Author | SHA1 | Date | |
---|---|---|---|
ac59ee7960 | |||
d0afee96da | |||
8f4370a55f | |||
de86a1e01e | |||
e610752bc1 | |||
e07a8f9c0e | |||
7f495b6c76 | |||
41c7bd062b |
2
pom.xml
2
pom.xml
@@ -4,7 +4,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>com.inteligr8.alfresco</groupId>
|
||||
<artifactId>acs-public-rest-api</artifactId>
|
||||
<version>1.1.3</version>
|
||||
<version>1.1.6</version>
|
||||
<name>Alfresco Content Services ReST API Client for Java</name>
|
||||
|
||||
<properties>
|
||||
|
@@ -25,7 +25,7 @@ public class AcsClientCxfImpl extends ClientCxfImpl {
|
||||
/**
|
||||
* This constructor is for Spring use.
|
||||
*/
|
||||
AcsClientCxfImpl() {
|
||||
protected AcsClientCxfImpl() {
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -25,7 +25,7 @@ public class AcsClientJerseyImpl extends ClientJerseyImpl {
|
||||
/**
|
||||
* This constructor is for Spring use.
|
||||
*/
|
||||
AcsClientJerseyImpl() {
|
||||
protected AcsClientJerseyImpl() {
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -25,7 +25,7 @@ public class AcsPublicRestApiCxfImpl extends AcsPublicRestApi {
|
||||
/**
|
||||
* This constructor is for Spring use.
|
||||
*/
|
||||
AcsPublicRestApiCxfImpl() {
|
||||
protected AcsPublicRestApiCxfImpl() {
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -25,7 +25,7 @@ public class AcsPublicRestApiJerseyImpl extends AcsPublicRestApi {
|
||||
/**
|
||||
* This constructor is for Spring use.
|
||||
*/
|
||||
AcsPublicRestApiJerseyImpl() {
|
||||
protected AcsPublicRestApiJerseyImpl() {
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -8,8 +8,10 @@ import javax.ws.rs.Path;
|
||||
import javax.ws.rs.PathParam;
|
||||
import javax.ws.rs.Produces;
|
||||
import javax.ws.rs.QueryParam;
|
||||
import javax.ws.rs.core.MediaType;
|
||||
|
||||
import org.apache.cxf.jaxrs.ext.multipart.Attachment;
|
||||
import org.apache.cxf.jaxrs.ext.multipart.Multipart;
|
||||
|
||||
import com.inteligr8.alfresco.acs.model.Error;
|
||||
import com.inteligr8.alfresco.acs.model.NodeBodyCreate;
|
||||
@@ -26,8 +28,8 @@ public interface NodesCxfApi {
|
||||
|
||||
@POST
|
||||
@Path("/nodes/{nodeId}/children")
|
||||
@Consumes({ "application/json", "multipart/form-data" })
|
||||
@Produces({ "application/json" })
|
||||
@Consumes({ MediaType.MULTIPART_FORM_DATA })
|
||||
@Produces({ MediaType.APPLICATION_JSON })
|
||||
@ApiOperation(value = "Create a node", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 201, message = "Successful response", response = NodeEntry.class),
|
||||
@@ -43,12 +45,12 @@ public interface NodesCxfApi {
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public NodeEntry createNode(
|
||||
@PathParam("nodeId") String nodeId,
|
||||
NodeBodyCreate nodeBodyCreate,
|
||||
@Multipart NodeBodyCreate nodeBodyCreate,
|
||||
@QueryParam("autoRename") Boolean autoRename,
|
||||
@QueryParam("majorVersion") Boolean majorVersion,
|
||||
@QueryParam("versioningEnabled") Boolean versioningEnabled,
|
||||
@QueryParam("include") List<String> include,
|
||||
@QueryParam("fields") List<String> fields,
|
||||
List<Attachment> attachments);
|
||||
@Multipart(value = "filedata", required = false) Attachment attachment);
|
||||
|
||||
}
|
||||
|
@@ -9,6 +9,7 @@ import javax.ws.rs.Path;
|
||||
import javax.ws.rs.PathParam;
|
||||
import javax.ws.rs.Produces;
|
||||
import javax.ws.rs.QueryParam;
|
||||
import javax.ws.rs.core.MediaType;
|
||||
|
||||
import org.glassfish.jersey.media.multipart.FormDataContentDisposition;
|
||||
import org.glassfish.jersey.media.multipart.FormDataParam;
|
||||
@@ -28,8 +29,8 @@ public interface NodesJerseyApi {
|
||||
|
||||
@POST
|
||||
@Path("/nodes/{nodeId}/children")
|
||||
@Consumes({ "application/json", "multipart/form-data" })
|
||||
@Produces({ "application/json" })
|
||||
@Consumes({ MediaType.MULTIPART_FORM_DATA })
|
||||
@Produces({ MediaType.APPLICATION_JSON })
|
||||
@ApiOperation(value = "Create a node", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 201, message = "Successful response", response = NodeEntry.class),
|
||||
|
@@ -13,7 +13,7 @@ public class ConstraintInfo {
|
||||
private String type;
|
||||
|
||||
@JsonProperty
|
||||
private List<Map<String, String>> parameters;
|
||||
private List<Map<String, Object>> parameters;
|
||||
|
||||
public String getType() {
|
||||
return type;
|
||||
@@ -23,11 +23,11 @@ public class ConstraintInfo {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public List<Map<String, String>> getParameters() {
|
||||
public List<Map<String, Object>> getParameters() {
|
||||
return parameters;
|
||||
}
|
||||
|
||||
public void setParameters(List<Map<String, String>> parameters) {
|
||||
public void setParameters(List<Map<String, Object>> parameters) {
|
||||
this.parameters = parameters;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user