[jboss-cvs] jboss-seam/examples/wiki/src/etc ...

Christian Bauer christian at hibernate.org
Wed Nov 14 03:12:26 EST 2007


  User: cbauer  
  Date: 07/11/14 03:12:26

  Modified:    examples/wiki/src/etc   import-prod.sql import-dev.sql
  Log:
  Show document tags by default
  
  Revision  Changes    Path
  1.17      +2 -1      jboss-seam/examples/wiki/src/etc/import-prod.sql
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: import-prod.sql
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/wiki/src/etc/import-prod.sql,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -b -r1.16 -r1.17
  --- import-prod.sql	13 Nov 2007 13:04:18 -0000	1.16
  +++ import-prod.sql	14 Nov 2007 08:12:25 -0000	1.17
  @@ -38,7 +38,8 @@
   insert into PREFERENCE(PREF_ID, OBJ_VERSION, COMPONENT_NAME, PROPERTY_NAME, LONG_VALUE)     values (11, 0, 'wikiPreferences', 'mainMenuDepth', '3')
   insert into PREFERENCE(PREF_ID, OBJ_VERSION, COMPONENT_NAME, PROPERTY_NAME, BOOLEAN_VALUE)  values (12, 0, 'wikiPreferences', 'mainMenuShowAdminOnly', false)
   insert into PREFERENCE(PREF_ID, OBJ_VERSION, COMPONENT_NAME, PROPERTY_NAME, BOOLEAN_VALUE)  values (13, 0, 'wikiPreferences', 'showDocumentCreatorHistory', true)
  -insert into PREFERENCE(PREF_ID, OBJ_VERSION, COMPONENT_NAME, PROPERTY_NAME, STRING_VALUE)   values (14, 0, 'wikiPreferences', 'helpArea', 'Help')
  +insert into PREFERENCE(PREF_ID, OBJ_VERSION, COMPONENT_NAME, PROPERTY_NAME, BOOLEAN_VALUE)  values (14, 0, 'wikiPreferences', 'showTags', true)
  +insert into PREFERENCE(PREF_ID, OBJ_VERSION, COMPONENT_NAME, PROPERTY_NAME, STRING_VALUE)   values (15, 0, 'wikiPreferences', 'helpArea', 'Help')
   
   insert into PREFERENCE(PREF_ID, OBJ_VERSION, COMPONENT_NAME, PROPERTY_NAME, BOOLEAN_VALUE)  values (20, 0, 'docEditorPreferences', 'minorRevisionEnabled', true)
   insert into PREFERENCE(PREF_ID, OBJ_VERSION, COMPONENT_NAME, PROPERTY_NAME, LONG_VALUE)     values (21, 0, 'docEditorPreferences', 'regularEditAreaRows', '15')
  
  
  
  1.50      +6 -5      jboss-seam/examples/wiki/src/etc/import-dev.sql
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: import-dev.sql
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/wiki/src/etc/import-dev.sql,v
  retrieving revision 1.49
  retrieving revision 1.50
  diff -u -b -r1.49 -r1.50
  --- import-dev.sql	9 Nov 2007 15:08:27 -0000	1.49
  +++ import-dev.sql	14 Nov 2007 08:12:25 -0000	1.50
  @@ -38,7 +38,8 @@
   insert into PREFERENCE(PREF_ID, OBJ_VERSION, COMPONENT_NAME, PROPERTY_NAME, LONG_VALUE)     values (11, 0, 'wikiPreferences', 'mainMenuDepth', '3')
   insert into PREFERENCE(PREF_ID, OBJ_VERSION, COMPONENT_NAME, PROPERTY_NAME, BOOLEAN_VALUE)  values (12, 0, 'wikiPreferences', 'mainMenuShowAdminOnly', false)
   insert into PREFERENCE(PREF_ID, OBJ_VERSION, COMPONENT_NAME, PROPERTY_NAME, BOOLEAN_VALUE)  values (13, 0, 'wikiPreferences', 'showDocumentCreatorHistory', true)
  -insert into PREFERENCE(PREF_ID, OBJ_VERSION, COMPONENT_NAME, PROPERTY_NAME, STRING_VALUE)   values (14, 0, 'wikiPreferences', 'helpArea', 'Help')
  +insert into PREFERENCE(PREF_ID, OBJ_VERSION, COMPONENT_NAME, PROPERTY_NAME, BOOLEAN_VALUE)  values (14, 0, 'wikiPreferences', 'showTags', true)
  +insert into PREFERENCE(PREF_ID, OBJ_VERSION, COMPONENT_NAME, PROPERTY_NAME, STRING_VALUE)   values (15, 0, 'wikiPreferences', 'helpArea', 'Help')
   
   insert into PREFERENCE(PREF_ID, OBJ_VERSION, COMPONENT_NAME, PROPERTY_NAME, BOOLEAN_VALUE)  values (20, 0, 'docEditorPreferences', 'minorRevisionEnabled', true)
   insert into PREFERENCE(PREF_ID, OBJ_VERSION, COMPONENT_NAME, PROPERTY_NAME, LONG_VALUE)     values (21, 0, 'docEditorPreferences', 'regularEditAreaRows', '15')
  @@ -55,7 +56,7 @@
   insert into PREFERENCE(PREF_ID, OBJ_VERSION, COMPONENT_NAME, PROPERTY_NAME, BOOLEAN_VALUE)  values (41, 0, 'lastModifiedDocumentsPreferences', 'showUsernames', true)
   insert into PREFERENCE(PREF_ID, OBJ_VERSION, COMPONENT_NAME, PROPERTY_NAME, LONG_VALUE)     values (42, 0, 'lastModifiedDocumentsPreferences', 'documentTitleLength', '20')
   
  -insert into PREFERENCE(PREF_ID, OBJ_VERSION, COMPONENT_NAME, PROPERTY_NAME, LONG_VALUE)     values (50, 0, 'blogDirectoryPreferences', 'pageSize', '1')
  +insert into PREFERENCE(PREF_ID, OBJ_VERSION, COMPONENT_NAME, PROPERTY_NAME, LONG_VALUE)     values (50, 0, 'blogDirectoryPreferences', 'pageSize', '3')
   
   insert into PREFERENCE(PREF_ID, OBJ_VERSION, COMPONENT_NAME, PROPERTY_NAME, STRING_VALUE)   values (60, 0, 'feedTeasersPreferences', 'teaserTitle', 'Site news feed:')
   insert into PREFERENCE(PREF_ID, OBJ_VERSION, COMPONENT_NAME, PROPERTY_NAME, LONG_VALUE)     values (61, 0, 'feedTeasersPreferences', 'feedIdentifier', '1')
  @@ -91,7 +92,7 @@
   update USERS set MEMBER_HOME_NODE_ID = '3' where USER_ID = '3'
   insert into FEED (FEED_ID, OBJ_VERSION, TITLE, AUTHOR, PUBLISHED_ON, DIRECTORY_ID) values (2, 0, 'Member', 'Regular Member', '1976-06-26 11:11:11', 3)
   insert into NODE (NODE_ID, NODE_TYPE, NODE_REVISION, CREATED_BY_USER_ID, AREA_NR, PARENT_NODE_ID, OBJ_VERSION, NAME, WIKINAME, MENU_ITEM, CREATED_ON, LAST_MODIFIED_ON, WRITE_ACCESS_LEVEL, READ_ACCESS_LEVEL, NS_THREAD, NS_LEFT, NS_RIGHT, DISPLAY_POSITION) values (4, 'DOCUMENT', 1, 3, 2, 3, 0, 'Home of member', 'HomeOfMember', false, '2005-06-27 13:45:00', '2005-06-27 13:45:00', 1000, 0, 1, 4, 5, 0)
  -insert into NODE_DOCUMENT (DOCUMENT_ID, CONTENT, NAME_AS_TITLE, ENABLE_COMMENTS, ENABLE_COMMENT_FORM, ENABLE_COMMENTS_ON_FEEDS, MACROS) values (4, '[<=hideCreatorHistory]@@LF@@@@LF@@<div style="float:right; width:33%;">@@LF@@ <div>[<=userProfile]</div>@@LF@@ <div style="margin-top:15px;">[<=blogRecentEntries]</div>@@LF@@ <div style="margin-top:15px;">[<=tags]</div>@@LF@@ <div style="margin-top:15px;">[<=blogArchive]</div>@@LF@@</div>@@LF@@<div style="width:65%;">[<=blogDirectory]</div>', false, false, false, false, 'hideCreatorHistory userProfile blogDirectory blogRecentEntries blogArchive')
  +insert into NODE_DOCUMENT (DOCUMENT_ID, CONTENT, NAME_AS_TITLE, ENABLE_COMMENTS, ENABLE_COMMENT_FORM, ENABLE_COMMENTS_ON_FEEDS, MACROS) values (4, '[<=hideTags]@@LF@@@@LF@@[<=hideCreatorHistory]@@LF@@@@LF@@<div style="float:right; width:33%;">@@LF@@ <div>[<=userProfile]</div>@@LF@@ <div style="margin-top:15px;">[<=blogRecentEntries]</div>@@LF@@ <div style="margin-top:15px;">[<=tags]</div>@@LF@@ <div style="margin-top:15px;">[<=blogArchive]</div>@@LF@@</div>@@LF@@<div style="width:65%;">[<=blogDirectory]</div>', false, false, false, false, 'hideTags hideCreatorHistory userProfile blogDirectory blogRecentEntries blogArchive')
   update NODE_DIRECTORY set DEFAULT_DOCUMENT_ID = '4' where DIRECTORY_ID = '3'
   
   insert into USER_PROFILE (USER_PROFILE_ID, OBJ_VERSION, CREATED_ON) values (4, 0, '2006-06-27 13:45:00')
  @@ -125,7 +126,7 @@
   insert into NODE_DIRECTORY (DIRECTORY_ID, DEFAULT_DOCUMENT_ID) values (9, null)
   
   insert into NODE (NODE_ID, NODE_TYPE, NODE_REVISION, CREATED_BY_USER_ID, AREA_NR, PARENT_NODE_ID, OBJ_VERSION, NAME, WIKINAME, MENU_ITEM, CREATED_ON, LAST_MODIFIED_ON, WRITE_ACCESS_LEVEL, READ_ACCESS_LEVEL, NS_THREAD, NS_LEFT, NS_RIGHT, DISPLAY_POSITION, TAGS) values (10, 'DOCUMENT', 1, 1, 9, 9, 0, 'Welcome!', 'Welcome', true,'2005-06-27 13:45:00', '2005-06-27 13:45:00', 0, 0, 1, 37, 38, 0, 'Travel')
  -insert into NODE_DOCUMENT (DOCUMENT_ID, CONTENT, NAME_AS_TITLE, ENABLE_COMMENTS, ENABLE_COMMENT_FORM, ENABLE_COMMENTS_ON_FEEDS, MACROS) values (10, '++ A secondary headline@@LF@@@@LF@@You should see an image on the right, embedded in the page.@@LF@@@@LF@@+++ A tertiary headline@@LF@@@@LF@@<div style="float:right;border: 1px solid grey; padding:4px;margin-left:10px;margin-bottom:1px;">[=>wiki://13]</div>Login with admin-admin, member-member, special-member, or super-member to try different access levels.@@LF@@@@LF@@To attach or embedd a file, click /Browse/, upload it, and then simply link to it like you would link to another document.@@LF@@@@LF@@++++ A fourth level headline@@LF@@@@LF@@[This guy=>Member Area|member] has a blog.@@LF@@@@LF@@Testing [a link=>wiki://11] to some page, this should be a [broken link=>wiki://99999], a normal link without alternative text [=>wiki://12], a link to to some nonexistent [=>page] and a link to a [different area=>Member Area|member]. Thi!
 s is [a link=>jbseam://1151] to JBoss Seam JIRA and this is a link to Hibernate JIRA: [=>hhh://2549].@@LF@@@@LF@@A plugin:@@LF@@@@LF@@<div style="width:300px;float:left;margin-right:10px;">[<=feedTeasers]</div>@@LF@@@@LF@@Seam Text is a human-friendly language for formatting text in blogs, forums and wikis. It''s easy to enter text in *bold*, /italic/, |monospace|, ~deleted~ or ^superscript^; you can easily enter links, lists, quotes and code blocks.@@LF@@@@LF@@[This is a regular link to the Hibernate website.=>http://hibernate.org]@@LF@@@@LF@@You can *not* enter HTML entities, even escaped: \&amp; \&lt; \&gt; \&quot; \&nbsp;@@LF@@@@LF@@And even emoticons: ;) :-) :-{ ;-)@@LF@@@@LF@@Another plugin on the right:@@LF@@@@LF@@<div style="float:right;margin-left:10px;">[<=lastModifiedDocuments]</div>@@LF@@@@LF@@Here is an ordered list:@@LF@@@@LF@@#JBoss@@LF@@#Seam@@LF@@#Hibernate@@LF@@@@LF@@And this is an unordered list:@@LF@@@@LF@@=jBPM@@LF@@=Drools@@LF@@=Ajax4JSF@@LF@@=Facelets!
 @@LF@@@@LF@@<hr/>@@LF@@@@LF@@"Here is a quote from someone else"@@LF@@
@@LF@@`<p>Here is some code</p>`@@LF@@@@LF@@And some plain HTML (restricted subset):@@LF@@@@LF@@<b>Foo</b>@@LF@@@@LF@@[<=showTags]', true, true, true, true, 'feedTeasers lastModifiedDocuments showTags')
  +insert into NODE_DOCUMENT (DOCUMENT_ID, CONTENT, NAME_AS_TITLE, ENABLE_COMMENTS, ENABLE_COMMENT_FORM, ENABLE_COMMENTS_ON_FEEDS, MACROS) values (10, '++ A secondary headline@@LF@@@@LF@@You should see an image on the right, embedded in the page.@@LF@@@@LF@@+++ A tertiary headline@@LF@@@@LF@@<div style="float:right;border: 1px solid grey; padding:4px;margin-left:10px;margin-bottom:1px;">[=>wiki://13]</div>Login with admin-admin, member-member, special-member, or super-member to try different access levels.@@LF@@@@LF@@To attach or embedd a file, click /Browse/, upload it, and then simply link to it like you would link to another document.@@LF@@@@LF@@++++ A fourth level headline@@LF@@@@LF@@[This guy=>Member Area|member] has a blog.@@LF@@@@LF@@Testing [a link=>wiki://11] to some page, this should be a [broken link=>wiki://99999], a normal link without alternative text [=>wiki://12], a link to to some nonexistent [=>page] and a link to a [different area=>Member Area|member]. Thi!
 s is [a link=>jbseam://1151] to JBoss Seam JIRA and this is a link to Hibernate JIRA: [=>hhh://2549].@@LF@@@@LF@@A plugin:@@LF@@@@LF@@<div style="width:300px;float:left;margin-right:10px;">[<=feedTeasers]</div>@@LF@@@@LF@@Seam Text is a human-friendly language for formatting text in blogs, forums and wikis. It''s easy to enter text in *bold*, /italic/, |monospace|, ~deleted~ or ^superscript^; you can easily enter links, lists, quotes and code blocks.@@LF@@@@LF@@[This is a regular link to the Hibernate website.=>http://hibernate.org]@@LF@@@@LF@@You can *not* enter HTML entities, even escaped: \&amp; \&lt; \&gt; \&quot; \&nbsp;@@LF@@@@LF@@And even emoticons: ;) :-) :-{ ;-)@@LF@@@@LF@@Another plugin on the right:@@LF@@@@LF@@<div style="float:right;margin-left:10px;">[<=lastModifiedDocuments]</div>@@LF@@@@LF@@Here is an ordered list:@@LF@@@@LF@@#JBoss@@LF@@#Seam@@LF@@#Hibernate@@LF@@@@LF@@And this is an unordered list:@@LF@@@@LF@@=jBPM@@LF@@=Drools@@LF@@=Ajax4JSF@@LF@@=Facelets!
 @@LF@@@@LF@@<hr/>@@LF@@@@LF@@"Here is a quote from someone else"@@LF@@
@@LF@@`<p>Here is some code</p>`@@LF@@@@LF@@And some plain HTML (restricted subset):@@LF@@@@LF@@<b>Foo</b>', true, true, true, true, 'feedTeasers lastModifiedDocuments')
   update NODE_DIRECTORY set DEFAULT_DOCUMENT_ID = '10' where DIRECTORY_ID='9'
   
   insert into NODE (NODE_ID, NODE_TYPE, NODE_REVISION, CREATED_BY_USER_ID, AREA_NR, PARENT_NODE_ID, OBJ_VERSION, NAME, WIKINAME, MENU_ITEM, CREATED_ON, LAST_MODIFIED_ON, WRITE_ACCESS_LEVEL, READ_ACCESS_LEVEL, NS_THREAD, NS_LEFT, NS_RIGHT, DISPLAY_POSITION) values (11, 'DOCUMENT', 1, 1, 9, 9, 0, 'Foo', 'Foo', true, '2005-06-27 13:45:00', '2005-06-27 13:45:00', 1, 0, 1, 39, 40, 2)
  @@ -164,7 +165,7 @@
   insert into NODE_DOCUMENT (DOCUMENT_ID, CONTENT, NAME_AS_TITLE, ENABLE_COMMENTS, ENABLE_COMMENT_FORM, ENABLE_COMMENTS_ON_FEEDS, MACROS) values (21, 'Blog Entry Nr.6', true, true, true, false, '')
   
   insert into NODE (NODE_ID, NODE_TYPE, NODE_REVISION, CREATED_BY_USER_ID, AREA_NR, PARENT_NODE_ID, OBJ_VERSION, NAME, WIKINAME, MENU_ITEM, CREATED_ON, LAST_MODIFIED_ON, WRITE_ACCESS_LEVEL, READ_ACCESS_LEVEL, NS_THREAD, NS_LEFT, NS_RIGHT, DISPLAY_POSITION, TAGS) values (22, 'DOCUMENT', 1, 3, 2, 3, 0, 'This is Blog Entry Seven with a long title', 'ThisIsBlogEntrySevenWithALongTitle', false, '2007-04-01 13:02:03', '2007-04-01 13:02:03', 1000, 0, 1, 18, 19, 7, 'Seam Project, Travel')
  -insert into NODE_DOCUMENT (DOCUMENT_ID, CONTENT, NAME_AS_TITLE, ENABLE_COMMENTS, ENABLE_COMMENT_FORM, ENABLE_COMMENTS_ON_FEEDS, MACROS) values (22, 'This is a regular blog entry with some text that we need to fill up the layout. Lets just repeat it a few times: This is a regular blog entry with some text that we need to fill up the layout.This is a regular blog entry with some text that we need to fill up the layout.@@LF@@@@LF@@This is a blog entry with a picture:@@LF@@@@LF@@[=>Another Area|The Moon]@@LF@@@@LF@@And some more text.@@LF@@@@LF@@[<=showTags]', true, true, true, false, 'showTags')
  +insert into NODE_DOCUMENT (DOCUMENT_ID, CONTENT, NAME_AS_TITLE, ENABLE_COMMENTS, ENABLE_COMMENT_FORM, ENABLE_COMMENTS_ON_FEEDS, MACROS) values (22, 'This is a regular blog entry with some text that we need to fill up the layout. Lets just repeat it a few times: This is a regular blog entry with some text that we need to fill up the layout.This is a regular blog entry with some text that we need to fill up the layout.@@LF@@@@LF@@This is a blog entry with a picture:@@LF@@@@LF@@[=>Another Area|The Moon]@@LF@@@@LF@@And some more text.', true, true, true, false, '')
   
   -- And some feed entries for these entris
   insert into FEEDENTRY (FEEDENTRY_ID, OBJ_VERSION, LINK, TITLE, AUTHOR, PUBLISHED_ON, UPDATED_ON, DESCRIPTION_TYPE, DESCRIPTION_VALUE, DOCUMENT_ID) values (1, 0, 'http://www.lacewiki.org/wiki/21.lace', 'Entry Six', 'Regular Member', '2007-04-09 12:45:00', '2007-04-09 12:45:00', 'html', '<p>Blog Entry Nr.6 and a teaser that is not cut manually but automatically after a certain length. Because we strip HTML in the feedTeasers plugin, that can look funny if it is cut in the middle of a list or even in the middle of a word.</p>', 21)
  
  
  



More information about the jboss-cvs-commits mailing list