Class 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <T extends com.emc.documentum.rest.model.Linkable>
      com.emc.documentum.rest.model.AtomFeed
      getRenderedFeed​(java.lang.String repositoryName, java.util.List<T> resultList, boolean links, boolean inline, com.emc.documentum.rest.http.UriInfo uriInfo, java.util.Map<java.lang.String,​java.lang.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 Detail

      • D2AbstractController

        public D2AbstractController()
    • Method Detail

      • getRenderedFeed

        public <T extends com.emc.documentum.rest.model.Linkable> com.emc.documentum.rest.model.AtomFeed getRenderedFeed​(java.lang.String repositoryName,
                                                                                                                         java.util.List<T> resultList,
                                                                                                                         boolean links,
                                                                                                                         boolean inline,
                                                                                                                         com.emc.documentum.rest.http.UriInfo uriInfo,
                                                                                                                         java.util.Map<java.lang.String,​java.lang.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