private void checkIfFeaturesAreNotLocked( IdFilter filter, Lock lock )
throws FeatureStoreException {
String lockId = lock != null ? lock.getId() : null;
for ( ResourceId id : filter.getSelectedIds() ) {
if ( !fs.getLockManager().isFeatureModifiable( id.getRid(), lockId ) ) {
if ( lockId == null ) {
throw new MissingParameterException( getMessage( "TA_DELETE_LOCKED_NO_LOCK_ID", id.getRid() ),
"lockId" );
}
throw new InvalidParameterValueException( getMessage( "TA_DELETE_LOCKED_WRONG_LOCK_ID", id.getRid() ),
"lockId" );
}
}
}