Enum D2ViewFactory
- java.lang.Object
-
- java.lang.Enum<D2ViewFactory>
-
- com.emc.documentum.d2.core.resource.view.factory.D2ViewFactory
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<D2ViewFactory>
public enum D2ViewFactory extends java.lang.Enum<D2ViewFactory>
View factory to instantiate view instances for the serializable data.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends com.emc.documentum.rest.model.Linkable>
com.emc.documentum.rest.view.FeedableView<T>instFeedView(java.lang.Class controllerClazz, java.util.List<T> resultList, com.emc.documentum.rest.http.UriInfo uriInfo, java.lang.String repositoryName, java.lang.Boolean returnLinks, java.util.Map<java.lang.String,java.lang.Object> others)
Instantiate a view instance for the paged resource instances with argumentsstatic D2ViewFactory
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static D2ViewFactory[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final D2ViewFactory INSTANCE
-
-
Method Detail
-
values
public static D2ViewFactory[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (D2ViewFactory c : D2ViewFactory.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static D2ViewFactory valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
instFeedView
public <T extends com.emc.documentum.rest.model.Linkable> com.emc.documentum.rest.view.FeedableView<T> instFeedView(java.lang.Class controllerClazz, java.util.List<T> resultList, com.emc.documentum.rest.http.UriInfo uriInfo, java.lang.String repositoryName, java.lang.Boolean returnLinks, java.util.Map<java.lang.String,java.lang.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
-
-