public UpdateType updateRequired ( RepositoryResourceImpl matching ) { if ( null == matching ) { // No matching asset found return UpdateType . ADD ; } if ( equivalentWithoutAttachments ( matching ) ) { return UpdateType . NOTHING ; } else { // As we are doing an update set our id to be the one we found in massive // Not needed now, we are merging both assets _asset . set_id ( matching . getId ( ) ) ; return UpdateType . UPDATE ; } }
Decide whether an attachment needs updating .