Java Doc for JournalCreationStrategy.java in  » Portal » liferay-portal-4.4.2 » com » liferay » portlet » journal » lar » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Portal » liferay portal 4.4.2 » com.liferay.portlet.journal.lar 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.liferay.portlet.journal.lar.JournalCreationStrategy

All known Subclasses:   com.liferay.portlet.journal.lar.JournalCreationStrategyImpl,
JournalCreationStrategy
public interface JournalCreationStrategy (Code)
View Source

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.


author:
   Joel Kozikowski


Field Summary
final public static  StringARTICLE_CONTENT_UNCHANGED
     Constant returned by getTransformedContent() to indicate that the article text should remained unchanged.
final public static  longUSE_DEFAULT_USER_ID_STRATEGY
     Constant returned by getAuthorUserId() and/or getApprovalUserId() that indicates the default portlet data import user id strategy that should be used to determine the user id.


Method Summary
public  booleanaddCommunityPermissions(long companyId, long groupId, Object journalObj)
     Returns true if the default community permissions should be added when the specified journalObj is created.
public  booleanaddGuestPermissions(long companyId, long groupId, Object journalObj)
     Returns true if the default guest permissions should be added when the specified journalObj is created.
public  longgetApprovalUserId(long companyId, long groupId, Object journalObj)
     Returns the approver's user id to assign to newly created content.
public  longgetAuthorUserId(long companyId, long groupId, Object journalObj)
     Returns the author's user id to assign to newly created content.
public  StringgetTransformedContent(long companyId, long groupId, JournalArticle newArticle)
     Gives the content creation strategy an opportunity to transform the content before the new article is saved to the database.

Field Detail
ARTICLE_CONTENT_UNCHANGED
final public static String ARTICLE_CONTENT_UNCHANGED(Code)
Constant returned by getTransformedContent() to indicate that the article text should remained unchanged.



USE_DEFAULT_USER_ID_STRATEGY
final public static long USE_DEFAULT_USER_ID_STRATEGY(Code)
Constant returned by getAuthorUserId() and/or getApprovalUserId() that indicates the default portlet data import user id strategy that should be used to determine the user id.





Method Detail
addCommunityPermissions
public boolean addCommunityPermissions(long companyId, long groupId, Object journalObj) throws Exception(Code)
Returns true if the default community permissions should be added when the specified journalObj is created.
Parameters:
  companyId - the company id of the layout
Parameters:
  groupId - the group id of the layout
Parameters:
  journalObj - the new object must be an instance ofJournalArticle, JournalStructure, or JournalTemplate true if default community permissions should be added to thespecified journalObj



addGuestPermissions
public boolean addGuestPermissions(long companyId, long groupId, Object journalObj) throws Exception(Code)
Returns true if the default guest permissions should be added when the specified journalObj is created.
Parameters:
  companyId - the company id of the layout
Parameters:
  groupId - the group id of the layout
Parameters:
  journalObj - the new object must be an instance ofJournalArticle, JournalStructure, or JournalTemplate true if default guest permissions should be added to thespecified journalObj



getApprovalUserId
public long getApprovalUserId(long companyId, long groupId, Object journalObj) throws Exception(Code)
Returns the approver's user id to assign to newly created content. If zero is returned, the default user id import strategy will determine the author id.
Parameters:
  companyId - the company id of the layout
Parameters:
  groupId - the group id of the layout
Parameters:
  journalObj - the new object must be an instance ofJournalArticle, JournalStructure, or JournalTemplate the approver's user id or USE_DEFAULT_USER_ID_STRATEGY touse the default user id strategy



getAuthorUserId
public long getAuthorUserId(long companyId, long groupId, Object journalObj) throws Exception(Code)
Returns the author's user id to assign to newly created content. If zero is returned, the default user id import strategy will determine the author id.
Parameters:
  companyId - the company id of the layout
Parameters:
  groupId - the group id of the layout
Parameters:
  journalObj - the new object must be an instance ofJournalArticle, JournalStructure, or JournalTemplate the author's user id or USE_DEFAULT_USER_ID_STRATEGY to usethe default user id strategy



getTransformedContent
public String getTransformedContent(long companyId, long groupId, JournalArticle newArticle) throws Exception(Code)
Gives the content creation strategy an opportunity to transform the content before the new article is saved to the database. Possible use cases include using Velocity to merge in community specific values into the text. Returns the new content to assign to the article. If null is returned, the article content will be added unchanged.
Parameters:
  companyId - the company id of the layout
Parameters:
  groupId - the group id of the layout
Parameters:
  newArticle - the new article being created the transformed content to save in the database orARTICLE_CONTENT_UNCHANGED if the content should be addedunchanged



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.