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
-
Method Summary
Modifier and TypeMethodDescription<T extends com.emc.documentum.rest.model.Linkable>
com.emc.documentum.rest.model.AtomFeedgetRenderedFeed
(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
-
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 fromD2ViewFactory
. The default view definition can be annotated on the controller definition byResourceViewBinding
.- Type Parameters:
T
- serializable model data- Parameters:
repositoryName
- repository nameresultList
- the list of itemslinks
- indicate whether to return linksinline
- whether embed the entry in the feeduriInfo
- uri infoothers
- other parameters- Returns:
- the rendered atom feed for list of objects
-