logo       

svn commit: r432242 - /lenya/trunk/src/java/org/apache/lenya/cms/repository: msg#00191

Subject: svn commit: r432242 - /lenya/trunk/src/java/org/apache/lenya/cms/repository/RepositoryManagerImpl.java
Author: andreas
Date: Thu Aug 17 07:06:58 2006
New Revision: 432242

URL: http://svn.apache.org/viewvc?rev=432242&view=rev
Log:
Allow to delete nodes without locking.

Modified:
    
lenya/trunk/src/java/org/apache/lenya/cms/repository/RepositoryManagerImpl.java

Modified: 
lenya/trunk/src/java/org/apache/lenya/cms/repository/RepositoryManagerImpl.java
URL: 
http://svn.apache.org/viewvc/lenya/trunk/src/java/org/apache/lenya/cms/repository/RepositoryManagerImpl.java?rev=432242&r1=432241&r2=432242&view=diff
==============================================================================
--- 
lenya/trunk/src/java/org/apache/lenya/cms/repository/RepositoryManagerImpl.java 
(original)
+++ 
lenya/trunk/src/java/org/apache/lenya/cms/repository/RepositoryManagerImpl.java 
Thu Aug 17 07:06:58 2006
@@ -64,11 +64,7 @@
      * @see 
org.apache.lenya.cms.repository.RepositoryManager#delete(org.apache.lenya.cms.repository.Node)
      */
     public void delete(Node node) throws RepositoryException {
-        if (!node.isLocked()) {
-            throw new RuntimeException("Cannot delete node [" + node + "]: not 
locked!");
-        } else {
-            node.registerRemoved();
-        }
+        node.registerRemoved();
     }
 
     public Session createSession(Identity identity) throws RepositoryException 
{


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
qnx.openqnx.dev...    politics.lenini...    audio.emagic.ex...    tex.texinfo.gen...    handhelds.linux...    ietf.sipping/20...    lang.erlang.gen...    cygwin.talk/200...    yellowdog.gener...    mozilla.devel.l...    xfree86.newbie/...    openbsd.ports/2...    db.oracle.devel...    kde.kalyxo.deve...    user-groups.lin...    bbc.cvs/2003-04...    gnu.libtool.bug...    redhat.k12osn/2...    emulators.wine....    freebsd.devel.d...    search.xapian.g...    java.izpack.use...    network.mrtg.us...    windows.total-c...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe