Package org.apache.ofbiz.content.content
Interface ContentWrapper
- All Known Implementing Classes:
CategoryContentWrapper
,OrderContentWrapper
,PartyContentWrapper
,ProductConfigItemContentWrapper
,ProductContentWrapper
,ProductPromoContentWrapper
,WorkEffortContentWrapper
public interface ContentWrapper
ContentWrapper Interface
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
encodeContentValue
(String value, String encoderType) Encode given content string via given encoderType.static String
getCandidateFieldValue
(Delegator delegator, String modelEntityName, EntityCondition modelObjectPk, String contentTypeId, boolean useCache) Check if modelEntityName is an existing entity and has a field named like given contentTypeId and get the unique modelObject entry by modelObjectPk and return the candidate field value as String.static String
getCandidateFieldValue
(GenericValue modelObject, String contentTypeId) Check modelObject for existance of a field named like given contentTypeId and return its value as String.static String
getDefaultMimeTypeId
(Delegator delegator) Get the configured default for content mimeTypeId.
-
Field Details
-
MODULE
-
CACHE_KEY_SEPARATOR
- See Also:
-
-
Method Details
-
get
-
getDefaultMimeTypeId
Get the configured default for content mimeTypeId.- Parameters:
delegator
-- Returns:
-
getCandidateFieldValue
Check modelObject for existance of a field named like given contentTypeId and return its value as String.- Parameters:
modelObject
-contentTypeId
-- Returns:
-
getCandidateFieldValue
static String getCandidateFieldValue(Delegator delegator, String modelEntityName, EntityCondition modelObjectPk, String contentTypeId, boolean useCache) throws GenericEntityException Check if modelEntityName is an existing entity and has a field named like given contentTypeId and get the unique modelObject entry by modelObjectPk and return the candidate field value as String.- Parameters:
delegator
-modelEntityName
-modelObjectPk
-contentTypeId
-useCache
-- Returns:
- Throws:
GenericEntityException
-
encodeContentValue
Encode given content string via given encoderType.- Parameters:
value
-encoderType
-- Returns:
-