Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Utils is now a singleton. DSpaceResource automatically adds links to …
…embedded resources
- Loading branch information
Showing
12 changed files
with
82 additions
and
71 deletions.
There are no files selected for viewing
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
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
5 changes: 3 additions & 2 deletions
5
...-spring-rest/src/main/java/org/dspace/app/rest/model/hateoas/BitstreamFormatResource.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
package org.dspace.app.rest.model.hateoas; | ||
|
||
import org.dspace.app.rest.model.BitstreamFormatRest; | ||
import org.dspace.app.rest.utils.Utils; | ||
|
||
@RelNameDSpaceResource(BitstreamFormatRest.NAME) | ||
public class BitstreamFormatResource extends DSpaceResource<BitstreamFormatRest> { | ||
public BitstreamFormatResource(BitstreamFormatRest bf) { | ||
super(bf); | ||
public BitstreamFormatResource(BitstreamFormatRest bf, Utils utils) { | ||
super(bf, utils); | ||
} | ||
} |
6 changes: 3 additions & 3 deletions
6
dspace-spring-rest/src/main/java/org/dspace/app/rest/model/hateoas/BitstreamResource.java
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
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
5 changes: 3 additions & 2 deletions
5
dspace-spring-rest/src/main/java/org/dspace/app/rest/model/hateoas/ItemResource.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
package org.dspace.app.rest.model.hateoas; | ||
|
||
import org.dspace.app.rest.model.ItemRest; | ||
import org.dspace.app.rest.utils.Utils; | ||
|
||
@RelNameDSpaceResource(ItemRest.NAME) | ||
public class ItemResource extends DSpaceResource<ItemRest> { | ||
public ItemResource(ItemRest item) { | ||
super(item); | ||
public ItemResource(ItemRest item, Utils utils) { | ||
super(item, utils); | ||
} | ||
} |
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
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
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
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
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
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