01: /*
02: * ====================================================================
03: * Copyright (c) 2004-2008 TMate Software Ltd. All rights reserved.
04: *
05: * This software is licensed as described in the file COPYING, which
06: * you should have received as part of this distribution. The terms
07: * are also available at http://svnkit.com/license.html
08: * If newer versions of this license are posted there, you may use a
09: * newer version instead, at your option.
10: * ====================================================================
11: */
12:
13: package org.tmatesoft.svn.core.io;
14:
15: import org.tmatesoft.svn.core.SVNException;
16:
17: /**
18: * The <b>ISVNWorkspaceMediator</b> interface is used for temporary
19: * data storage (mainly instructions and new text data for deltas) as well
20: * as for caching and getting some kind of wcprops.
21: *
22: * @version 1.1.1
23: * @author TMate Software Ltd.
24: * @see SVNRepository#getCommitEditor(String, Map, boolean, ISVNWorkspaceMediator)
25: * @see <a target="_top" href="http://svnkit.com/kb/examples/">Examples</a>
26: *
27: */
28: public interface ISVNWorkspaceMediator {
29:
30: /**
31: * Retrieves an item's WC property from a <code>".svn/wcprops"</code> administrative
32: * subdirectory.
33: *
34: * @param path a WC item's path
35: * @param name a propery name
36: * @return the value for the property
37: * @throws SVNException
38: * @see #setWorkspaceProperty(String, String, String)
39: */
40: public String getWorkspaceProperty(String path, String name)
41: throws SVNException;
42:
43: /**
44: * Sets a new value for an item's WC property in a <code>".svn/wcprops"</code>
45: * administrative subdirectory.
46: *
47: * @param path a WC item's path
48: * @param name a propery name
49: * @param value a value for the property
50: * @throws SVNException
51: * @see #getWorkspaceProperty(String, String)
52: */
53: public void setWorkspaceProperty(String path, String name,
54: String value) throws SVNException;
55: }
|