Class BaseUserPortalContentDtoFactory
- java.lang.Object
-
- de.xima.fc.dao.portal_content.dto.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 Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BaseUserPortalContentDTOfrom(UserPortalContent entity, Locale locale)Creates a BaseUserPortalContentDTO from a UserPortalContent entity.static BaseUserPortalContentDTOfrom(UserPortalTemplateContent entity, Locale locale, String contentUrl)Creates a BaseUserPortalContentDTO from a UserPortalTemplateContent from type URL with an given content URL.
-
-
-
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 fromlocale- 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 URLlocale- the locale for setting localized valuescontentUrl- the content URL to set in the DTO- Returns:
- the dto with the content URL set
-
-