Class WorkEffortContentWrapper
java.lang.Object
org.apache.ofbiz.workeffort.content.WorkEffortContentWrapper
- All Implemented Interfaces:
ContentWrapper
WorkEffortContentWrapper; gets work effort content for display
-
Field Summary
Fields inherited from interface org.apache.ofbiz.content.content.ContentWrapper
CACHE_KEY_SEPARATOR
-
Constructor Summary
ConstructorDescriptionWorkEffortContentWrapper
(GenericValue workEffort, HttpServletRequest request) WorkEffortContentWrapper
(LocalDispatcher dispatcher, GenericValue workEffort, Locale locale, String mimeTypeId) -
Method Summary
Modifier and TypeMethodDescriptioninterface implementation(s)Get the most current content data by the defined typegetContent
(String contentId, boolean useCache, String encoderType) Gets content.getContent
(String contentId, String encoderType) Gets content.getContentId
(String contentTypeId) Get the ID from the most current content data by the defined typegetContentName
(String contentTypeId) Get the name of the most current content data by the defined typegetDataResourceId
(String contentTypeId) Gets data resource id.static GenericValue
getFirstWorkEffortContentByType
(String workEffortId, GenericValue workEffort, String workEffortContentTypeId, Delegator delegator, boolean cache) getFromDate
(String contentTypeId) Get the fromDate from teh most current content data by the defined typeGets list.getTypeDescription
(String contentTypeId) Gets type description.static void
getWorkEffortContentAsText
(String contentId, String workEffortId, GenericValue workEffort, String workEffortContentTypeId, Locale locale, String mimeTypeId, Delegator delegator, LocalDispatcher dispatcher, Writer outWriter) static void
getWorkEffortContentAsText
(String contentId, String workEffortId, GenericValue workEffort, String workEffortContentTypeId, Locale locale, String mimeTypeId, Delegator delegator, LocalDispatcher dispatcher, Writer outWriter, boolean cache) static String
getWorkEffortContentAsText
(GenericValue workEffort, String contentId, String workEffortContentTypeId, Locale locale, String mimeTypeId, Delegator delegator, LocalDispatcher dispatcher, boolean useCache, String encoderType) static String
getWorkEffortContentAsText
(GenericValue workEffort, String workEffortContentTypeId, Locale locale, String mimeTypeId, Delegator delegator, LocalDispatcher dispatcher, boolean useCache, String encoderType) static String
getWorkEffortContentAsText
(GenericValue workEffort, String workEffortContentTypeId, Locale locale, LocalDispatcher dispatcher, String encoderType) static String
getWorkEffortContentAsText
(GenericValue workEffort, String workEffortContentTypeId, HttpServletRequest request, String encoderType) getWorkEffortContentTextList
(GenericValue workEffort, String workEffortContentTypeId, Locale locale, String mimeTypeId, Delegator delegator, LocalDispatcher dispatcher) static WorkEffortContentWrapper
makeWorkEffortContentWrapper
(GenericValue workEffort, HttpServletRequest request)
-
Constructor Details
-
WorkEffortContentWrapper
public WorkEffortContentWrapper(LocalDispatcher dispatcher, GenericValue workEffort, Locale locale, String mimeTypeId) -
WorkEffortContentWrapper
-
-
Method Details
-
get
interface implementation(s) -
get
Get the most current content data by the defined type- Specified by:
get
in interfaceContentWrapper
- Parameters:
contentTypeId
- Type of content to return- Returns:
- String containing the content data
-
getContentId
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
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
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
Gets data resource id.- Parameters:
contentTypeId
- the content type id- Returns:
- the data resource id
-
getList
Gets list.- Parameters:
contentTypeId
- the content type id- Returns:
- the list
-
getTypeDescription
Gets type description.- Parameters:
contentTypeId
- the content type id- Returns:
- the type description
-
getContent
Gets content.- Parameters:
contentId
- the content iduseCache
- the use cacheencoderType
- the encoder type- Returns:
- the content
-
getContent
Gets content.- Parameters:
contentId
- the content idencoderType
- the encoder type- Returns:
- the content
-
getWorkEffortContentAsText
public static String getWorkEffortContentAsText(GenericValue workEffort, String workEffortContentTypeId, HttpServletRequest request, String encoderType) -
getWorkEffortContentAsText
public static String getWorkEffortContentAsText(GenericValue workEffort, String workEffortContentTypeId, Locale locale, LocalDispatcher dispatcher, String encoderType) -
getWorkEffortContentAsText
public static String getWorkEffortContentAsText(GenericValue workEffort, String workEffortContentTypeId, Locale locale, String mimeTypeId, Delegator delegator, LocalDispatcher dispatcher, boolean useCache, String encoderType) -
getWorkEffortContentAsText
public static String getWorkEffortContentAsText(GenericValue workEffort, String contentId, String workEffortContentTypeId, Locale locale, String mimeTypeId, Delegator delegator, LocalDispatcher dispatcher, boolean useCache, String encoderType) -
getWorkEffortContentAsText
public static void getWorkEffortContentAsText(String contentId, String workEffortId, GenericValue workEffort, String workEffortContentTypeId, Locale locale, String mimeTypeId, Delegator delegator, LocalDispatcher dispatcher, Writer outWriter) throws GeneralException, IOException - Throws:
GeneralException
IOException
-
getWorkEffortContentAsText
public static void getWorkEffortContentAsText(String contentId, String workEffortId, GenericValue workEffort, String workEffortContentTypeId, Locale locale, String mimeTypeId, Delegator delegator, LocalDispatcher dispatcher, Writer outWriter, boolean cache) throws GeneralException, IOException - Throws:
GeneralException
IOException
-
getWorkEffortContentTextList
public static List<String> getWorkEffortContentTextList(GenericValue workEffort, String workEffortContentTypeId, Locale locale, String mimeTypeId, Delegator delegator, LocalDispatcher dispatcher) throws GeneralException, IOException - Throws:
GeneralException
IOException
-
getFirstWorkEffortContentByType
public static GenericValue getFirstWorkEffortContentByType(String workEffortId, GenericValue workEffort, String workEffortContentTypeId, Delegator delegator, boolean cache) -
makeWorkEffortContentWrapper
public static WorkEffortContentWrapper makeWorkEffortContentWrapper(GenericValue workEffort, HttpServletRequest request)
-