Package org.apache.ofbiz.party.content
Class PartyContentWrapper
java.lang.Object
org.apache.ofbiz.party.content.PartyContentWrapper
- All Implemented Interfaces:
ContentWrapper
WorkEffortContentWrapper; gets work effort content for display
-
Field Summary
-
Constructor Summary
ConstructorDescriptionPartyContentWrapper
(GenericValue party, HttpServletRequest request) PartyContentWrapper
(LocalDispatcher dispatcher, GenericValue party, Locale locale, String mimeTypeId) -
Method Summary
Modifier and TypeMethodDescriptionGet string.getContent
(String contentId, boolean useCache, String encoderType) Gets content.getContent
(String contentId, String encoderType) Gets content.static GenericValue
getFirstPartyContentByType
(String partyId, GenericValue party, String partyContentTypeId, Delegator delegator) Gets id.Gets list.static void
getPartyContentAsText
(String contentId, String partyId, GenericValue party, String partyContentTypeId, Locale locale, String mimeTypeId, Delegator delegator, LocalDispatcher dispatcher, Writer outWriter) static void
getPartyContentAsText
(String contentId, String partyId, GenericValue party, String partyContentTypeId, Locale locale, String mimeTypeId, Delegator delegator, LocalDispatcher dispatcher, Writer outWriter, boolean cache) static String
getPartyContentAsText
(GenericValue party, String contentId, String partyContentTypeId, Locale locale, String mimeTypeId, Delegator delegator, LocalDispatcher dispatcher, boolean useCache, String encoderType) static String
getPartyContentAsText
(GenericValue party, String partyContentTypeId, Locale locale, String mimeTypeId, Delegator delegator, LocalDispatcher dispatcher, boolean useCache, String encoderType) static String
getPartyContentAsText
(GenericValue party, String partyContentId, Locale locale, LocalDispatcher dispatcher, String encoderType) static String
getPartyContentAsText
(GenericValue party, String partyContentId, HttpServletRequest request, String encoderType) getPartyContentTextList
(GenericValue party, String partyContentTypeId, Locale locale, String mimeTypeId, Delegator delegator, LocalDispatcher dispatcher) static PartyContentWrapper
makePartyContentWrapper
(GenericValue party, HttpServletRequest request)
-
Field Details
-
CACHE_KEY_SEPARATOR
- See Also:
-
-
Constructor Details
-
PartyContentWrapper
public PartyContentWrapper(LocalDispatcher dispatcher, GenericValue party, Locale locale, String mimeTypeId) -
PartyContentWrapper
-
-
Method Details
-
get
Get string.- Parameters:
contentTypeId
- the content type iduseCache
- the use cacheencoderType
- the encoder type- Returns:
- the string
-
get
- Specified by:
get
in interfaceContentWrapper
-
getId
Gets id.- Parameters:
contentTypeId
- the content type id- Returns:
- the id
-
getList
Gets list.- Parameters:
contentTypeId
- the content type id- Returns:
- the list
-
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
-
getPartyContentAsText
public static String getPartyContentAsText(GenericValue party, String partyContentId, HttpServletRequest request, String encoderType) -
getPartyContentAsText
public static String getPartyContentAsText(GenericValue party, String partyContentId, Locale locale, LocalDispatcher dispatcher, String encoderType) -
getPartyContentAsText
public static String getPartyContentAsText(GenericValue party, String partyContentTypeId, Locale locale, String mimeTypeId, Delegator delegator, LocalDispatcher dispatcher, boolean useCache, String encoderType) -
getPartyContentAsText
public static String getPartyContentAsText(GenericValue party, String contentId, String partyContentTypeId, Locale locale, String mimeTypeId, Delegator delegator, LocalDispatcher dispatcher, boolean useCache, String encoderType) -
getPartyContentAsText
public static void getPartyContentAsText(String contentId, String partyId, GenericValue party, String partyContentTypeId, Locale locale, String mimeTypeId, Delegator delegator, LocalDispatcher dispatcher, Writer outWriter) throws GeneralException, IOException - Throws:
GeneralException
IOException
-
getPartyContentAsText
public static void getPartyContentAsText(String contentId, String partyId, GenericValue party, String partyContentTypeId, Locale locale, String mimeTypeId, Delegator delegator, LocalDispatcher dispatcher, Writer outWriter, boolean cache) throws GeneralException, IOException - Throws:
GeneralException
IOException
-
getPartyContentTextList
public static List<String> getPartyContentTextList(GenericValue party, String partyContentTypeId, Locale locale, String mimeTypeId, Delegator delegator, LocalDispatcher dispatcher) throws GeneralException, IOException - Throws:
GeneralException
IOException
-
getFirstPartyContentByType
public static GenericValue getFirstPartyContentByType(String partyId, GenericValue party, String partyContentTypeId, Delegator delegator) -
makePartyContentWrapper
public static PartyContentWrapper makePartyContentWrapper(GenericValue party, HttpServletRequest request)
-