Skip to content

Commit

Permalink
Expose resourceId
Browse files Browse the repository at this point in the history
a BE part of #1127
  • Loading branch information
kosarko committed Nov 14, 2024
1 parent 589a19d commit ce6b8ca
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public HandleRest convert(Handle modelObject, Projection projection) {
handleRest.setHandle(modelObject.getHandle());
handleRest.setResourceTypeID(modelObject.getResourceTypeId());
handleRest.setUrl(modelObject.getUrl());
handleRest.setResourceId(modelObject.getDSpaceObject().getID());
return handleRest;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
*/
package org.dspace.app.rest.model;

import java.util.UUID;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import org.dspace.app.rest.RestResourceController;
Expand All @@ -29,6 +31,8 @@ public class HandleRest extends BaseObjectRest<Integer> {

private String url;

private UUID resourceId;

public String getHandle() {
return handle;
}
Expand All @@ -41,6 +45,10 @@ public String getUrl() {
return url;
}

public UUID getResourceId() {
return resourceId;
}

public void setHandle(String handle) {
this.handle = handle;
}
Expand All @@ -53,6 +61,11 @@ public void setUrl(String url) {
this.url = url;
}

public void setResourceId(UUID resourceId) {
this.resourceId = resourceId;

}

@Override
public String getCategory() {
return CATEGORY;
Expand Down

0 comments on commit ce6b8ca

Please sign in to comment.