Class BaseUserPortalContentDtoFactory


  • public class BaseUserPortalContentDtoFactory
    extends Object
    Data transfer object factory for user portal content base information.
    Since:
    8.6.0
    Author:
    XIMA MEDIA GmbH
    • Method Detail

      • from

        public static BaseUserPortalContentDTO from​(UserPortalContent entity,
                                                    Locale locale)
        Creates a BaseUserPortalContentDTO from a UserPortalContent entity.
        Parameters:
        entity - the UserPortalContent entity to create the DTO from
        locale - the locale for setting localized values
        Returns:
        the BaseUserPortalContentDTO for the given entity, or null if the entity type is not supported
      • from

        public static BaseUserPortalContentDTO from​(UserPortalTemplateContent entity,
                                                    Locale locale,
                                                    String contentUrl)
        Creates a BaseUserPortalContentDTO from a UserPortalTemplateContent from type URL with an given content URL.
        Parameters:
        entity - the template entity of type URL
        locale - the locale for setting localized values
        contentUrl - the content URL to set in the DTO
        Returns:
        the dto with the content URL set