[jboss-svn-commits] JBL Code SVN: r23954 - in labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src: etc/default_graphics and 2 other directories.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Wed Nov 19 05:37:01 EST 2008
Author: szimano
Date: 2008-11-19 05:37:01 -0500 (Wed, 19 Nov 2008)
New Revision: 23954
Added:
labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/ResourceJSF.properties
labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/default_graphics/
labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/default_graphics/theme.properties
labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/
labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/b_close.tpl
labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/b_open.tpl
labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/code_close.tpl
labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/code_open.tpl
labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/color_close.tpl
labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/color_open.tpl
labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/email.tpl
labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/i_close.tpl
labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/i_open.tpl
labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/img.tpl
labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/listitem.tpl
labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/olist_close.tpl
labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/olist_open.tpl
labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/quote_close.tpl
labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/quote_open.tpl
labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/quote_username_open.tpl
labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/size_close.tpl
labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/size_open.tpl
labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/u_close.tpl
labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/u_open.tpl
labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/ulist_close.tpl
labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/ulist_open.tpl
labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/url.tpl
Modified:
labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/java-migration/org/jboss/labs/clearspace/CSMigration.java
labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/java-migration/org/jboss/labs/clearspace/CSMigrationStarter.java
Log:
forums translate phpBB->html logic
Added: labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/ResourceJSF.properties
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/ResourceJSF.properties (rev 0)
+++ labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/ResourceJSF.properties 2008-11-19 10:37:01 UTC (rev 23954)
@@ -0,0 +1,512 @@
+#
+# Common, these terms are used
+# extensively on several pages
+#
+Forum=Forum
+Category=Category
+Topics=Topics
+Replies=Replies
+Views=Views
+Posts=Posts
+L_POSTED=Posted
+Posted=Posted
+L_AUTHOR=Author
+Author=Author
+Message=Message
+Permalink=[ permalink ]
+Powered_by=Powered by
+Jump_to=Jump to
+
+period_1_Day=1 Day
+period_7_Days=7 Days
+period_2_Weeks=2 Weeks
+period_1_Month=1 Month
+period_3_Months=3 Months
+period_6_Months=6 Months
+period_1_Year=1 Year
+
+Go=Go
+Submit=Submit
+Cancel=Cancel
+Preview=Preview
+Confirm=Confirm
+Yes=Yes
+No=No
+Back=Back
+
+Next=Next
+Previous=Previous
+Goto_page=Goto page
+Last_page=Last page
+Last=Last
+First=First
+L_JOINED=Joined
+
+Select_forum=Select a forum
+# Replaces with: Page 1 of 2 for example
+PageNumber=Page {0} of {1}
+
+ICQ=ICQ Number
+AIM=AIM Address
+YIM=Yahoo Messenger
+
+# eg. sitename Forum Index, %s can be removed if you prefer
+
+Post_new_topic=Post new topic
+Reply_to_topic=Reply to topic
+
+# %s's here are for uris, do not remove!
+
+Admin_panel=Administration
+Home=Home
+My_Forums=My Forums
+
+#
+# Forums Preferences
+#
+L_LOGIN_REQUIRED=You must be logged in to manage your Forum Preferences
+L_EMAIL_ADDRESS=Email address
+L_ICQ_NUMBER=ICQ number
+L_AIM=AIM
+L_MESSENGER=Messanger
+L_YAHOO=Yahoo
+L_SKYPE=Skype
+L_WEBSITE=Website
+L_LOCATION=Location
+L_OCCUPATION=Occupation
+L_INTERESTS=Interests
+L_SIGNATURE=Signature
+L_SIGNATURE_EXPLAIN=Signature under your posts
+L_PREFERENCES=Preferences
+L_YES=Yes
+L_NO=No
+L_NOTIFY_ON_REPLY=Notify on reply
+L_NOTIFY_ON_REPLY_EXPLAIN=Notify when your post was replied
+L_ALWAYS_ADD_SIGNATURE=Always add signature
+L_ALWAYS_ALLOW_HTML=Always allow html
+L_DATE_FORMAT=Date format
+L_SUBMIT=Submit
+L_RESET=Reset
+L_POST_ORDER=Post Order
+L_POSTS_PER_TOPIC=Posts per page
+L_POSTS_PER_TOPIC_EXPLAIN=How many posts per page do you want to display
+L_ASCENDING=Ascending
+L_DESCENDING=Descending
+L_TOPICS_PER_FORUM=Topics per page
+L_TOPICS_PER_FORUM_EXPLAIN=How many topics per page do you want to display
+L_USER_INFO=Information
+L_MODE_HOT_TOPICS=Hot topics (above some number of replies)
+L_MODE_HOTTEST_TOPICS=Hottest topics (most replied)
+L_MODE_LATEST_POSTS=Latest posted topics
+L_MODE_MOST_VIEWED=Most viewed topics
+L_TOPICS_FOUND=topics found.
+L_TOPIC_SUMMARY=Topic summary
+L_MODE_CHOOSE=Choose summary mode
+L_MODE_CHOOSE_EXPLAIN=What you want to display in minimized portlet window
+L_TOPIC_SUMMARY_LIMIT=Topics limit
+L_TOPIC_SUMMARY_LIMIT_EXPLAIN=How many topics to display
+L_TOPIC_SUMMARY_DAYS=How old posts [in days]
+L_TOPIC_SUMMARY_DAYS_EXPLAIN=Posts age for displaying in "Hottest" and "Most viewed" modes.
+L_TOPIC_SUMMARY_REPLIES=How many replies in topic
+L_TOPIC_SUMMARY_REPLIES_EXPLAIN=Minimal number of topic replies for displaying in "Hot" mode.
+
+#
+# Global Header strings
+#
+Last_Post=Last Post
+By=by
+
+No_new_posts=No new posts
+New_posts=New posts
+No_new_posts_hot=No new posts [ Popular ]
+New_posts_hot=New posts [ Popular ]
+No_new_posts_locked=No new posts [ Locked ]
+New_posts_locked=New posts [ Locked ]
+No_new_posts_sticky=No new posts [ Sticky ]
+New_posts_sticky=New posts [ Sticky ]
+No_new_posts_annoucement=No new posts [ Annoucement ]
+New_posts_annoucement=New posts [ Annoucement ]
+Forum_is_locked=Forum is locked
+
+#
+# Index page
+#
+No_Posts=No Posts
+Private_Message=Private Message
+Who_is_Online=Who is Online
+Mark_all_forums=Mark all forums read
+
+#
+# Viewforum
+#
+Forum_not_exist=The forum you selected does not exist.
+Announcements=Announcements
+Sticky_Threads=Sticky Threads
+Normal_Threads=Normal Threads
+Topic_Announcement=Announcement:
+Topic_Sticky=Sticky:
+Topic_Moved=<b>Moved:</b>
+Rules_post_can=You <b>can</b> post new topics in this forum
+Rules_post_cannot=You <b>cannot</b> post new topics in this forum
+Rules_vote_can=You <b>can</b> vote in polls in this forum
+Rules_vote_cannot=You <b>cannot</b> vote in polls in this forum
+Rules_poll_can=You <b>can</b> create polls in this forum
+Rules_poll_cannot=You <b>cannot</b> create polls in this forum
+# %s replaced by a href links, do not remove!
+Forum_moderation=Forum Moderation
+Moderate=Moderate
+Rules_moderate_0=You <b>can</b>
+Rules_moderate_1=You <b>cannot</b>
+Rules_moderate_2=moderate this forum
+Forum_administration=Forum Administration
+Forum_lock=Lock this forum
+Forum_unlock=Unlock this forum
+No_topics_post_one=There are no posts in this forum.<br/><br/>Click on the <b>New Topic</b> link on this page to post one.
+
+#
+# Viewtopic
+#
+
+L_POST_SUBJECT=Post subject
+Post_subject=Post subject
+Submit_vote=Submit Vote
+View_results=View Results
+View_ballot=View Ballot
+No_posts_topic=No posts exist for this topic
+Display_posts=Display posts from previous
+Back_to_top=Back to top
+Read_profile=View user\'s profile
+Send_email=Send e-mail to user
+Visit_website=Visit poster\'s website
+Delete_post=Delete this post
+
+# proceeds the username and is followed by the quoted text
+# comes before bbcode quote output.
+# comes before bbcode code output.
+
+# Last edited by me on 12 Oct 2001; edited 1 time in total
+Edited_time_total=Last edited by {0} on {1}; edited {2} time in total.
+# Last edited by me on 12 Oct 2001; edited 2 times in total
+Edited_times_total=Last edited by {0} on {1}; edited {2} times in total.
+
+Thread_moderation=Thread Moderation
+Lock_topic=Lock this topic
+Unlock_topic=Unlock this topic
+Move_topic=Move this topic
+Delete_topic=Delete this topic
+Split_topic=Split this topic
+Instant_reply=Instant reply
+
+#
+# Posting/Replying (Not private messaging!)
+#
+Message_body=Message body
+
+# If posting.php is called without a mode (newtopic/reply/delete/etc, shouldn't be shown normaly)
+
+Post_a_new_topic=Post a new topic
+Post_a_reply=Post a reply
+Post_topic_as=Post topic as
+Edit_Post=Edit post
+Options=Options
+Compose_Message=Compose Message
+Posting_Description=Subject and Message body are required to post message. Use Message body controls to style your message, add links or images to your message.
+Post_Announcement=Announcement
+Post_Sticky=Sticky
+Post_Normal=Normal
+Confirm_delete=Are you sure you want to delete this post?
+Post_deletion_info=This will delete the {0} post.
+Topic_deletion_info=This will delete the {0} topic and the {1} messages beneath it. Are you sure you want to delete the topic?
+Confirm_delete_poll=Are you sure you want to delete this poll?
+Empty_subject=You must specify a subject when posting a new topic.
+Empty_message=You must enter a message when posting.
+Forum_locked=This forum is locked: you cannot post, reply to, or edit topics.
+Topic_locked=This topic is locked: you cannot edit posts or make replies.
+Empty_poll_title=You must enter a title for your poll.
+Empty_poll_option=You must enter a valid label for your poll option.
+To_few_poll_options=You must enter at least two poll options.
+To_many_poll_options=You have tried to enter too many poll options.
+Wrong_poll_duration=You must enter a valid poll duration time value.
+Add_poll=Add a Poll
+Add_poll_explain=If you do not want to add a poll to your topic, leave the fields blank.
+Poll_question=Poll question
+Poll_option=Poll option
+Add_option=Add option
+Update=Update
+Delete=Delete
+Poll_for=Run poll for
+# This is used for the Run poll for ... Days + in admin_forums for pruning
+Days=Days
+Poll_for_explain=[ Enter 0 or leave blank for a never-ending poll ]
+Delete_poll=Delete Poll
+Delete_post=Delete Post
+
+bbcode_b_help=Bold text: [b]text[/b] (alt+b)
+bbcode_i_help=Italic text: [i]text[/i] (alt+i)
+bbcode_u_help=Underline text: [u]text[/u] (alt+u)
+bbcode_q_help=Quote text: [quote]text[/quote] (alt+q)
+bbcode_c_help=Code display: [code]code[/code] (alt+c)
+bbcode_l_help=List: [list]text[/list] (alt+l)
+bbcode_o_help=Ordered list: [list=]text[/list] (alt+o)
+bbcode_p_help=Insert image: [img]http://image_url[/img] (alt+p)
+bbcode_w_help=Insert URL: [url]http://url[/url] or [url=http://url]URL text[/url] (alt+w)
+bbcode_a_help=Close all open bbCode tags
+bbcode_s_help=Font color: [color=red]text[/color] Tip: you can also use color=#FF0000
+bbcode_f_help=Font size: [size=x-small]small text[/size]
+
+Font_color=Font colour
+color_default=Default
+color_dark_red=Dark Red
+color_red=Red
+color_orange=Orange
+color_brown=Brown
+color_yellow=Yellow
+color_green=Green
+color_olive=Olive
+color_cyan=Cyan
+color_blue=Blue
+color_dark_blue=Dark Blue
+color_indigo=Indigo
+color_violet=Violet
+color_white=White
+color_black=Black
+
+Font_size=Font size
+font_tiny=Tiny
+font_small=Small
+font_normal=Normal
+font_large=Large
+font_huge=Huge
+
+Close_Tags=Close Tags
+Styles_tip=Tip: Styles can be applied quickly to selected text.
+
+
+Subject=Subject
+
+No_such_user=Sorry, but no such user exists.
+
+#
+# Profiles/Registration
+#
+
+# %s is username
+L_VIEWING_PROFILE=View Profile
+# %s is username
+
+Preferences=Preferences
+
+L_TOTAL_POSTS=Total posts
+
+Send_email=Send e-mail
+
+Add_Subscribtion=Add Subscribtion
+
+
+Not_Moderator=You are not a moderator of this forum.
+
+
+#
+# Viewonline
+#
+Online_explain=This data is based on users active over the past five minutes
+
+#
+# Moderator Control Panel
+#
+Mod_CP=Forum Moderation
+Mod_CP_explain=From this panel you can lock, unlock, move or delete a single topic or multiple topics by checking the appropriate select boxes on topics.
+L_SELECT=Select
+Select=Select
+Delete=Delete
+Move=Move
+Lock=Lock
+Unlock=Unlock
+Topic_delete_confirm=Delete Topic(s)
+Topic_move_confirm=Move Topic(s)
+Confirm_move_topic=Selected topic(s) to be moved:
+Confirm_delete_topic=This permanently removes the topic(s) and cannot be undone. Are you sure you want to delete the selected topic(s)?
+Move_to_forum=Select a destination
+Leave_shadow_topic=Leave shadow topic in old forum.
+Topics_to_deletion=Selected topic(s) to be deleted:
+
+L_SPLIT_DESTINATION=Destination
+L_SPLIT_TOPIC=Split Topic Control Panel
+L_SPLIT_TOPIC_EXPLAIN=Using the form below you can split a topic in two, either by selecting the posts individually or by splitting at a selected post
+L_SPLIT_SUBJECT=New topic title
+L_SPLIT_FORUM=Forum for new topic
+L_SPLIT_POSTS=Split selected posts
+L_SPLIT_AFTER=Split from selected post
+None_selected=You have not selected any topics to perform this operation on.
+ERR_NO_DEST_FORUM=You must select destination forum to perform move operations.
+ERR_INTERNAL=Internal data error - please try again.
+SUCC_TOPIC_MOVED=Move operation succeded!
+ERR_CANNOT_REMOVE_TOPIC=Remove operation failed! Try again!
+SUCC_TOPIC_REMOVED=Deletion succeded!
+SUCC_TOPIC_LOCKED=Lock succeded!
+SUCC_TOPIC_UNLOCKED=Unlock succeded!
+SUCC_TOPIC_SPLITTED=Split successfull!
+ERR_SPLIT_ONE_POST_TOPIC=Cannot split topic with only one post!
+ERR_SPLIT_ALL=Cannot move all posts from splited topic!
+ERR_DEST_FORUM=You have to select destination forum!
+ERR_PERMISSION_VIOLATION=You don't have proper perrmisions - STOP HACKING!!!
+ERR_NO_POST_SELECTED=You have not selected any posts to split.
+ERR_NO_SUBJECT_GIVEN=You have to give subject for new topic.
+
+Please_try_again=Please try again.
+
+#
+# Auth pages
+#
+
+Not_Moderator=Not Moderator
+
+# These are displayed in the drop down boxes for advanced
+# mode forum auth, try and keep them short!
+
+L_POST=Post
+Edit=Edit
+Delete=Delete
+Attachment=Attachment
+
+#
+# Forum Management
+#
+Forum_admin=Categories And Forums
+Forum_admin_explain=From this panel you can add, delete, edit, re-order and re-synchronise categories and forums
+Edit_forum=Edit Forum
+Create_forum=Add New Forum
+Forum_created_0=The Forum
+Forum_created_1=was successfully created.
+Forum_updated_0=The Forum
+Forum_updated_1=was successfully updated.
+Forum_deleted_0=The Forum
+Forum_deleted_1=was successfully deleted.
+Create_category=Add New Category
+Category_created_0=The Category
+Category_created_1=was successfully created.
+Category_updated_0=The Category
+Category_updated_1=was successfully updated.
+Category_deleted_0=The Category
+Category_deleted_1=was successfully deleted.
+Edit=Edit
+Create=Create
+Delete=Delete
+Move_up=Move up
+Move_down=Move down
+Delete_all_topics_posts=Delete All Topics/Posts
+Move_contents=Move all contents to -
+Forum_delete=Delete Forum
+Forum_delete_explain=The form below will allow you to delete a forum (or category) and decide where you want to put all topics (or forums) it contained.
+Forum_locked=Forum locked
+Forum_unlocked=Forum unlocked
+Forum_name=Forum name
+Forum_desc=Description
+Forum_category=Forum category
+Category_name=Category name
+Edit_Category=Edit Category
+Delete_all_forums_topics_posts=Delete All Forums/Topics/Posts
+
+Download=Download
+
+#
+# MyForums View Messages
+#
+
+MyForums_title=MyForums
+MyForums_info=This is your personalized forum view. From here, you can view and manage your subscribed forums, subscribed topics and email notifications.
+Subscribed_topics_info=Subscribed Topics with New Posts
+Subscribed_forums_info=Subscribed Forums
+NoNewPosts=There are no new posts to your subscribed threads.
+ViewAllSubscribed=View All Subscribed Topics
+EditAllSubscribed=Edit Subscribed Forums Notifications
+NotSubscribingToAnyForum=You are not subscribing to any forum.
+Notification=Notification
+
+#
+# From the mod "Watched Topics List" (http://www.netclectic.com/)
+# plus some custom for the forum watches
+#
+Watch_Login_Requirement=You must be logged in to Watch Forums
+Subscribe_to_forum=Subscribe to forum
+Unsubscribe_from_forum=UnSubscribe from forum
+Subscribe_to_topic=Subscribe to topic
+Unsubscribe_from_topic=Unsubscribe from topic
+Selected_topic=Selected topic
+Selected_forum=Selected forum
+Notification_type=Notification type
+
+Attachment=Attachment
+
+// Viewtopic -> Display of Attachments
+Description=Description
+// used in Administration Panel too...
+Download=Download
+// this Language Variable is defined in lang_admin.php too, but we are unable to access it from the main Language File
+Filesize=Filesize
+
+// Posting/PM -> Posting Attachments
+Add_attachment=Add Attachment
+Add_attachment_title=Add an Attachment
+Add_attachment_explain=If you do not want to add an Attachment to your Post, please leave the Fields blank
+File_name=Filename
+File_comment=File Comment
+
+// Posting/PM -> Posted Attachments
+Posted_attachments=Posted Attachments
+Options=Options
+Update_comment=Update Comment
+Delete_attachment=Delete Attachment
+
+EMAIL_VIEWORIGINAL=View the original post
+EMAIL_REPLY=Reply to the post
+EMAIL_LINKED_MODE_INFO=You are receiving this e-mail because you subscribed to
+EMAIL_FOOTER_MESSAGE=This message is generated automaticaly. Please do not reply.
+EMAIL_NO_NOTIFICATION=No Notification by Email
+EMAIL_LINKED_NOTIFICATION=Linked mode Email notification
+EMAIL_EMBEDED_NOTIFICATION=Embeded mode Email notification
+SELECT_NOTIFICATION_TYPE=Select notification type
+
+// BB Code variables
+Message_code=Code
+Message_quote=Quote
+Message_wrote=wrote
+
+Category_delete=Delete Category
+
+topiclockederr=This topic is locked. Modifying any posts or replying to this topic is not allowed
+
+Search_keywords=Keywords
+Search_keywords_note=You can use AND to define words which must be in the results, OR to define words which may be in the result and NOT to define words which should not be in the result. Use quotes to search for a specific phrase. Use * as a wildcard for partial matches.
+Search_author=Author
+Search_author_note=Use * as a wildcard for partial matches.
+Search_advanced=Advanced Search
+Search_category=Limit search within a specific Category:
+Search_forum=Limit search within a specific Forum:
+Search_time_period=Limit search to a time period:
+Search_all_posts=All Posts
+Search_1_day=1 Day
+Search_7_days=7 Days
+Search_2_weeks=2 Weeks
+Search_1_month=1 Month
+Search_3_months=3 Months
+Search_6_months=6 Months
+Search_1_year=1 Year
+Search_searching=Searching titles and message text:
+Search_title_message=Search topic title and message text
+Search_message=Search message text only
+Search_sort=Sort search results by:
+Search_post_time=Post Time
+Search_post_subject=Post Subject
+Search_author=Author
+Search_forum=Forum
+Search_ascending=Ascending
+Search_descending=Descending
+Search_search=Search
+Search_reset=Reset
+Search_found=Search found {0} matches
+Search_topics_not_found=No topics found
+Search_posts_not_found=No posts found
+Search_display_as=Display results as:
+Search_display_as_topics=Topics
+Search_display_as_posts=Posts
Added: labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/default_graphics/theme.properties
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/default_graphics/theme.properties (rev 0)
+++ labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/default_graphics/theme.properties 2008-11-19 10:37:01 UTC (rev 23954)
@@ -0,0 +1,183 @@
+#NEW
+
+#COMMON
+forum=common/forum_ico_nonew_open.gif
+forum_new=common/forum_ico_new_open.gif
+forum_locked=common/forum_ico_nonew_locked.gif
+folder=common/forum_ico_nonew_open.gif
+folder_new=common/forum_ico_new_open.gif
+folder_hot=common/forum_ico_nonew_pop.gif
+folder_hot_new=common/forum_ico_new_pop.gif
+folder_locked=common/forum_ico_nonew_locked.gif
+folder_locked_new=common/forum_ico_new_locked.gif
+folder_sticky=common/forum_ico_sticky.gif
+folder_sticky_new=common/forum_ico_sticky_new.gif
+folder_announce=common/forum_ico_anno.gif
+folder_announce_new=common/forum_ico_anno_new.gif
+lock=common/forum_ico_adminlock.gif
+unlock=common/forum_ico_adminunlock.gif
+topic_mod_lock=common/forum_ico_adminlock.gif
+topic_mod_unlock=common/forum_ico_adminunlock.gif
+topic_mod_split=common/forum_ico_adminsplit.gif
+topic_mod_move=common/forum_ico_adminmove.gif
+topic_mod_delete=common/forum_ico_admindelete_norm.gif
+topic_mod_delete_disa=common/forum_ico_admindelete_disa.gif
+admin_arrowdown=common/forum_ico_adminarrowdown_norm.gif
+admin_arrowdown_disa=common/forum_ico_adminarrowdown_disa.gif
+admin_arrowup=common/forum_ico_adminarrowup_norm.gif
+admin_arrowup_disa=common/forum_ico_adminarrowup_disa.gif
+icon_dialog_error=common/forum_ico_dialog_error.gif
+icon_dialog_question=common/forum_ico_dialog_question.gif
+icon_dialog_warning=common/forum_ico_dialog_warning.gif
+voting_graphic_0=common/forum_poll_bar.gif
+vote_lcap=common/forum_poll_lcap.gif
+vote_rcap=common/forum_poll_rcap.gif
+forums_logo=common/forums_ico_logo.gif
+spacer=common/spacer.gif
+icon_feed=common/forums_ico_feed.gif
+
+#LANGUAGE SPECIFIC
+
+forum_subscribe=forum_but_subscribe.gif
+forum_unsubscribe=forum_but_unsubscribe.gif
+post_new=forum_but_newtopic.gif
+post_locked=forum_but_closed.gif
+reply_new=forum_but_postreply.gif
+reply_locked=forum_but_closed.gif
+moderate=forum_but_moderate.gif
+icon_quote=forum_but_quote.gif
+icon_delpost=forum_but_delete.gif
+icon_edit=forum_but_edit.gif
+icon_profile=forum_but_profile.gif
+icon_email=forum_but_email.gif
+icon_www=forum_but_website.gif
+icon_aim=forum_but_aim.gif
+icon_yim=forum_but_yim.gif
+icon_skype=forum_but_skype.gif
+icon_msnm=forum_but_msnm.gif
+icon_icq=forum_but_icq.gif
+admin_newcategory=forum_but_addnewcategory.gif
+admin_newforum=forum_but_addnewforum.gif
+
+
+#OLD
+
+#icon_quote=images/lang_english/icon_quote.gif
+#icon_edit=images/lang_english/icon_edit.gif
+icon_repost=images/lang_english/icon_repost.gif
+icon_search=images/lang_english/icon_search.gif
+#icon_profile=images/lang_english/icon_profile.gif
+icon_pm=images/lang_english/icon_pm.gif
+#icon_email=images/lang_english/icon_email.gif
+#icon_delpost=images/icon_delete.gif
+icon_ip=images/lang_english/icon_ip.gif
+#icon_www=images/lang_english/icon_www.gif
+#icon_icq=images/lang_english/icon_icq_add.gif
+#icon_aim=images/lang_english/icon_aim.gif
+#icon_skype=images/lang_english/icon_skype.gif
+#icon_yim=images/lang_english/icon_yim.gif
+#icon_msnm=images/lang_english/icon_msnm.gif
+icon_minipost=images/icon_minipost.gif
+icon_gotopost=images/icon_minipost.gif
+icon_minipost_new=images/icon_minipost_new.gif
+icon_latest_reply=images/icon_latest_reply.gif
+icon_newest_reply=images/icon_newest_reply.gif
+
+#forum=images/folder_big.gif
+#forum_new=images/folder_new.gif
+forum_new_big=images/folder_new_big.gif
+#forum_locked=images/folder_locked_big.gif
+
+#folder=images/folder.gif
+#folder_new=images/folder_new.gif
+#folder_hot=images/folder_hot.gif
+#folder_hot_new=images/folder_new_hot.gif
+#folder_locked=images/folder_lock.gif
+#folder_locked_new=images/folder_lock_new.gif
+#folder_sticky=images/folder_sticky.gif
+#folder_sticky_new=images/folder_sticky_new.gif
+#folder_announce=images/folder_announce.gif
+#folder_announce_new=images/folder_announce_new.gif
+
+#post_new=images/lang_english/post.gif
+#post_locked=images/lang_english/reply-locked.gif
+#reply_new=images/lang_english/reply.gif
+#reply_locked=images/lang_english/reply-locked.gif
+
+pm_inbox=images/msg_inbox.gif
+pm_outbox=images/msg_outbox.gif
+pm_savebox=images/msg_savebox.gif
+pm_sentbox=images/msg_sentbox.gif
+pm_readmsg=images/folder.gif
+pm_unreadmsg=images/folder_new.gif
+pm_replymsg=images/reply.gif
+pm_postmsg=images/lang_english/msg_newpost.gif
+pm_quotemsg=images/icon_quote.gif
+pm_editmsg=images/icon_edit.gif
+pm_new_msg=
+pm_no_new_msg=
+
+topic_watch=
+topic_un_watch=
+#topic_mod_lock=images/topic_lock.gif
+#topic_mod_unlock=images/topic_unlock.gif
+#topic_mod_split=images/topic_split.gif
+#topic_mod_move=images/topic_move.gif
+#topic_mod_delete=images/topic_delete.gif
+
+#voting_graphic_0=images/voting_bar.gif
+#voting_graphic_1=images/voting_bar.gif
+#voting_graphic_2=images/voting_bar.gif
+#voting_graphic_3=images/voting_bar.gif
+#voting_graphic_4=images/voting_bar.gif
+
+#vote_lcap=images/vote_lcap.gif
+#vote_rcap=images/vote_rcap.gif
+
+
+
+vote_graphic_length=205
+privmsg_graphic_length=175
+
+template_name=subSilver
+style_name=subSilver
+head_stylesheet=subSilver.css
+body_background=
+body_bgcolor=E5E5E5
+body_text=000000
+body_link=006699
+body_vlink=5493B4
+body_alink=
+body_hlink=DD6900
+tr_color1=EFEFEF
+tr_color2=DEE3E7
+tr_color3=D1D7DC
+tr_class1=
+tr_class2=
+tr_class3=
+th_color1=98AAB1
+th_color2=006699
+th_color3=FFFFFF
+th_class1=images/cellpic1.gif
+th_class2=images/cellpic3.gif
+th_class3=images/cellpic2.jpg
+td_color1=FAFAFA
+td_color2=FFFFFF
+td_color3=
+td_class1=row1
+td_class2=row2
+td_class3=
+fontface1=Verdana, Arial, Helvetica, sans-serif
+fontface2=Trebuchet MS
+fontface3=Courier, \'Courier New\', sans-serif
+fontsize1=10
+fontsize2=11
+fontsize3=12
+fontcolor1=444444
+fontcolor2=006600
+fontcolor3=FFA34F
+span_class1=
+span_class2=
+span_class3=
+img_size_poll=0
+img_size_privmsg=0
Added: labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/b_close.tpl
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/b_close.tpl (rev 0)
+++ labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/b_close.tpl 2008-11-19 10:37:01 UTC (rev 23954)
@@ -0,0 +1 @@
+</span>
Added: labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/b_open.tpl
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/b_open.tpl (rev 0)
+++ labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/b_open.tpl 2008-11-19 10:37:01 UTC (rev 23954)
@@ -0,0 +1 @@
+<span style="font-weight: bold">
Added: labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/code_close.tpl
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/code_close.tpl (rev 0)
+++ labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/code_close.tpl 2008-11-19 10:37:01 UTC (rev 23954)
@@ -0,0 +1,6 @@
+</pre>
+</div>
+</td>
+</tr>
+</table>
+<span class="postbody">
\ No newline at end of file
Added: labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/code_open.tpl
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/code_open.tpl (rev 0)
+++ labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/code_open.tpl 2008-11-19 10:37:01 UTC (rev 23954)
@@ -0,0 +1,7 @@
+</span>
+<table width="0%" cellspacing="1" cellpadding="3" border="0" align="center" style="margin-left: 20px;">
+ <tr>
+ <td><b>{L_CODE}:</b></td>
+ </tr>
+ <tr>
+ <td width="0%" class="code"><div class="scroll"><pre>
Added: labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/color_close.tpl
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/color_close.tpl (rev 0)
+++ labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/color_close.tpl 2008-11-19 10:37:01 UTC (rev 23954)
@@ -0,0 +1 @@
+</span>
Added: labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/color_open.tpl
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/color_open.tpl (rev 0)
+++ labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/color_open.tpl 2008-11-19 10:37:01 UTC (rev 23954)
@@ -0,0 +1 @@
+<span style="color: {COLOR}">
Added: labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/email.tpl
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/email.tpl (rev 0)
+++ labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/email.tpl 2008-11-19 10:37:01 UTC (rev 23954)
@@ -0,0 +1 @@
+<a href="mailto:{EMAIL}">{EMAIL}</a>
Added: labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/i_close.tpl
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/i_close.tpl (rev 0)
+++ labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/i_close.tpl 2008-11-19 10:37:01 UTC (rev 23954)
@@ -0,0 +1 @@
+</span>
Added: labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/i_open.tpl
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/i_open.tpl (rev 0)
+++ labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/i_open.tpl 2008-11-19 10:37:01 UTC (rev 23954)
@@ -0,0 +1 @@
+<span style="font-style: italic">
Added: labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/img.tpl
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/img.tpl (rev 0)
+++ labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/img.tpl 2008-11-19 10:37:01 UTC (rev 23954)
@@ -0,0 +1 @@
+<img src="{URL}" border="0"/>
Added: labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/listitem.tpl
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/listitem.tpl (rev 0)
+++ labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/listitem.tpl 2008-11-19 10:37:01 UTC (rev 23954)
@@ -0,0 +1 @@
+<li>
\ No newline at end of file
Added: labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/olist_close.tpl
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/olist_close.tpl (rev 0)
+++ labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/olist_close.tpl 2008-11-19 10:37:01 UTC (rev 23954)
@@ -0,0 +1 @@
+</ol>
Added: labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/olist_open.tpl
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/olist_open.tpl (rev 0)
+++ labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/olist_open.tpl 2008-11-19 10:37:01 UTC (rev 23954)
@@ -0,0 +1 @@
+<ol type="{LIST_TYPE}">
Added: labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/quote_close.tpl
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/quote_close.tpl (rev 0)
+++ labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/quote_close.tpl 2008-11-19 10:37:01 UTC (rev 23954)
@@ -0,0 +1,4 @@
+</td>
+</tr>
+</table>
+<span class="postbody">
Added: labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/quote_open.tpl
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/quote_open.tpl (rev 0)
+++ labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/quote_open.tpl 2008-11-19 10:37:01 UTC (rev 23954)
@@ -0,0 +1,7 @@
+</span>
+<table width="0%" cellspacing="1" cellpadding="3" border="0" align="center" style="margin-left: 20px;">
+ <tr>
+ <td><span class="genmed"><b>{L_QUOTE}:</b></span></td>
+ </tr>
+ <tr>
+ <td class="quote">
Added: labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/quote_username_open.tpl
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/quote_username_open.tpl (rev 0)
+++ labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/quote_username_open.tpl 2008-11-19 10:37:01 UTC (rev 23954)
@@ -0,0 +1,7 @@
+</span>
+<table width="0%" cellspacing="1" cellpadding="3" border="0" align="center" style="margin-left: 20px;">
+ <tr>
+ <td><span class="genmed"><b>{USERNAME} {L_WROTE}:</b></span></td>
+ </tr>
+ <tr>
+ <td class="quote">
Added: labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/size_close.tpl
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/size_close.tpl (rev 0)
+++ labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/size_close.tpl 2008-11-19 10:37:01 UTC (rev 23954)
@@ -0,0 +1 @@
+</span>
Added: labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/size_open.tpl
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/size_open.tpl (rev 0)
+++ labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/size_open.tpl 2008-11-19 10:37:01 UTC (rev 23954)
@@ -0,0 +1 @@
+<span style="font-size: {SIZE}px; line-height: normal">
Added: labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/u_close.tpl
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/u_close.tpl (rev 0)
+++ labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/u_close.tpl 2008-11-19 10:37:01 UTC (rev 23954)
@@ -0,0 +1 @@
+</span>
Added: labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/u_open.tpl
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/u_open.tpl (rev 0)
+++ labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/u_open.tpl 2008-11-19 10:37:01 UTC (rev 23954)
@@ -0,0 +1 @@
+<span style="text-decoration: underline">
Added: labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/ulist_close.tpl
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/ulist_close.tpl (rev 0)
+++ labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/ulist_close.tpl 2008-11-19 10:37:01 UTC (rev 23954)
@@ -0,0 +1 @@
+</ul>
\ No newline at end of file
Added: labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/ulist_open.tpl
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/ulist_open.tpl (rev 0)
+++ labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/ulist_open.tpl 2008-11-19 10:37:01 UTC (rev 23954)
@@ -0,0 +1 @@
+<ul>
\ No newline at end of file
Added: labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/url.tpl
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/url.tpl (rev 0)
+++ labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/etc/template/url.tpl 2008-11-19 10:37:01 UTC (rev 23954)
@@ -0,0 +1 @@
+<a href="{URL}" target="_blank">{DESCRIPTION}</a>
Modified: labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/java-migration/org/jboss/labs/clearspace/CSMigration.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/java-migration/org/jboss/labs/clearspace/CSMigration.java 2008-11-19 10:29:32 UTC (rev 23953)
+++ labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/java-migration/org/jboss/labs/clearspace/CSMigration.java 2008-11-19 10:37:01 UTC (rev 23954)
@@ -1,10 +1,12 @@
package org.jboss.labs.clearspace;
import java.io.File;
+import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.FileWriter;
import java.io.IOException;
+import java.io.StringWriter;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
@@ -15,6 +17,8 @@
import java.util.HashSet;
import java.util.Map;
import java.util.Properties;
+import java.util.ResourceBundle;
+import java.util.Scanner;
import java.util.Set;
import java.util.TreeSet;
@@ -23,6 +27,9 @@
import javax.xml.ws.soap.SOAPFaultException;
import org.acegisecurity.providers.AuthenticationProvider;
+import org.jboss.portlet.forums.format.render.bbcodehtml.ToHTMLConfig;
+import org.jboss.portlet.forums.format.render.bbcodehtml.ToHTMLRenderer;
+import org.jboss.portlet.forums.format.util.CLLoader;
import org.jboss.wiki.WikiAttachment;
import org.jboss.wiki.WikiEngine;
import org.jboss.wiki.WikiPage;
@@ -57,6 +64,7 @@
public class CSMigration {
+ private static final String MIGRATE_FILE = "MIGRATE_FILE";
private static final String UNKNOWN_USER = "unknownMigrationUser";
private static final String CS_HREF = "http://localhost:8080";
private static final String COMM_NAME = "wiki";
@@ -142,7 +150,84 @@
}
}
+
+ public void translatePosts() {
+ Connection c = null;
+
+ System.out.println("Forum migration started");
+ try {
+ c = userImporter.getConnection();
+
+ ResultSet rs = c.createStatement().executeQuery(
+ "SELECT * FROM phpbb_posts LIMIT 100");
+
+ System.out.println("getting bundle");
+
+ ResourceBundle bundle = ResourceBundle.getBundle("ResourceJSF");
+
+ System.out.println("getting config");
+
+ ToHTMLConfig config = new ToHTMLConfig();
+
+ System.out.println("setting loader and props");
+
+ config.setLoader(new CLLoader("template"));
+ config.setFilterMode(
+ ToHTMLConfig.FILTER_MODE_ALWAYS_PRINT);
+ config.setOuputMode(
+ ToHTMLConfig.OUTPUT_MODE_REMOVE);
+ config.setMaxTextWidth(
+ Integer.MAX_VALUE);
+
+ System.out.println("getting parser");
+
+ ToHTMLRenderer parser = new ToHTMLRenderer(config, bundle);
+
+ System.out.println("Got parser");
+ while (rs.next()) {
+ try {
+ System.out.println("another post");
+ String id = rs.getObject("post_id").toString();
+ String message = rs.getObject("post_text").toString();
+ String subject = rs.getObject("post_subject").toString();
+
+ StringWriter writer = new StringWriter();
+ parser.setWriter(writer);
+ parser.render(message.toCharArray(), 0, message.length());
+
+ message = writer.toString();
+
+ writer = new StringWriter();
+ parser.setWriter(writer);
+ parser.render(subject.toCharArray(), 0, subject.length());
+
+ subject = writer.toString();
+
+ c.createStatement().execute("insert into phpbb_posts_new (post_id, post_text, post_subject) select '"+id+"', '"+message+"', '"+subject+"';");
+
+ System.out.println("Translated page: "+id);
+ } catch (SQLException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+ }
+
+ } catch (Exception e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ } finally {
+ if (c != null) {
+ try {
+ c.close();
+ } catch (SQLException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+ }
+ }
+ }
+
private void importAllPages(Set<String> toTransform) throws IOException {
// prepare dictionary
Set<String> removePages = new HashSet<String>();
@@ -163,7 +248,7 @@
.wikiToJiveDocument(content);
wsd.setBody(body);
-
+
wsd.setCreationDate(page.getEditDate());
wsd.setUser(getUser(page.getLastAuthor().getName()));
@@ -522,6 +607,49 @@
}
}
+ public void migrateAll() {
+
+ String fileName = System.getenv(MIGRATE_FILE);
+
+ if (fileName != null) {
+ File f = new File(fileName);
+ if (f.exists()) {
+ // migrate
+ Scanner s = null;
+ try {
+ s = new Scanner(f);
+
+ // ignore first line
+ s.nextLine();
+
+ while (s.hasNext()) {
+ String login = s.nextLine();
+
+ try {
+ userImporter.getUser(login, true);
+ System.out.println("Imported: "+login);
+ } catch (Exception e) {
+ //
+ e.printStackTrace();
+ }
+ }
+ } catch (FileNotFoundException e) {
+ e.printStackTrace();
+ } finally {
+ try {
+ s.close();
+ } catch (Exception e) {
+ // nothing
+ }
+ }
+
+ }
+ }
+
+ System.err
+ .println("Tried to migrate users, but fileName wasn't set or it didn't exist");
+ }
+
private void createMigrationInfoPage(Date start, Date end)
throws DuplicateIDException, UnauthorizedException,
DocumentAlreadyExistsException, RejectedException {
@@ -627,7 +755,8 @@
* started"); try {
*
* migrate(); } catch (Exception e) { // TODO Auto-generated catch block
- * e.printStackTrace(); } System.out.println("Migration finished\n\n"); }
+ * e.printStackTrace(); } System.out.println("Migration finished\n\n");
+ * }
*/
}
Modified: labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/java-migration/org/jboss/labs/clearspace/CSMigrationStarter.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/java-migration/org/jboss/labs/clearspace/CSMigrationStarter.java 2008-11-19 10:29:32 UTC (rev 23953)
+++ labs/jbosslabs/trunk/portal-extensions/jbosswiki/wiki-common/src/java-migration/org/jboss/labs/clearspace/CSMigrationStarter.java 2008-11-19 10:37:01 UTC (rev 23954)
@@ -20,6 +20,13 @@
throws AuthenticationException {
try {
+ if (System.getenv("TRANSLATE_POSTS") != null) {
+ migration.translatePosts();
+ }
+ if (System.getenv("MIGRATE_NONEX") != null) {
+ migration.migrateAll();
+ }
+
if (System.getenv("MIGRATE") != null) {
migration.migrate();
}
More information about the jboss-svn-commits
mailing list