Class WorkEffortContentWrapper

  • All Implemented Interfaces:
    ContentWrapper

    public class WorkEffortContentWrapper
    extends java.lang.Object
    implements ContentWrapper
    WorkEffortContentWrapper; gets work effort content for display
    • Field Detail

      • module

        public static final java.lang.String module
      • CACHE_KEY_SEPARATOR

        public static final java.lang.String CACHE_KEY_SEPARATOR
        See Also:
        Constant Field Values
      • locale

        protected java.util.Locale locale
      • mimeTypeId

        protected java.lang.String mimeTypeId
    • Constructor Detail

      • WorkEffortContentWrapper

        public WorkEffortContentWrapper​(LocalDispatcher dispatcher,
                                        GenericValue workEffort,
                                        java.util.Locale locale,
                                        java.lang.String mimeTypeId)
      • WorkEffortContentWrapper

        public WorkEffortContentWrapper​(GenericValue workEffort,
                                        javax.servlet.http.HttpServletRequest request)
    • Method Detail

      • get

        public java.lang.String get​(java.lang.String workEffortContentId,
                                    boolean useCache,
                                    java.lang.String encoderType)
      • get

        public StringUtil.StringWrapper get​(java.lang.String contentTypeId,
                                            java.lang.String encoderType)
        Get the most current content data by the defined type
        Specified by:
        get in interface ContentWrapper
        Parameters:
        contentTypeId - Type of content to return
        Returns:
        String containing the content data
      • getContentId

        public java.lang.String getContentId​(java.lang.String contentTypeId)
        Get the ID from the most current content data by the defined type
        Parameters:
        contentTypeId - Type of content to return
        Returns:
        String containing the contentId
      • getContentName

        public java.lang.String getContentName​(java.lang.String contentTypeId)
        Get the name of the most current content data by the defined type
        Parameters:
        contentTypeId - Type of content to return
        Returns:
        String containing the name of the content record
      • getFromDate

        public java.sql.Timestamp getFromDate​(java.lang.String contentTypeId)
        Get the fromDate from teh most current content data by the defined type
        Parameters:
        contentTypeId - Type of content to return
        Returns:
        Timestamp of the fromDate field for this content type
      • getDataResourceId

        public java.lang.String getDataResourceId​(java.lang.String contentTypeId)
      • getList

        public java.util.List<java.lang.String> getList​(java.lang.String contentTypeId)
      • getTypeDescription

        public java.lang.String getTypeDescription​(java.lang.String contentTypeId)
      • getContent

        public java.lang.String getContent​(java.lang.String contentId,
                                           boolean useCache,
                                           java.lang.String encoderType)
      • getContent

        public java.lang.String getContent​(java.lang.String contentId,
                                           java.lang.String encoderType)
      • getWorkEffortContentAsText

        public static java.lang.String getWorkEffortContentAsText​(GenericValue workEffort,
                                                                  java.lang.String workEffortContentTypeId,
                                                                  javax.servlet.http.HttpServletRequest request,
                                                                  java.lang.String encoderType)
      • getWorkEffortContentAsText

        public static java.lang.String getWorkEffortContentAsText​(GenericValue workEffort,
                                                                  java.lang.String workEffortContentTypeId,
                                                                  java.util.Locale locale,
                                                                  LocalDispatcher dispatcher,
                                                                  java.lang.String encoderType)
      • getWorkEffortContentAsText

        public static java.lang.String getWorkEffortContentAsText​(GenericValue workEffort,
                                                                  java.lang.String workEffortContentTypeId,
                                                                  java.util.Locale locale,
                                                                  java.lang.String mimeTypeId,
                                                                  Delegator delegator,
                                                                  LocalDispatcher dispatcher,
                                                                  boolean useCache,
                                                                  java.lang.String encoderType)
      • getWorkEffortContentAsText

        public static java.lang.String getWorkEffortContentAsText​(GenericValue workEffort,
                                                                  java.lang.String contentId,
                                                                  java.lang.String workEffortContentTypeId,
                                                                  java.util.Locale locale,
                                                                  java.lang.String mimeTypeId,
                                                                  Delegator delegator,
                                                                  LocalDispatcher dispatcher,
                                                                  boolean useCache,
                                                                  java.lang.String encoderType)
      • getWorkEffortContentAsText

        public static void getWorkEffortContentAsText​(java.lang.String contentId,
                                                      java.lang.String workEffortId,
                                                      GenericValue workEffort,
                                                      java.lang.String workEffortContentTypeId,
                                                      java.util.Locale locale,
                                                      java.lang.String mimeTypeId,
                                                      Delegator delegator,
                                                      LocalDispatcher dispatcher,
                                                      java.io.Writer outWriter)
                                               throws GeneralException,
                                                      java.io.IOException
        Throws:
        GeneralException
        java.io.IOException
      • getWorkEffortContentAsText

        public static void getWorkEffortContentAsText​(java.lang.String contentId,
                                                      java.lang.String workEffortId,
                                                      GenericValue workEffort,
                                                      java.lang.String workEffortContentTypeId,
                                                      java.util.Locale locale,
                                                      java.lang.String mimeTypeId,
                                                      Delegator delegator,
                                                      LocalDispatcher dispatcher,
                                                      java.io.Writer outWriter,
                                                      boolean cache)
                                               throws GeneralException,
                                                      java.io.IOException
        Throws:
        GeneralException
        java.io.IOException
      • getWorkEffortContentTextList

        public static java.util.List<java.lang.String> getWorkEffortContentTextList​(GenericValue workEffort,
                                                                                    java.lang.String workEffortContentTypeId,
                                                                                    java.util.Locale locale,
                                                                                    java.lang.String mimeTypeId,
                                                                                    Delegator delegator,
                                                                                    LocalDispatcher dispatcher)
                                                                             throws GeneralException,
                                                                                    java.io.IOException
        Throws:
        GeneralException
        java.io.IOException
      • getFirstWorkEffortContentByType

        public static GenericValue getFirstWorkEffortContentByType​(java.lang.String workEffortId,
                                                                   GenericValue workEffort,
                                                                   java.lang.String workEffortContentTypeId,
                                                                   Delegator delegator,
                                                                   boolean cache)