Package org.apache.ofbiz.party.content
Class PartyContentWrapper
- java.lang.Object
-
- org.apache.ofbiz.party.content.PartyContentWrapper
-
- All Implemented Interfaces:
ContentWrapper
public class PartyContentWrapper 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
party
-
Constructor Summary
Constructors Constructor Description PartyContentWrapper(GenericValue party, HttpServletRequest request)
PartyContentWrapper(LocalDispatcher dispatcher, GenericValue party, 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 contentTypeId, boolean useCache, java.lang.String encoderType)
StringUtil.StringWrapper
get(java.lang.String contentTypeId, java.lang.String encoderType)
java.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)
static GenericValue
getFirstPartyContentByType(java.lang.String partyId, GenericValue party, java.lang.String partyContentTypeId, Delegator delegator)
java.lang.String
getId(java.lang.String contentTypeId)
java.util.List<java.lang.String>
getList(java.lang.String contentTypeId)
static void
getPartyContentAsText(java.lang.String contentId, java.lang.String partyId, GenericValue party, java.lang.String partyContentTypeId, java.util.Locale locale, java.lang.String mimeTypeId, Delegator delegator, LocalDispatcher dispatcher, java.io.Writer outWriter)
static void
getPartyContentAsText(java.lang.String contentId, java.lang.String partyId, GenericValue party, java.lang.String partyContentTypeId, java.util.Locale locale, java.lang.String mimeTypeId, Delegator delegator, LocalDispatcher dispatcher, java.io.Writer outWriter, boolean cache)
static java.lang.String
getPartyContentAsText(GenericValue party, java.lang.String contentId, java.lang.String partyContentTypeId, java.util.Locale locale, java.lang.String mimeTypeId, Delegator delegator, LocalDispatcher dispatcher, boolean useCache, java.lang.String encoderType)
static java.lang.String
getPartyContentAsText(GenericValue party, java.lang.String partyContentTypeId, java.util.Locale locale, java.lang.String mimeTypeId, Delegator delegator, LocalDispatcher dispatcher, boolean useCache, java.lang.String encoderType)
static java.lang.String
getPartyContentAsText(GenericValue party, java.lang.String partyContentId, java.util.Locale locale, LocalDispatcher dispatcher, java.lang.String encoderType)
static java.lang.String
getPartyContentAsText(GenericValue party, java.lang.String partyContentId, HttpServletRequest request, java.lang.String encoderType)
static java.util.List<java.lang.String>
getPartyContentTextList(GenericValue party, java.lang.String partyContentTypeId, java.util.Locale locale, java.lang.String mimeTypeId, Delegator delegator, LocalDispatcher dispatcher)
static PartyContentWrapper
makePartyContentWrapper(GenericValue party, 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
-
party
protected GenericValue party
-
locale
protected java.util.Locale locale
-
mimeTypeId
protected java.lang.String mimeTypeId
-
-
Constructor Detail
-
PartyContentWrapper
public PartyContentWrapper(LocalDispatcher dispatcher, GenericValue party, java.util.Locale locale, java.lang.String mimeTypeId)
-
PartyContentWrapper
public PartyContentWrapper(GenericValue party, HttpServletRequest request)
-
-
Method Detail
-
get
public java.lang.String get(java.lang.String contentTypeId, boolean useCache, java.lang.String encoderType)
-
get
public StringUtil.StringWrapper get(java.lang.String contentTypeId, java.lang.String encoderType)
- Specified by:
get
in interfaceContentWrapper
-
getId
public java.lang.String getId(java.lang.String contentTypeId)
-
getList
public java.util.List<java.lang.String> getList(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)
-
getPartyContentAsText
public static java.lang.String getPartyContentAsText(GenericValue party, java.lang.String partyContentId, HttpServletRequest request, java.lang.String encoderType)
-
getPartyContentAsText
public static java.lang.String getPartyContentAsText(GenericValue party, java.lang.String partyContentId, java.util.Locale locale, LocalDispatcher dispatcher, java.lang.String encoderType)
-
getPartyContentAsText
public static java.lang.String getPartyContentAsText(GenericValue party, java.lang.String partyContentTypeId, java.util.Locale locale, java.lang.String mimeTypeId, Delegator delegator, LocalDispatcher dispatcher, boolean useCache, java.lang.String encoderType)
-
getPartyContentAsText
public static java.lang.String getPartyContentAsText(GenericValue party, java.lang.String contentId, java.lang.String partyContentTypeId, java.util.Locale locale, java.lang.String mimeTypeId, Delegator delegator, LocalDispatcher dispatcher, boolean useCache, java.lang.String encoderType)
-
getPartyContentAsText
public static void getPartyContentAsText(java.lang.String contentId, java.lang.String partyId, GenericValue party, java.lang.String partyContentTypeId, 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
-
getPartyContentAsText
public static void getPartyContentAsText(java.lang.String contentId, java.lang.String partyId, GenericValue party, java.lang.String partyContentTypeId, 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
-
getPartyContentTextList
public static java.util.List<java.lang.String> getPartyContentTextList(GenericValue party, java.lang.String partyContentTypeId, java.util.Locale locale, java.lang.String mimeTypeId, Delegator delegator, LocalDispatcher dispatcher) throws GeneralException, java.io.IOException
- Throws:
GeneralException
java.io.IOException
-
getFirstPartyContentByType
public static GenericValue getFirstPartyContentByType(java.lang.String partyId, GenericValue party, java.lang.String partyContentTypeId, Delegator delegator)
-
makePartyContentWrapper
public static PartyContentWrapper makePartyContentWrapper(GenericValue party, HttpServletRequest request)
-
-