Enum 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 arguments
      static 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.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

    • 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 name
        java.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 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