This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.sdl.webapp.main; | |
import com.sdl.dxa.DxaSpringInitialization; | |
import org.apache.coyote.http11.Http11NioProtocol; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import org.springframework.beans.factory.annotation.Autowired; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.sdl.webapp.main; | |
import com.sdl.dxa.DxaSpringInitialization; | |
import org.springframework.context.annotation.Configuration; | |
import org.springframework.context.annotation.Import; | |
@Import(DxaSpringInitialization.class) | |
@Configuration | |
public class SpringInitializer { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Project { | |
private int id; | |
private int projectGroupId; | |
private String name; | |
private String description; | |
public int getId() { | |
return id; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CompleteTaskStepRequestBody { | |
private int id; | |
private int transitionId; | |
private String comment; | |
public int getId() { | |
return id; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public enum AssetLocationType { | |
SOURCE, | |
TARGET, | |
SOURCE_TARGET | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CurrentTaskStep { | |
private int id; | |
private String name; | |
private String displayName; | |
private String type; | |
private String typeName; | |
private List<WorkflowTransition> workflowTransitions; | |
public int getId() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CreateProjectGroupResponse { | |
private String status; | |
private List<Response> response; | |
public String getStatus() { | |
return status; | |
} | |
public void setStatus(String status) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class FileUploadResponse { | |
private String name; | |
private String internalName; | |
private String fullName; | |
private String url; | |
private double size; | |
private long creationTime; | |
private boolean exists; | |
private File[] files; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static String getSecurityToken(String wsBaseUrl, String username, String password) throws IOException { | |
StringBuilder loginJson = new StringBuilder(); | |
loginJson.append("{"); | |
loginJson.append("\"username\":\"" + username + "\","); | |
loginJson.append("\"password\":\"" + password + "\""); | |
loginJson.append("}"); | |
HttpClient httpClient = HttpClientBuilder.create().build(); | |
HttpPost httpPostRequest = new HttpPost(wsBaseUrl + "/ws-api/v1/login"); | |
httpPostRequest.setHeader(new BasicHeader("Content-Type", "application/json")); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Uploads assets to WorldServer's Explorer (mounts) by posting to the "upload_assets" servlet. | |
* | |
* @param wsBaseUrl | |
* @param token | |
* @param explorerFolder | |
* @param inputFile | |
* @throws IOException | |
*/ | |
private void uploadAssetsToExplorer(String wsBaseUrl, String token, String explorerFolder, File inputFile) throws IOException { |
NewerOlder