001 /** 002 * Copyright 2010-2013 The Kuali Foundation 003 * 004 * Licensed under the Educational Community License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.opensource.org/licenses/ecl2.php 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016 package org.kuali.common.util.scm; 017 018 import java.io.File; 019 import java.util.List; 020 021 public interface ScmService { 022 023 /** 024 * Add <code>paths</code> so they are included in files managed by the SCM system. 025 */ 026 void add(List<File> paths); 027 028 /** 029 * Delete <code>paths</code> so they are no longer managed by the SCM system. 030 */ 031 void delete(List<File> paths); 032 033 /** 034 * Commit <code>paths</code> with a commit message. 035 */ 036 void commit(List<File> paths, String message); 037 038 /** 039 * Display version information. 040 */ 041 void version(); 042 043 }