Enum Class D2ViewFactory
- All Implemented Interfaces:
Serializable
,Comparable<D2ViewFactory>
,Constable
View factory to instantiate view instances for the serializable data.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescription<T extends com.emc.documentum.rest.model.Linkable>
com.emc.documentum.rest.view.FeedableView<T>instFeedView
(Class controllerClazz, List<T> resultList, com.emc.documentum.rest.http.UriInfo uriInfo, String repositoryName, Boolean returnLinks, Map<String, Object> others) Instantiate a view instance for the paged resource instances with argumentsstatic D2ViewFactory
Returns the enum constant of this class with the specified name.static D2ViewFactory[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
instFeedView
public <T extends com.emc.documentum.rest.model.Linkable> com.emc.documentum.rest.view.FeedableView<T> instFeedView(Class controllerClazz, List<T> resultList, com.emc.documentum.rest.http.UriInfo uriInfo, String repositoryName, Boolean returnLinks, Map<String, Object> others) Instantiate a view instance for the paged resource instances with arguments- Type Parameters:
T
- the resource model class annotated bySerializableType
- Parameters:
controllerClazz
- the controller classresultList
- the list of resource instances for a feeduriInfo
- URI info of the request, this is typically obtained from the resource controllerrepositoryName
- repository namereturnLinks
- indicates whether to return links for this resource model instanceothers
- other parameters- Returns:
- the feedable view instance
-