jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Jackrabbit Wiki] Update of "ExamplesPage" by RobertRitchy
Date Fri, 08 Jul 2005 19:36:20 GMT
Dear Wiki user,

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

The following page has been changed by RobertRitchy:
http://wiki.apache.org/jackrabbit/ExamplesPage

------------------------------------------------------------------------------
+ This page will be used to show solutions to common problems related to JSR 170. These examples
shouldn't necessarily be considered '''Best Practices''' because things like error checking
have been omitted to keep them simple.
- 
- 
- This page will be used to show solutions to common problems related to JSR 170.
  
  
  '''Importing a File'''
@@ -26, +24 @@

      }
  }}}
  
+ '''Renaming a Property or Node'''
+ {{{
+     void rename (Item item, String newName) throws RepositoryException 
+     {
+       item.getSession().move(item.getPath(), item.getParent().getPath() + "/" + newName);
+     }
+ }}}
+ 

Mime
View raw message