Class D2AbstractController

java.lang.Object
com.emc.documentum.rest.controller.AbstractController
com.emc.documentum.d2.core.resource.controller.D2AbstractController

public class D2AbstractController extends com.emc.documentum.rest.controller.AbstractController
The abstract class for resource controllers.
  • Field Summary

    Fields inherited from class com.emc.documentum.rest.controller.AbstractController

    POST_FROM_COLLECTION_MAP
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <T extends com.emc.documentum.rest.model.Linkable>
    com.emc.documentum.rest.model.AtomFeed
    getRenderedFeed(String repositoryName, List<T> resultList, boolean links, boolean inline, com.emc.documentum.rest.http.UriInfo uriInfo, Map<String,Object> others)
    Get the rendered atom feed from the view definition.

    Methods inherited from class com.emc.documentum.rest.controller.AbstractController

    getRenderedObject, getRenderedPage, initBinder, validateCollectionNotAllowed, validateOnlyPageItemsPerPageCollectionAllowed, validatePaginationNotAllowed, validateTargetControllerAccessible

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • D2AbstractController

      public D2AbstractController()
  • Method Details

    • getRenderedFeed

      public <T extends com.emc.documentum.rest.model.Linkable> com.emc.documentum.rest.model.AtomFeed getRenderedFeed(String repositoryName, List<T> resultList, boolean links, boolean inline, com.emc.documentum.rest.http.UriInfo uriInfo, Map<String,Object> others)
      Get the rendered atom feed from the view definition. The view definition classes are loaded from D2ViewFactory. The default view definition can be annotated on the controller definition by ResourceViewBinding.
      Type Parameters:
      T - serializable model data
      Parameters:
      repositoryName - repository name
      resultList - the list of items
      links - indicate whether to return links
      inline - whether embed the entry in the feed
      uriInfo - uri info
      others - other parameters
      Returns:
      the rendered atom feed for list of objects