Class HALResource<T>

java.lang.Object
org.springframework.hateoas.RepresentationModel<org.springframework.hateoas.EntityModel<T>>
org.springframework.hateoas.EntityModel<T>
org.dspace.app.rest.model.hateoas.HALResource<T>
Direct Known Subclasses:
AccessStatusResource, AuthenticationTokenResource, BrowseEntryResource, ContentReportSupportResource, DSpaceResource, ExternalSourceEntryResource, FacetConfigurationResource, FacetResultsResource, FacetsResource, HarvestedCollectionResource, IdentifiersResource, LicenseResource, PotentialDuplicateResource, ProcessFileTypesResource, RegistrationResource, RootResource, SearchConfigurationResource, SearchFacetEntryResource, SearchFacetValueResource, SearchResultEntryResource, SearchResultsResource, SearchSupportResource, StatisticsSupportResource, VocabularyEntryResource

public abstract class HALResource<T> extends org.springframework.hateoas.EntityModel<T>
The abstract, generic class for the HalResources
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final Map<String,Object>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    HALResource(T content)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.hateoas.EntityModel<T>
    add(org.springframework.hateoas.Link link)
     
    void
    embedResource(String rel, Object object)
     
     
    void
     

    Methods inherited from class org.springframework.hateoas.EntityModel

    equals, getContent, hashCode, of, of, of, toString

    Methods inherited from class org.springframework.hateoas.RepresentationModel

    add, add, addAllIf, addIf, getLink, getLink, getLinks, getLinks, getLinks, getRequiredLink, getRequiredLink, hasLink, hasLink, hasLinks, mapLink, mapLinkIf, removeLinks

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • HALResource

      public HALResource(T content)
  • Method Details

    • getEmbeddedResources

      public Map<String,Object> getEmbeddedResources()
    • embedResource

      public void embedResource(String rel, Object object)
    • setPageHeader

      public void setPageHeader(EmbeddedPageHeader page)
    • add

      public org.springframework.hateoas.EntityModel<T> add(org.springframework.hateoas.Link link)
      Overrides:
      add in class org.springframework.hateoas.RepresentationModel<org.springframework.hateoas.EntityModel<T>>