Changeset 29674

Show
Ignore:
Timestamp:
01/27/08 17:28:42 (10 months ago)
Author:
atchertchian
Message:

NXP-2015: cannot delete an approved document

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • org.nuxeo.ecm.core/branches/1.4/nuxeo-core/src/main/resources/OSGI-INF/LifeCycleCoreExtensions.xml

    r29479 r29674  
    44 
    55  <documentation> 
    6       Nuxeo core life cycle contributions. 
     6    Nuxeo core life cycle contributions. 
    77 
    8       @version 1.0 
    9       @author <a href="mailto:ja@nuxeo.com">Julien Anguenot</a> 
     8    @version 1.0 
     9    @author <a href="mailto:ja@nuxeo.com">Julien Anguenot</a> 
    1010  </documentation> 
    1111 
    12   <require>org.nuxeo.ecm.core.repository.jcr.lifecycle.JCRLifeCycleManager</require> 
     12  <require> 
     13    org.nuxeo.ecm.core.repository.jcr.lifecycle.JCRLifeCycleManager 
     14  </require> 
    1315 
    14   <extension target="org.nuxeo.ecm.core.lifecycle.LifeCycleService" 
    15       point="lifecycle"> 
     16  <extension target="org.nuxeo.ecm.core.lifecycle.LifeCycleService" 
     17    point="lifecycle"> 
    1618 
    1719    <documentation> 
     
    4547          </transitions> 
    4648        </state> 
    47         <state name="approved" description="Content has been validated"/> 
     49        <state name="approved" description="Content has been validated"> 
     50          <transitions> 
     51            <transition>delete</transition> 
     52          </transitions> 
     53        </state> 
    4854        <state name="obsolete" description="Content is obsolete"> 
    4955          <transitions> 
     
    6167 
    6268  <extension target="org.nuxeo.ecm.core.lifecycle.LifeCycleService" 
    63           point="types"> 
     69    point="types"> 
    6470 
    6571    <documentation> 
  • org.nuxeo.ecm.platform/branches/5.1/nuxeo-platform-webapp-core/src/main/java/org/nuxeo/ecm/webapp/action/DeleteActionsBean.java

    r29616 r29674  
    506506                document.followTransition(DELETE_TRANSITION); 
    507507            } else { 
     508                // FIXME: should be checked sooner so that no exception is thrown 
    508509                throw new ClientException("Impossible to move document=" 
    509510                        + docModel.getPathAsString() 
     
    865866    } 
    866867 
     868    // FIXME: should check permissions 
    867869    public boolean getCanRestoreCurrentDoc() throws ClientException { 
    868870        DocumentModel currentDoc = navigationContext.getCurrentDocument();