|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JournalCreationStrategy
An interface defining how newly created content should be added to the Journal when imported from a LAR file. A class implementing this interface should be specified in portal.properties under the journal.lar.creation.strategy property.
Field Summary | |
---|---|
static String |
ARTICLE_CONTENT_UNCHANGED
Constant returned by getTransformedContent() to indicate that the article text should remained unchanged. |
static long |
USE_DEFAULT_USER_ID_STRATEGY
Constant returned by getAuthorUserId() that indicates the default portlet data import user ID strategy that should be used to determine the user ID. |
Method Summary | |
---|---|
boolean |
addGroupPermissions(PortletDataContext context,
Object journalObj)
Returns true if the default group permissions should be
added when the specified journalObj is created. |
boolean |
addGuestPermissions(PortletDataContext context,
Object journalObj)
Returns true if the default guest permissions should be
added when the specified journalObj is created. |
long |
getAuthorUserId(PortletDataContext context,
Object journalObj)
Returns the author's user ID to assign to newly created content. |
String |
getTransformedContent(PortletDataContext context,
JournalArticle newArticle)
Gives the content creation strategy an opportunity to transform the content before the new article is saved to the database. |
Field Detail |
---|
static final String ARTICLE_CONTENT_UNCHANGED
static final long USE_DEFAULT_USER_ID_STRATEGY
Method Detail |
---|
boolean addGroupPermissions(PortletDataContext context, Object journalObj) throws Exception
true
if the default group permissions should be
added when the specified journalObj is created.
context
- the portlet data contextjournalObj
- the journal object
true
if default group permissions should be added to
the specified journalObj
Exception
- if an exception occurredboolean addGuestPermissions(PortletDataContext context, Object journalObj) throws Exception
true
if the default guest permissions should be
added when the specified journalObj is created.
context
- the portlet data contextjournalObj
- the journal object
true
if default guest permissions should be added to
the specified journalObj
Exception
- if an exception occurredlong getAuthorUserId(PortletDataContext context, Object journalObj) throws Exception
context
- the portlet data contextjournalObj
- the journal object
Exception
- if an exception occurredString getTransformedContent(PortletDataContext context, JournalArticle newArticle) throws Exception
null
is returned, the article content will be added
unchanged.
context
- the portlet data contextnewArticle
- the new journal article
Exception
- if an exception occurred
|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |