avancement template + excel
This commit is contained in:
parent
f3a1407e00
commit
7ef810b391
14 changed files with 525 additions and 180 deletions
|
|
@ -0,0 +1,20 @@
|
|||
package org.chtijbug.kie.rest.backend;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
import javax.ws.rs.container.ContainerRequestContext;
|
||||
import javax.ws.rs.container.ContainerResponseContext;
|
||||
import javax.ws.rs.container.ContainerResponseFilter;
|
||||
import javax.ws.rs.ext.Provider;
|
||||
|
||||
@Provider
|
||||
public class CORSFilter implements ContainerResponseFilter {
|
||||
|
||||
@Override
|
||||
public void filter(final ContainerRequestContext requestContext,
|
||||
final ContainerResponseContext cres) throws IOException {
|
||||
cres.getHeaders().add("Allow", "GET, POST, PUT, DELETE, OPTIONS, HEAD");
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -400,14 +400,12 @@ public class PackageResource {
|
|||
return null;
|
||||
}
|
||||
|
||||
@PUT
|
||||
@POST
|
||||
@Path("{organizationalUnitName}/{projectName}/asset/{assetName}/source")
|
||||
@Consumes({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML, MediaType.TEXT_PLAIN})
|
||||
@Produces({MediaType.WILDCARD})
|
||||
public void updateAssetSource(
|
||||
@PathParam("organizationalUnitName") String organizationalUnitName, @PathParam("projectName") String projectName, @PathParam("assetName") String assetName, String content) {
|
||||
updateAssetContent(organizationalUnitName, projectName, assetName, content);
|
||||
|
||||
}
|
||||
|
||||
private void updateAssetContent(String organizationalUnitName, String projectName, String assetName, String content) {
|
||||
|
|
|
|||
Loading…
Add table
editor.link_modal.header
Reference in a new issue