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

Christian Bauer christian at hibernate.org
Mon Apr 9 04:43:54 EDT 2007


  User: cbauer  
  Date: 07/04/09 04:43:54

  Modified:    examples/wiki/src/etc  import-dev.sql
  Log:
  Plugin for feed teaser preview
  
  Revision  Changes    Path
  1.16      +14 -2     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.15
  retrieving revision 1.16
  diff -u -b -r1.15 -r1.16
  --- import-dev.sql	8 Apr 2007 15:10:34 -0000	1.15
  +++ import-dev.sql	9 Apr 2007 08:43:54 -0000	1.16
  @@ -39,6 +39,12 @@
   
   insert into PREFERENCE(PREF_ID, OBJ_VERSION, COMPONENT_NAME, PROPERTY_NAME, LONG_VALUE)     values (20, 0, 'blogDirectoryPreferences', 'pageSize', '5')
   
  +insert into PREFERENCE(PREF_ID, OBJ_VERSION, COMPONENT_NAME, PROPERTY_NAME, STRING_VALUE)   values (21, 0, 'feedTeasersPreferences', 'teaserTitle', 'Site news feed:')
  +insert into PREFERENCE(PREF_ID, OBJ_VERSION, COMPONENT_NAME, PROPERTY_NAME, LONG_VALUE)     values (22, 0, 'feedTeasersPreferences', 'feedIdentifier', '1')
  +insert into PREFERENCE(PREF_ID, OBJ_VERSION, COMPONENT_NAME, PROPERTY_NAME, LONG_VALUE)     values (23, 0, 'feedTeasersPreferences', 'numberOfTeasers', '5')
  +insert into PREFERENCE(PREF_ID, OBJ_VERSION, COMPONENT_NAME, PROPERTY_NAME, LONG_VALUE)     values (24, 0, 'feedTeasersPreferences', 'truncateDescription', '200')
  +insert into PREFERENCE(PREF_ID, OBJ_VERSION, COMPONENT_NAME, PROPERTY_NAME, BOOLEAN_VALUE)  values (25, 0, 'feedTeasersPreferences', 'showAuthor', true)
  +
   // Development test data
   
   // Some users and their home directories/home pages
  @@ -73,7 +79,7 @@
   // Some guest readable/writable directories and pages for quick UI testing
   insert into NODE (NODE_ID, NODE_TYPE, NODE_REVISION, CREATED_BY_USER_ID, AREA_NR, PARENT_NODE_ID, NODE_POSITION, OBJ_VERSION, NAME, WIKINAME, MENU_ITEM, CREATED_ON, LAST_MODIFIED_ON, WRITE_ACCESS_LEVEL, READ_ACCESS_LEVEL) values (9, 'DIRECTORY', 1, 1, 9, 1, 1, 0, 'Another Area', 'AnotherArea', true, '2005-06-27 13:45:00', '2005-06-27 13:45:00', 0, 0)
   
  -insert into NODE (NODE_ID, NODE_TYPE, NODE_REVISION, CREATED_BY_USER_ID, AREA_NR, PARENT_NODE_ID, NODE_POSITION, OBJ_VERSION, NAME, WIKINAME, MENU_ITEM, CONTENT, CREATED_ON, LAST_MODIFIED_ON, WRITE_ACCESS_LEVEL, READ_ACCESS_LEVEL, NAME_AS_TITLE) values (10, 'DOCUMENT', 1, 1, 9, 9, 0, 0, 'Welcome!', 'Welcome', true,'You should see an image on the right, embedded in the page.@@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@@[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].@@LF@@@@LF@@A plugin:@@LF@@@@LF@@<div style="float:left;margin-right:10px;">[<=lastModifiedDocuments]</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@@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@@"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@@You !
 should see some comments on this document.[<=comments]','2005-06-27 13
:45:00', '2005-06-27 13:45:00', 0, 0, true)
  +insert into NODE (NODE_ID, NODE_TYPE, NODE_REVISION, CREATED_BY_USER_ID, AREA_NR, PARENT_NODE_ID, NODE_POSITION, OBJ_VERSION, NAME, WIKINAME, MENU_ITEM, CONTENT, CREATED_ON, LAST_MODIFIED_ON, WRITE_ACCESS_LEVEL, READ_ACCESS_LEVEL, NAME_AS_TITLE) values (10, 'DOCUMENT', 1, 1, 9, 9, 0, 0, 'Welcome!', 'Welcome', true,'You should see an image on the right, embedded in the page.@@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@@[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].@@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@@"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@@You should see some comments on this document.[<=comments]','2005-06-27 13:45:00', '2005-06-27 13:45:00', 0, 0, true)
   
   insert into NODE (NODE_ID, NODE_TYPE, NODE_REVISION, CREATED_BY_USER_ID, AREA_NR, PARENT_NODE_ID, NODE_POSITION, OBJ_VERSION, NAME, WIKINAME, MENU_ITEM, CONTENT, CREATED_ON, LAST_MODIFIED_ON, WRITE_ACCESS_LEVEL, READ_ACCESS_LEVEL) values (11, 'DOCUMENT', 1, 1, 9, 9, 1, 0, 'Foo', 'Foo', true, 'Foo@@LF@@@@LF@@[<=comments]','2005-06-27 13:45:00', '2005-06-27 13:45:00', 1, 0)
   insert into NODE (NODE_ID, NODE_TYPE, NODE_REVISION, CREATED_BY_USER_ID, AREA_NR, PARENT_NODE_ID, NODE_POSITION, OBJ_VERSION, NAME, WIKINAME, MENU_ITEM, CONTENT, CREATED_ON, LAST_MODIFIED_ON, WRITE_ACCESS_LEVEL, READ_ACCESS_LEVEL) values (12, 'DOCUMENT', 1, 1, 9, 9, 2, 0, 'Bar', 'Bar', false ,'Bar','2005-06-27 13:45:00', '2005-06-27 13:45:00', 1, 0)
  @@ -94,5 +100,11 @@
   insert into NODE (NODE_ID, NODE_TYPE, NODE_REVISION, CREATED_BY_USER_ID, AREA_NR, PARENT_NODE_ID, NODE_POSITION, OBJ_VERSION, NAME, WIKINAME, MENU_ITEM, CONTENT, CREATED_ON, LAST_MODIFIED_ON, WRITE_ACCESS_LEVEL, READ_ACCESS_LEVEL, NAME_AS_TITLE) values (19, 'DOCUMENT', 1, 3, 2, 3, 4, 0, 'Entry Four', 'EntryFour', false ,'Blog Entry Nr.4','2005-06-27 13:48:00', '2005-06-27 13:45:00', 1000, 0, true)
   insert into NODE (NODE_ID, NODE_TYPE, NODE_REVISION, CREATED_BY_USER_ID, AREA_NR, PARENT_NODE_ID, NODE_POSITION, OBJ_VERSION, NAME, WIKINAME, MENU_ITEM, CONTENT, CREATED_ON, LAST_MODIFIED_ON, WRITE_ACCESS_LEVEL, READ_ACCESS_LEVEL, NAME_AS_TITLE) values (20, 'DOCUMENT', 1, 3, 2, 3, 5, 0, 'Entry Five', 'EntryFive', false ,'Blog Entry Nr.5','2005-06-27 13:49:00', '2005-06-27 13:45:00', 1000, 0, true)
   insert into NODE (NODE_ID, NODE_TYPE, NODE_REVISION, CREATED_BY_USER_ID, AREA_NR, PARENT_NODE_ID, NODE_POSITION, OBJ_VERSION, NAME, WIKINAME, MENU_ITEM, CONTENT, CREATED_ON, LAST_MODIFIED_ON, WRITE_ACCESS_LEVEL, READ_ACCESS_LEVEL, NAME_AS_TITLE) values (21, 'DOCUMENT', 1, 3, 2, 3, 6, 0, 'Entry Six', 'EntrySix', false ,'Blog Entry Nr.6','2005-06-27 13:50:00', '2005-06-27 13:45:00', 1000, 0, true)
  -insert into NODE (NODE_ID, NODE_TYPE, NODE_REVISION, CREATED_BY_USER_ID, AREA_NR, PARENT_NODE_ID, NODE_POSITION, OBJ_VERSION, NAME, WIKINAME, MENU_ITEM, CONTENT, CREATED_ON, LAST_MODIFIED_ON, WRITE_ACCESS_LEVEL, READ_ACCESS_LEVEL, NAME_AS_TITLE) values (22, 'DOCUMENT', 1, 3, 2, 3, 7, 0, 'Entry Seven', 'EntrySeven', false ,'This is a blog entry with a picture:@@LF@@@@LF@@[=>Another Area|The Moon]','2005-06-27 13:51:00', '2005-06-27 13:45:00', 1000, 0, true)
  +insert into NODE (NODE_ID, NODE_TYPE, NODE_REVISION, CREATED_BY_USER_ID, AREA_NR, PARENT_NODE_ID, NODE_POSITION, OBJ_VERSION, NAME, WIKINAME, MENU_ITEM, CONTENT, CREATED_ON, LAST_MODIFIED_ON, WRITE_ACCESS_LEVEL, READ_ACCESS_LEVEL, NAME_AS_TITLE) values (22, 'DOCUMENT', 1, 3, 2, 3, 7, 0, 'This is Blog Entry Seven', 'ThisIsBlogEntrySeven', false ,'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]','2005-06-27 13:51:00', '2005-06-27 13:45:00', 1000, 0, true)
  +
  +// 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', 'text/html', '<p>Blog Entry Nr.6</p>', 21)
  +insert into FEED_FEEDENTRY (FEEDENTRY_ID, FEED_ID) values ('1', '1')
  +insert into FEEDENTRY (FEEDENTRY_ID, OBJ_VERSION, LINK, TITLE, AUTHOR, PUBLISHED_ON, UPDATED_ON, DESCRIPTION_TYPE, DESCRIPTION_VALUE, DOCUMENT_ID) values (2, 0, 'http://www.lacewiki.org/wiki/22.lace', 'This is Blog Entry Seven', 'Regular Member', '2007-04-09 13:45:00', '2007-04-09 13:45:00', 'text/html', '<p>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.</p><p>@@LF@@@@LF@@This is a blog entry with a picture:</p>@@LF@@@@LF@@<p>[Embedded Image]</p></p>', 22)
  +insert into FEED_FEEDENTRY (FEEDENTRY_ID, FEED_ID) values ('2', '1')
   
  
  
  



More information about the jboss-cvs-commits mailing list