Interface ContentWrapper

All Known Implementing Classes:
CategoryContentWrapper, OrderContentWrapper, PartyContentWrapper, ProductConfigItemContentWrapper, ProductContentWrapper, ProductPromoContentWrapper, WorkEffortContentWrapper

public interface ContentWrapper
ContentWrapper Interface
  • Field Details

  • Method Details

    • get

      StringUtil.StringWrapper get(String contentTypeId, String encoderType)
    • getDefaultMimeTypeId

      static String getDefaultMimeTypeId(Delegator delegator)
      Get the configured default for content mimeTypeId.
      Parameters:
      delegator -
      Returns:
    • getCandidateFieldValue

      static String getCandidateFieldValue(GenericValue modelObject, String contentTypeId)
      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

      static String encodeContentValue(String value, String encoderType)
      Encode given content string via given encoderType.
      Parameters:
      value -
      encoderType -
      Returns: