You are viewing a plain text version of this content. The canonical link for it is here.
Posted to docs@cocoon.apache.org by st...@outerthought.org on 2003/10/03 17:00:09 UTC

[WIKI-UPDATE] Blocks GT2003Hackathon BlocksFSLayout BlocksDefinition BlockIdentification BlocksCob BlocksWiring Fri Oct 3 17:00:09 2003

Page: http://wiki.cocoondev.org/Wiki.jsp?page=Blocks , version: 26 on Fri Oct  3 14:50:25 2003 by 80.105.91.155

- Blocks are not active nor passive. Just like electronic chips, they are useless by themselves, but provide functionality if properly connected with an external system. This is not the behavior of engines, for example, which are active by themselves. Calling them components would create conflicts. Blocks are not used anywhere. While this could create a problem at first, later it's a good thing because it would make the terminology very precise for what we mean blocks are. 
+ Blocks are not active nor passive. Just like electronic chips, they are useless by themselves, but provide functionality if properly connected with an external system. This is not the behavior of engines, for example, which are active by themselves. Calling them components would create conflicts. Blocks are used by some Avalon containers. There is a potential conflict here, but there is also potential overlap (it could be possible, in the future, to install an Avalon Block in Cocoon) so the use of the same name is justified. 
+ * [Avalon Blocks|http://avalon.apache.org/] -- both Merlin and Phoenix are Avalon containers that have the notion of functional blocks.
+ 


Page: http://wiki.cocoondev.org/Wiki.jsp?page=GT2003Hackathon , version: 88 on Fri Oct  3 14:45:26 2003 by SylvainWallez

- * (Sylvain) [RT]-Extending the use of flow scripts to indirect sitemap components (matchers, actions & selectors) which are also part or the controller in the MVC model.
?             ^  ^

+ * (Sylvain) (RT)-Extending the use of flow scripts to indirect sitemap components (matchers, actions & selectors) which are also part or the controller in the MVC model.
?             ^  ^



Page: http://wiki.cocoondev.org/Wiki.jsp?page=BlocksFSLayout , version: 3 on Fri Oct  3 14:39:21 2003 by 80.105.91.155

-            |     +- (the contents of cob:mycompany.com/webmail/1.3.43)
?                                      ^^^

+            |     +- (the contents of http://mycompany.com/webmail/1.3.43)
?                                      ^^^^ ++

-            |     +- (the contents of cob:yetanothercompany.com/skins/fancy/1.2.2)
?                                      ^^^

+            |     +- (the contents of http://yetanothercompany.com/skins/fancy/1.2.2)
?                                      ^^^^ ++

-            |     +- (the contents of cob:mycompany.com/skins/corporate/34.3.345)
?                                      ^^^

+            |     +- (the contents of http://mycompany.com/skins/corporate/34.3.345)
?                                      ^^^^ ++

-                  +- (the contents of cob:mycompany.com/repositories/email/exchange/3.2.1}}}
?                                      ^^^

+                  +- (the contents of http://mycompany.com/repositories/email/exchange/3.2.1}}}
?                                      ^^^^ ++



Page: http://wiki.cocoondev.org/Wiki.jsp?page=BlocksDefinition , version: 21 on Fri Oct  3 14:51:43 2003 by 80.105.91.155

- {{{   /BLOCK-INF}}}
?         ----

+ {{{   /COB-INF}}}
?        ++

- {{{  /BLOCK-INF/classes
?        ----

+ {{{  /COB-INF/classes
?       ++

-   /BLOCK-INF/lib}}}
?     ----

+   /COB-INF/lib}}}
?    ++

- {{{  /BLOCK-INF/block.xml}}}
?        ----

+ {{{  /COB-INF/block.xml}}}
?       ++

- {{{  /BLOCK-INF/block.xconf}}}
?        ----

+ {{{  /COB-INF/block.xconf}}}
?       ++

- 


Page: http://wiki.cocoondev.org/Wiki.jsp?page=BlockIdentification , version: 2 on Fri Oct  3 14:58:01 2003 by 80.105.91.155

- {{{      cob:organization/name/x.y(.z)}}}
?          ^^^

+ {{{      http://organization/name/x.y(.z)}}}
?          ^^^^ ++

- * {{cob:}} is a virtual protocol that is used instead of http:// to avoid the problem of mistaking the URI for a URL
+ * {{http:}} is the hypertext transfert protocol. This is used to allow the identifier (which is a URI and should be considered as such) also to be dereferencable (the URI can be treated like a URL)
- * {{organization}} is the unique identifier for the organization that is responsible for the maintenance of that identifier. the ICANN domain name should be used (for example, {{apache.org}} for the ASF)
+ * {{organization}} is the unique identifier for the organization that is responsible for the maintenance of that identifier. the ICANN domain name should be used (for example, {{apache.org}} for the ASF). It is up to the URI creator to make sure that the URI is potentially dereferencable (i.e., if you don't use "www." in front, your DNS should be properly configured to map the domain name as a machine name)
- NOTE: identifiers are case insensitive.
+ NOTE: even if URI are generally case sensitive, block identifiers will be treated as case insensitive.
- * cob:apache.org/cocoon/PDF/2.6
?   ^^^

+ * http://apache.org/cocoon/PDF/2.6
?   ^^^^ ++

- * cob:apache.org/cocoon/Fop/3.4.34
?   ^^^

+ * http://apache.org/cocoon/Fop/3.4.34
?   ^^^^ ++

- * cob:apache.org/cocoon/iText/1.0.43
?   ^^^

+ * http://apache.org/cocoon/iText/1.0.43
?   ^^^^ ++

- * cob:mycompany.com/mydepartment/myself/myblock/3.2.23
?   ^^^

+ * http://mycompany.com/mydepartment/myself/myblock/3.2.23
?   ^^^^ ++

- * cob:cocoon.apache.org/whatever/2.3.434
- 
- the use of the virtual host instead of the domain name should be 
- avoided because it mixes location and identification concerns.
- 
- * cob:apache.org/cocoon/block/whatever/2.3.4
- 
- the inclusion of the "block" name should be avoided because redundant 
- (the cob virtual protocol was introduced exactly to specify block 
- specificity and avoid location and identification semantic collisions)
- 
- * cob:apache.org/cocoon/PDF/Fop/2.3.43
?   ^^^

+ * http://apache.org/cocoon/PDF/Fop/2.3.43
?   ^^^^ ++

- 
- * http://mysite.com/blah/3/2
- 
- the use of the HTTP protocol makes it hard to distinguish between URL and a URI
- ex: both "cob:apache.org/blah/1.0" and "cob:apache.org/blah/3.43.342" are matched by "cob:apache.org/blah"
?           ^^^                           ^^^                                           ^^^

+ ex: both "http://apache.org/blah/1.0" and "http://apache.org/blah/3.43.342" are matched by "http://apache.org/blah"
?           ^^^^ ++                          ^^^^ ++                                          ^^^^ ++

- ex: depending on "cob:apache.org/blah/2.0.34" will match
?                   ^^^

+ ex: depending on "http://apache.org/blah/2.0.34" will match
?                   ^^^^ ++

- * cob:apache.org/blah/2.0.345
?   ^^^

+ * http://apache.org/blah/2.0.345
?   ^^^^ ++

- * cob:apache.org/blah/2.3.23
?   ^^^

+ * http://apache.org/blah/2.3.23
?   ^^^^ ++

- * cob:apache.org/blah/1.0.0
?   ^^^

+ * http://apache.org/blah/1.0.0
?   ^^^^ ++

- * cob:apache.org/blah/34.323.324534
?   ^^^

+ * http://apache.org/blah/34.323.324534
?   ^^^^ ++



Page: http://wiki.cocoondev.org/Wiki.jsp?page=BlocksCob , version: 7 on Fri Oct  3 14:43:51 2003 by 80.105.91.155

-        id="cob:mycompany.com/webmail/1.3.43">
?            ^^^

+        id="http://mycompany.com/webmail/1.3.43">
?            ^^^^ ++

-           block="cob:mycompany.com/skin" 
?                  ^^^

+           block="http://mycompany.com/skin" 
?                  ^^^^ ++

-           block="cob:mycompany.com/skin/2.0 
?                  ^^^

+           block="http://mycompany.com/skin/2.0 
?                  ^^^^ ++

-           block="cob:anothercompany.com/MailRepository/2.0" 
?                  ^^^

+           block="http://anothercompany.com/MailRepository/2.0" 
?                  ^^^^ ++

-        id="cob:yetanothercompany.com/skins/fancy/1.2.2">
?            ^^^

+        id="http://yetanothercompany.com/skins/fancy/1.2.2">
?            ^^^^ ++

-    <implements block="cob:mycompany.com/skin/1.2"/>
?                       ^^^

+    <implements block="http://mycompany.com/skin/1.2"/>
?                       ^^^^ ++

-        id="cob:mycompany.com/skins/corporate/34.3.345">
?            ^^^

+        id="http://mycompany.com/skins/corporate/34.3.345">
?            ^^^^ ++

-     <implements block="cob:mycompany.com/skin/2.3"/>
?                        ^^^

+     <implements block="http://mycompany.com/skin/2.3"/>
?                        ^^^^ ++

-     <extends block="cob:yetanothercompany.com/skins/fancy/1.2.2"/>
?                     ^^^

+     <extends block="http://yetanothercompany.com/skins/fancy/1.2.2"/>
?                     ^^^^ ++

-        id="cob:mycompany.com/repositories/email/exchange/3.2.1">
?            ^^^

+        id="http://mycompany.com/repositories/email/exchange/3.2.1">
?            ^^^^ ++

-     <implements block="cob:anothercompany.com/MailRepository/2.0"/>
?                        ^^^

+     <implements block="http://anothercompany.com/MailRepository/2.0"/>
?                        ^^^^ ++

-     <provides component="com.anothercompany.repository.Repository"/>
?                          ^^^^

+     <provides component="http://anothercompany.repository.Repository"/>
?                          ^^^^^^^

- 


Page: http://wiki.cocoondev.org/Wiki.jsp?page=BlocksWiring , version: 5 on Fri Oct  3 14:41:47 2003 by 80.105.91.155

-   <block id="cob:mycompany.com/webmail/1.3.43" 
?              ^^^

+   <block id="http://mycompany.com/webmail/1.3.43" 
?              ^^^^ ++

-         name="external-skin">cob:yetanothercompany.com/skins/fancy/1.2.2</connection>
?                              ^^^

+         name="external-skin">http://yetanothercompany.com/skins/fancy/1.2.2</connection>
?                              ^^^^ ++

-         name="internal-skin">cob:mycompany.com/skins/corporate/34.3.345</connection>
?                              ^^^

+         name="internal-skin">http://mycompany.com/skins/corporate/34.3.345</connection>
?                              ^^^^ ++

-         name="repository">cob:mycompany.com/repositories/email/exchange/3.2.1</connection>
?                           ^^^

+         name="repository">http://mycompany.com/repositories/email/exchange/3.2.1</connection>
?                           ^^^^ ++

-   <block id="cob:mycompany.com/repositories/email/exchange/3.2.1" 
?              ^^^

+   <block id="http://mycompany.com/repositories/email/exchange/3.2.1" 
?              ^^^^ ++

-   <block id="cob:yetanothercompany.com/skins/fancy/1.2.2" 
?              ^^^

+   <block id="http://yetanothercompany.com/skins/fancy/1.2.2" 
?              ^^^^ ++

-   <block id="cob:mycompany.com/skins/corporate/34.3.345" 
?              ^^^

+   <block id="http://mycompany.com/skins/corporate/34.3.345" 
?              ^^^^ ++

- 
- ----
- !Relevant sections from original RT
- {{{
-   cob:mycompany.com/webmail/1.3.43
-    located at -> WEB-INF/blocks/384938958499
-    mounted on -> /mail/
-    "external-skin" -> cob:yetanothercompany.com/skins/fancy/1.2.2
-    "internal-skin" -> cob:mycompany.com/skins/corporate/34.3.345
-    "repository" -> cob:mycompany.com/repositories/email/exchange/3.2.1
-    configured as:
-     user -> "guest"
-     password -> "sj3u493"
- 
-   cob:mycompany.com/repositories/email/exchange/3.2.1
-    located at -> WEB-INF/blocks/394781274834
-    configured as:
-      host -> "mail.blah.org"
- 
-   cob:yetanothercompany.com/skins/fancy/1.2.2
-    located at -> WEB-INF/blocks/947384127832
- 
-   cob:mycompany.com/skins/corporate/34.3.345
-    located at -> WEB-INF/blocks/746394782637
- }}}
- the file system layout (relative to the cocoon webapp context) is
- {{{
-     [-] WEB-INF
-      L___ [-] blocks
-            L___ wiring.xml
-            L___ [-] 384938958499
-            |     L___ [-] BLOCK-INF
-            |     |     L___ block.xml
-            |     L_ (the contents of cob:mycompany.com/webmail/1.3.43)
-            L___ [-] 947384127832
-            |     L___ [-] BLOCK-INF
-            |     |     L___ block.xml
-            |     L_ (the contents of 
- cob:yetanothercompany.com/skins/fancy/1.2.2)
-            L___ [-] 746394782637
-            |     L___ [-] BLOCK-INF
-            |     |     L___ block.xml
-            |     L_ (the contents of 
- cob:mycompany.com/skins/corporate/34.3.345)
-            L___ [-] 394781274834
-                  L___ [-] BLOCK-INF
-                  |     L___ block.xml
-                  L_ (the contents of 
- cob:mycompany.com/repositories/email/exchange/3.2.1
- }}}
- where
- 
-   wiring.xml contains the block IDs (which also identifies their 
- location on disk) wiring, mounting and configurations.
- 
-   block.xml contains the block metadata (which belong to the block and 
- cannot be changed at deployment time).