DS-3533 Include optional links by default

This commit is contained in:
Chris Wilper
2020-01-29 13:19:27 -05:00
parent 7637857505
commit e331d5557e

View File

@@ -12,7 +12,8 @@ import org.dspace.app.rest.model.RestModel;
import org.dspace.app.rest.model.hateoas.HALResource; import org.dspace.app.rest.model.hateoas.HALResource;
/** /**
* Abstract base class for projections. By default each method has no effect unless overridden by a subclass. * Abstract base class for projections. By default no transformation is done, optional embeds are not included,
* and optional links are included.
*/ */
public abstract class AbstractProjection implements Projection { public abstract class AbstractProjection implements Projection {
@@ -38,6 +39,6 @@ public abstract class AbstractProjection implements Projection {
@Override @Override
public boolean allowLinking(HALResource halResource, LinkRest linkRest) { public boolean allowLinking(HALResource halResource, LinkRest linkRest) {
return false; return true;
} }
} }