Skip to content

Commit

Permalink
additional endpoints for getting and updating a documents metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
j-dimension committed Sep 27, 2024
1 parent b1c5ea8 commit 8935d13
Show file tree
Hide file tree
Showing 4 changed files with 134 additions and 32 deletions.
Binary file modified j-lawyer-client/lib/j-lawyer-cloud/j-lawyer-cloud.jar
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -667,6 +667,7 @@ You should also get your employer (if you work as a programmer) or school,
import javax.ws.rs.core.Response;
import org.jlawyer.io.rest.v1.pojo.RestfulCaseV1;
import org.jlawyer.io.rest.v1.pojo.RestfulDocumentContentV1;
import org.jlawyer.io.rest.v1.pojo.RestfulDocumentV1;
import org.jlawyer.io.rest.v1.pojo.RestfulPartyV1;

/**
Expand All @@ -690,6 +691,7 @@ public interface CasesEndpointLocalV1 {
Response getCaseDocumentsInTrash(String id);

Response getDocumentContent(String id);
Response getDocument(String id);

Response getDueDates(String id);

Expand All @@ -698,6 +700,7 @@ public interface CasesEndpointLocalV1 {
Response createDocument(RestfulDocumentContentV1 document);

Response updateDocument(RestfulDocumentContentV1 document);
Response updateDocument(RestfulDocumentV1 document);

Response deleteDocument(String id);

Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ includes interface definition files associated with source files for
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
doc) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
Expand Down Expand Up @@ -261,7 +261,7 @@ conveying of source, or (2) access to copy the
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
doc) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Expand Down Expand Up @@ -362,7 +362,7 @@ add to a covered work, you may (if authorized by the copyright holders of
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
doc) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
Expand Down Expand Up @@ -663,29 +663,48 @@ You should also get your employer (if you work as a programmer) or school,
*/
package org.jlawyer.io.rest.v1.pojo;

import com.jdimension.jlawyer.persistence.ArchiveFileDocumentsBean;
import java.util.Date;

/**
*
* @author jens
*/
public class RestfulDocumentV1 {
private String id=null;
private String externalId=null;
private String name=null;
private Date creationDate=null;
private Date changeDate=null;
private long size=0l;
private boolean favorite=false;
protected String folderId=null;
protected long version=1l;
protected int highlight1=-1;
protected int highlight2=-1;

private String id = null;
private String externalId = null;
private String name = null;
private Date creationDate = null;
private Date changeDate = null;
private long size = 0l;
private boolean favorite = false;
protected String folderId = null;
protected long version = 1l;
protected int highlight1 = -1;
protected int highlight2 = -1;

public RestfulDocumentV1() {
}

public static RestfulDocumentV1 fromDocumentsBean(ArchiveFileDocumentsBean d) {
RestfulDocumentV1 doc = new RestfulDocumentV1();
doc.setId(d.getId());
doc.setExternalId(d.getExternalId());
doc.setVersion(d.getVersion());
doc.setName(d.getName());
doc.setCreationDate(d.getCreationDate());
doc.setChangeDate(d.getChangeDate());
doc.setFavorite(d.isFavorite());
doc.setSize(d.getSize());
doc.setHighlight1(d.getHighlight1());
doc.setHighlight2(d.getHighlight2());
if (d.getFolder() != null) {
doc.setFolderId(d.getFolder().getId());
}
return doc;
}

/**
* @return the id
*/
Expand Down Expand Up @@ -839,7 +858,5 @@ public String getExternalId() {
public void setExternalId(String externalId) {
this.externalId = externalId;
}




}

0 comments on commit 8935d13

Please sign in to comment.