Class WorkEffortContentWrapper
- java.lang.Object
-
- org.apache.ofbiz.workeffort.content.WorkEffortContentWrapper
-
- All Implemented Interfaces:
ContentWrapper
public class WorkEffortContentWrapper extends java.lang.Object implements ContentWrapper
WorkEffortContentWrapper; gets work effort content for display
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CACHE_KEY_SEPARATOR
protected LocalDispatcher
dispatcher
protected java.util.Locale
locale
protected java.lang.String
mimeTypeId
static java.lang.String
module
protected GenericValue
workEffort
-
Constructor Summary
Constructors Constructor Description WorkEffortContentWrapper(GenericValue workEffort, javax.servlet.http.HttpServletRequest request)
WorkEffortContentWrapper(LocalDispatcher dispatcher, GenericValue workEffort, java.util.Locale locale, java.lang.String mimeTypeId)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
get(java.lang.String workEffortContentId, boolean useCache, java.lang.String encoderType)
StringUtil.StringWrapper
get(java.lang.String contentTypeId, java.lang.String encoderType)
Get the most current content data by the defined typejava.lang.String
getContent(java.lang.String contentId, boolean useCache, java.lang.String encoderType)
java.lang.String
getContent(java.lang.String contentId, java.lang.String encoderType)
java.lang.String
getContentId(java.lang.String contentTypeId)
Get the ID from the most current content data by the defined typejava.lang.String
getContentName(java.lang.String contentTypeId)
Get the name of the most current content data by the defined typejava.lang.String
getDataResourceId(java.lang.String contentTypeId)
static GenericValue
getFirstWorkEffortContentByType(java.lang.String workEffortId, GenericValue workEffort, java.lang.String workEffortContentTypeId, Delegator delegator, boolean cache)
java.sql.Timestamp
getFromDate(java.lang.String contentTypeId)
Get the fromDate from teh most current content data by the defined typejava.util.List<java.lang.String>
getList(java.lang.String contentTypeId)
java.lang.String
getTypeDescription(java.lang.String contentTypeId)
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)
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)
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)
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)
static java.lang.String
getWorkEffortContentAsText(GenericValue workEffort, java.lang.String workEffortContentTypeId, java.util.Locale locale, LocalDispatcher dispatcher, java.lang.String encoderType)
static java.lang.String
getWorkEffortContentAsText(GenericValue workEffort, java.lang.String workEffortContentTypeId, javax.servlet.http.HttpServletRequest request, java.lang.String encoderType)
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)
static WorkEffortContentWrapper
makeWorkEffortContentWrapper(GenericValue workEffort, javax.servlet.http.HttpServletRequest request)
-
-
-
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
-
dispatcher
protected LocalDispatcher dispatcher
-
workEffort
protected GenericValue workEffort
-
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 interfaceContentWrapper
- 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)
-
makeWorkEffortContentWrapper
public static WorkEffortContentWrapper makeWorkEffortContentWrapper(GenericValue workEffort, javax.servlet.http.HttpServletRequest request)
-
-