Changeset 29680

Show
Ignore:
Timestamp:
01/27/08 17:56:13 (10 months ago)
Author:
tdelprat
Message:

NXP-2010
Forward ACP information in beforeUpdate and Update events

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • org.nuxeo.ecm.core/branches/1.4/nuxeo-core-api/src/main/java/org/nuxeo/ecm/core/api/event/CoreEventConstants.java

    r21307 r29680  
    3838    public static final String DOCUMENT = "document"; 
    3939 
     40    public static final String ACP = "acp"; 
     41 
    4042    /** 
    4143     * Path the of the container of the empty document model that is being 
  • org.nuxeo.ecm.core/branches/1.4/nuxeo-core/src/main/java/org/nuxeo/ecm/core/api/AbstractSession.java

    r29634 r29680  
    530530            Map<String, Object> options = new HashMap<String, Object>(); 
    531531            options.put(CoreEventConstants.DOCUMENT, doc); 
     532            options.put(CoreEventConstants.ACP, docModel.getACP()); 
    532533            notifyEvent(DocumentEventTypes.BEFORE_DOC_SECU_UPDATE, docModel, 
    533534                    options, null, null, true); 
    534535            getSession().getSecurityManager().setACP(doc, acp, overwrite); 
    535536            docModel = readModel(doc, null); 
     537            options.put(CoreEventConstants.ACP, acp); 
    536538            notifyEvent(DocumentEventTypes.DOCUMENT_SECURITY_UPDATED, docModel, 
    537539                    options, null, null, true);