[jboss-cvs] jboss-seam/examples/wiki/src/etc ...
Christian Bauer
christian at hibernate.org
Mon Apr 9 06:57:59 EDT 2007
User: cbauer
Date: 07/04/09 06:57:59
Modified: examples/wiki/src/etc import-dev.sql
Log:
Added customizable wiki link protocols (e.g. for automatic links to JIRA issues)
Revision Changes Path
1.18 +10 -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.17
retrieving revision 1.18
diff -u -b -r1.17 -r1.18
--- import-dev.sql 9 Apr 2007 08:48:00 -0000 1.17
+++ import-dev.sql 9 Apr 2007 10:57:59 -0000 1.18
@@ -12,6 +12,11 @@
insert into FEED (FEED_ID, OBJ_VERSION, TITLE, DESCRIPTION, AUTHOR, COPYRIGHT, PUBLISHED_ON, DIRECTORY_ID) values (1, 0, 'ROOT', null, 'Lacewiki', null, '1976-06-26 11:11:11', 1)
insert into NODE (NODE_ID, NODE_TYPE, NODE_REVISION, CREATED_BY_USER_ID, AREA_NR, PARENT_NODE_ID, NODE_POSITION, DEFAULT_DOCUMENT_ID, OBJ_VERSION, NAME, WIKINAME, MENU_ITEM, CREATED_ON, LAST_MODIFIED_ON, WRITE_ACCESS_LEVEL, READ_ACCESS_LEVEL) values (2, 'DIRECTORY', 1, 1, 2, 1, 0, null, 0, 'Member Area', 'MemberArea', true, '2005-06-27 13:45:00', '2005-06-27 13:45:00', 1000, 0)
+// Link protocols, can be customized
+
+insert into LINK_PROTOCOL (LINK_PROTOCOL_ID, OBJ_VERSION, PREFIX, LINK) values (1, 0, 'jbseam', 'http://jira.jboss.com/jira/browse/JBSEAM-[[link]]')
+insert into LINK_PROTOCOL (LINK_PROTOCOL_ID, OBJ_VERSION, PREFIX, LINK) values (2, 0, 'hhh', 'http://opensource.atlassian.com/projects/hibernate/browse/HHH-[[link]]')
+
// Required system default configuration
insert into PREFERENCE(PREF_ID, OBJ_VERSION, COMPONENT_NAME, PROPERTY_NAME, STRING_VALUE) values (1, 0, 'wikiPreferences', 'baseUrl', 'http://www.lacewiki.org')
@@ -79,7 +84,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="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: \& \< \> \" \ @@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, 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]. This 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: \& \< \> \" \ @@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)
@@ -104,9 +109,9 @@
// 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 FEED_FEEDENTRY (FEEDENTRY_ID, FEED_ID) values ('1', '2')
+insert into FEED_FEEDENTRY (FEEDENTRY_ID, FEED_ID) values (1, 1)
+insert into FEED_FEEDENTRY (FEEDENTRY_ID, FEED_ID) values (1, 2)
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')
-insert into FEED_FEEDENTRY (FEEDENTRY_ID, FEED_ID) values ('2', '2')
+insert into FEED_FEEDENTRY (FEEDENTRY_ID, FEED_ID) values (2, 1)
+insert into FEED_FEEDENTRY (FEEDENTRY_ID, FEED_ID) values (2, 2)
More information about the jboss-cvs-commits
mailing list