Enum Class D2ViewFactory

java.lang.Object
java.lang.Enum<D2ViewFactory>
com.emc.documentum.d2.core.resource.view.factory.D2ViewFactory
All Implemented Interfaces:
Serializable, Comparable<D2ViewFactory>, Constable

public enum D2ViewFactory extends Enum<D2ViewFactory>
View factory to instantiate view instances for the serializable data.
  • Enum Constant Details

  • Method Details

    • values

      public static D2ViewFactory[] 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

      public static D2ViewFactory valueOf(String name)
      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 name
      NullPointerException - 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 by SerializableType
      Parameters:
      controllerClazz - the controller class
      resultList - the list of resource instances for a feed
      uriInfo - URI info of the request, this is typically obtained from the resource controller
      repositoryName - repository name
      returnLinks - indicates whether to return links for this resource model instance
      others - other parameters
      Returns:
      the feedable view instance