Changeset 30106

Show
Ignore:
Timestamp:
02/12/08 21:56:15 (9 months ago)
Author:
bstefanescu
Message:

merged from branch 29591, 29492

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • org.nuxeo.ecm.core/trunk/nuxeo-core-api/src/main/java/org/nuxeo/ecm/core/api/DocumentModel.java

    r28346 r30106  
    600600     */ 
    601601    void setPropertyValue(String xpath, Serializable value) throws PropertyException; 
     602     
     603    /** 
     604     * Returns the flags set on the document model. 
     605     *  
     606     * @return 
     607     */ 
     608    long getFlags(); 
    602609 
    603610} 
  • org.nuxeo.ecm.core/trunk/nuxeo-core-api/src/main/java/org/nuxeo/ecm/core/api/impl/DocumentModelImpl.java

    r29428 r30106  
    443443                // TODO: how to handle exceptions? 
    444444                log.error("ERROR getting the data model: " + schema + " for " 
    445                         + ref); 
     445                        + ref,e); 
    446446            } 
    447447        } 
     
    627627            } catch (Exception e) { 
    628628                // XXX this exception shouldn't be swallowed! 
    629                 log.error("ERROR getting the ACP for " + ref); 
     629                log.error("ERROR getting the ACP for " + ref,e); 
    630630            } 
    631631        } 
     
    646646        } catch (Exception e) { 
    647647            // XXX this exception shouldn't be swallowed! 
    648             log.error("ERROR setting the ACP for " + ref); 
     648            log.error("ERROR setting the ACP for " + ref,e); 
    649649        } 
    650650    } 
     
    13981398            type = Framework.getService(SchemaManager.class).getDocumentType(getType()); 
    13991399        } catch (Exception e) { 
    1400             e.printStackTrace(); 
     1400            log.error(e); 
    14011401        } 
    14021402        Collection<Schema> schemas = type.getSchemas();