Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pd 249428 #828

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions blob/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -234,5 +234,10 @@
<artifactId>jersey-client</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.glassfish</groupId>
<artifactId>javax.json</artifactId>
<version>1.0.4</version>
</dependency>
</dependencies>
</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
package com.bazaarvoice.emodb.blob.api;

public class Attributes {
private String client;
private String contentType;
private String legacyInternalId;
private String platformclient;
private String size;
private String type;

public Attributes(String client, String contentType, String legacyInternalId, String platformclient, String size, String type) {
this.client = client;
this.contentType = contentType;
this.legacyInternalId = legacyInternalId;
this.platformclient = platformclient;
this.size = size;
this.type = type;
}

public String getClient() {
return client;
}

public void setClient(String client) {
this.client = client;
}

public String getContentType() {
return contentType;
}

public void setContentType(String contentType) {
this.contentType = contentType;
}

public String getLegacyInternalId() {
return legacyInternalId;
}

public void setLegacyInternalId(String legacyInternalId) {
this.legacyInternalId = legacyInternalId;
}

public String getPlatformclient() {
return platformclient;
}

public void setPlatformclient(String platformclient) {
this.platformclient = platformclient;
}

public String getSize() {
return size;
}

public void setSize(String size) {
this.size = size;
}

public String getType() {
return type;
}

public void setType(String type) {
this.type = type;
}

@Override
public String toString() {
return "{" +
"\"client\": \"" + client + "\"" +
", \"contentType\": \"" + contentType + "\"" +
", \"legacyInternalId\": \"" + legacyInternalId + "\"" +
", \"platformclient\": \"" + platformclient + "\"" +
", \"size\": \"" + size + "\"" +
", \"type\": \"" + type + "\"" +
"}";
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
package com.bazaarvoice.emodb.blob.api;

public class BlobAttributes {
private String id;
private String timestamp;
private long length;
private String md5;
private String sha1;
private Attributes attributes;

public BlobAttributes(String id, String timestamp, long length, String md5, String sha1, Attributes attributes) {
this.id = id;
this.timestamp = timestamp;
this.length = length;
this.md5 = md5;
this.sha1 = sha1;
this.attributes = attributes;
}

public String getId() {
return id;
}

public void setId(String id) {
this.id = id;
}

public String getTimestamp() {
return timestamp;
}

public void setTimestamp(String timestamp) {
this.timestamp = timestamp;
}

public long getLength() {
return length;
}

public void setLength(long length) {
this.length = length;
}

public String getMd5() {
return md5;
}

public void setMd5(String md5) {
this.md5 = md5;
}

public String getSha1() {
return sha1;
}

public void setSha1(String sha1) {
this.sha1 = sha1;
}

public Attributes getAttributes() {
return attributes;
}

public void setAttributes(Attributes attributes) {
this.attributes = attributes;
}

@Override
public String toString() {
return "{" +
"\"id\": \"" + id + "\"" +
", \"timestamp\": \"" + timestamp + "\"" +
", \"length\": \"" + length + "\"" +
", \"md5\": \"" + md5 + "\"" +
", \"sha1\": \"" + sha1 + "\"" +
", \"attributes\": " + attributes +
"}";
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package com.bazaarvoice.emodb.blob.api;

public class TenantRequest {

private String tenantName;

public TenantRequest(String tenantName) {
this.tenantName = tenantName;
}

public String getTenantName() {
return tenantName;
}

public void setTenantName(String tenantName) {
this.tenantName = tenantName;
}

@Override
public String toString() {
return "{\"tenantName\":\"" + tenantName + "\"}";
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
package com.bazaarvoice.emodb.blob.api;

public class UploadByteRequestBody {
private String base64;
private String tenantName;
private BlobAttributes blobAttributes;

public UploadByteRequestBody(String base64, String tenantName, BlobAttributes blobAttributes) {
this.base64 = base64;
this.tenantName = tenantName;
this.blobAttributes = blobAttributes;
}

public String getBase64() {
return base64;
}

public void setBase64(String base64) {
this.base64 = base64;
}

public String getTenantName() {
return tenantName;
}

public void setTenantName(String tenantName) {
this.tenantName = tenantName;
}

public BlobAttributes getBlobAttributes() {
return blobAttributes;
}

public void setBlobAttributes(BlobAttributes blobAttributes) {
this.blobAttributes = blobAttributes;
}

@Override
public String toString() {
return "{" +
"\"base64\": \"" + base64 + "\"" +
", \"tenantName\": \"" + tenantName + "\"" +
", \"blobAttributes\": " + blobAttributes +
"}";
}
}
Loading