public class ArticleUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ARTICLE_STAGING |
Modifier and Type | Method and Description |
---|---|
static String |
getSummary(Article pArticle)
Returns the summary of an article.
|
static Article |
getThumbnailArticle(Article pArticle,
ObjectLoader pObjectLoader)
Returns the first thumbnail article of an article.
|
static List<Article> |
getThumbnailArticles(Article pArticle,
ObjectLoader pObjectLoader)
Returns the list of thumbnail articles of an article.
|
static boolean |
isBinary(Article pArticle)
Checks if an article is a binary article.
|
static boolean |
isImage(Article pArticle)
Checks if an article is an image article.
|
static boolean |
isStagingEnabled(Article pArticle,
ObjectLoader pObjectLoader) |
static boolean |
isStagingEnabled(neo.xredsys.content.type.ArticleType pArticleType,
int pPublicationId,
ObjectLoader pObjectLoader) |
public static final String ARTICLE_STAGING
public static String getSummary(Article pArticle)
pArticle
- the article to get summary of; can not be null
.null
but can be empty.IllegalArgumentException
- if pArticle is null
.public static boolean isBinary(Article pArticle)
pArticle
- the article to check; can be null
.true
if the article is a binary article; false
otherwise.public static boolean isImage(Article pArticle)
pArticle
- the article to check; can be null
.true
if the article is an image article; false
otherwise.public static Article getThumbnailArticle(Article pArticle, ObjectLoader pObjectLoader)
pArticle
- the article to check; can be null
.pObjectLoader
- the ObjectLoader of load article; can not be null
.null
.IllegalArgumentException
- if pObjectLoader is null
.public static List<Article> getThumbnailArticles(Article pArticle, ObjectLoader pObjectLoader)
pArticle
- the article to check; can be null
.pObjectLoader
- the ObjectLoader of load article; can not be null
.null
but can be empty.IllegalArgumentException
- if pObjectLoader is null
.public static boolean isStagingEnabled(Article pArticle, ObjectLoader pObjectLoader)
public static boolean isStagingEnabled(neo.xredsys.content.type.ArticleType pArticleType, int pPublicationId, ObjectLoader pObjectLoader)
© 1998- 2021 Escenic AS