|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.liferay.portlet.journal.lar.JournalCreationStrategyImpl
public class JournalCreationStrategyImpl
Provides the strategy for creating new content when new Journal content is imported into a layout set from a LAR. The default strategy implemented by this class is to return zero for the author and approval user ids, which causes the default user id import strategy to be used. Content will be added as is with no transformations.
JournalContentPortletDataHandlerImpl
,
JournalPortletDataHandlerImpl
Field Summary |
---|
Fields inherited from interface com.liferay.portlet.journal.lar.JournalCreationStrategy |
---|
ARTICLE_CONTENT_UNCHANGED, USE_DEFAULT_USER_ID_STRATEGY |
Constructor Summary | |
---|---|
JournalCreationStrategyImpl()
|
Method Summary | |
---|---|
boolean |
addCommunityPermissions(com.liferay.portal.lar.PortletDataContext context,
java.lang.Object journalObj)
Returns true if the default community permissions should be added when the specified journalObj is created. |
boolean |
addGuestPermissions(com.liferay.portal.lar.PortletDataContext context,
java.lang.Object journalObj)
Returns true if the default guest permissions should be added when the specified journalObj is created. |
long |
getApprovalUserId(com.liferay.portal.lar.PortletDataContext context,
java.lang.Object journalObj)
Returns the approver's user id to assign to newly created content. |
long |
getAuthorUserId(com.liferay.portal.lar.PortletDataContext context,
java.lang.Object journalObj)
Returns the author's user id to assign to newly created content. |
java.lang.String |
getTransformedContent(com.liferay.portal.lar.PortletDataContext context,
com.liferay.portlet.journal.model.JournalArticle newArticle)
Gives the content creation strategy an opportunity to transform the content before the new article is saved to the database. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JournalCreationStrategyImpl()
Method Detail |
---|
public long getAuthorUserId(com.liferay.portal.lar.PortletDataContext context, java.lang.Object journalObj) throws java.lang.Exception
JournalCreationStrategy
getAuthorUserId
in interface JournalCreationStrategy
context
- the context of the data importjournalObj
- the new object must be an instance of
JournalArticle, JournalStructure, or JournalTemplate
java.lang.Exception
public long getApprovalUserId(com.liferay.portal.lar.PortletDataContext context, java.lang.Object journalObj) throws java.lang.Exception
JournalCreationStrategy
getApprovalUserId
in interface JournalCreationStrategy
context
- the context of the data importjournalObj
- the new object must be an instance of
JournalArticle, JournalStructure, or JournalTemplate
java.lang.Exception
public java.lang.String getTransformedContent(com.liferay.portal.lar.PortletDataContext context, com.liferay.portlet.journal.model.JournalArticle newArticle) throws java.lang.Exception
JournalCreationStrategy
getTransformedContent
in interface JournalCreationStrategy
context
- the context of the data importnewArticle
- the new article being created
java.lang.Exception
public boolean addCommunityPermissions(com.liferay.portal.lar.PortletDataContext context, java.lang.Object journalObj) throws java.lang.Exception
JournalCreationStrategy
addCommunityPermissions
in interface JournalCreationStrategy
context
- the context of the data importjournalObj
- the new object must be an instance of
JournalArticle, JournalStructure, or JournalTemplate
java.lang.Exception
public boolean addGuestPermissions(com.liferay.portal.lar.PortletDataContext context, java.lang.Object journalObj) throws java.lang.Exception
JournalCreationStrategy
addGuestPermissions
in interface JournalCreationStrategy
context
- the context of the data importjournalObj
- the new object must be an instance of
JournalArticle, JournalStructure, or JournalTemplate
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |