You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jackrabbit.apache.org by Apache Wiki <wi...@apache.org> on 2009/12/07 09:46:34 UTC

[Jackrabbit Wiki] Update of "ExamplesPage" by ThomasMueller

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Jackrabbit Wiki" for change notification.

The "ExamplesPage" page has been changed by ThomasMueller.
The comment on this change is: TOC.
http://wiki.apache.org/jackrabbit/ExamplesPage?action=diff&rev1=31&rev2=32

--------------------------------------------------

  
  Please feel free to add your own examples.
  
+ <<TableOfContents>>
+ 
- === Importing a File ===
+ == Importing a File ==
  
  Also see: [[http://svn.apache.org/repos/asf/jackrabbit/sandbox/examples/src/java/org/apache/jackrabbit/examples/FSImport.java|FSImport.java]] for more complete filesystem examples.
  
@@ -33, +35 @@

  }}}
  
  
- === Renaming a Node ===
+ == Renaming a Node ==
  
  {{{
      void rename(Node node, String newName) throws RepositoryException 
@@ -44, +46 @@

  
  
  
- === Register a Node Type ===
+ == Register a Node Type ==
  
  There are a few solutions in the works. For example, see [[http://svn.osafoundation.org/server/commons/trunk/jackrabbit/|OSAF offline tool]],  [[http://issues.apache.org/jira/browse/GRFT-23|Graffito Jira Issue]].
  
@@ -62, +64 @@

      }
  }}}
  
- === Register a Node Type [CND] ===
+ == Register a Node Type [CND] ==
  
  Register one or more node types using CND.  CND is described in
  http://jackrabbit.apache.org/node-type-notation.html.
@@ -107, +109 @@

      }
  }}}
  
- === Versioning Basics ===
+ == Versioning Basics ==
  
  {{{
      public void versioningBasics (Node parentNode, Session session) throws RepositoryException
@@ -140, +142 @@

  }}}
  
  
- === Creating a Workspace ===
+ == Creating a Workspace ==
  
  {{{
  ((org.apache.jackrabbit.core.WorkspaceImpl)workspace).createWorkspace(name);
  }}}
  
  
- === Deleting a Workspace ===
+ == Deleting a Workspace ==
  
  {{{
  You have to manually remove the workspace.xml - there's no programmatic way yet.
  }}}
  
  
- === Shutting Down the Repository ===
+ == Shutting Down the Repository ==
  
  {{{
  javax.jcr.Session session = ...;
  ((org.apache.jackrabbit.core.RepositoryImpl) session.getRepository()).shutdown();
  }}}
  
- === Simple Standalone RMI Server / Client ===
+ == Simple Standalone RMI Server / Client ==
  
  Server:
  {{{
@@ -178, +180 @@

  Repository repository = factory.getRepository("rmi://localhost:1100/jackrabbit");
  }}}
  
- === Jackrabbit Cache Configuration ===
+ == Jackrabbit Cache Configuration ==
  This info has moved to the CacheManager page.
  
- === Is the Repository Running? ===
+ == Is the Repository Running? ==
  
  {{{
  /**