001: /*
002: * ====================================================================
003: * Copyright (c) 2004-2008 TMate Software Ltd. All rights reserved.
004: *
005: * This software is licensed as described in the file COPYING, which
006: * you should have received as part of this distribution. The terms
007: * are also available at http://svnkit.com/license.html.
008: * If newer versions of this license are posted there, you may use a
009: * newer version instead, at your option.
010: * ====================================================================
011: */
012: package org.tmatesoft.svn.core.wc.admin;
013:
014: /**
015: * The <b>SVNAdminEventAction</b> is an enumeration of possible actions that
016: * may take place in different methods of <b>SVNAdminClient</b>.
017: *
018: * @version 1.1.1
019: * @author TMate Software Ltd.
020: * @since 1.1.1
021: */
022: public class SVNAdminEventAction {
023: private int myID;
024:
025: private SVNAdminEventAction(int id) {
026: myID = id;
027: }
028:
029: /**
030: * Returns an action id
031: *
032: * @return id of this action
033: */
034: public int getID() {
035: return myID;
036: }
037:
038: /**
039: * Gives a string representation of this action.
040: *
041: * @return string representation of this object
042: */
043: public String toString() {
044: return Integer.toString(myID);
045: }
046:
047: /**
048: * An action that denotes a next revision load is started.
049: */
050: public static final SVNAdminEventAction REVISION_LOAD = new SVNAdminEventAction(
051: 0);
052:
053: /**
054: * An action that denotes a next revision load is completed.
055: */
056: public static final SVNAdminEventAction REVISION_LOADED = new SVNAdminEventAction(
057: 1);
058:
059: /**
060: * An action that denotes editing a next path within the current revision being loaded.
061: */
062: public static final SVNAdminEventAction REVISION_LOAD_EDIT_PATH = new SVNAdminEventAction(
063: 2);
064:
065: /**
066: * An action that denotes deleting a next path within the current revision being loaded.
067: */
068: public static final SVNAdminEventAction REVISION_LOAD_DELETE_PATH = new SVNAdminEventAction(
069: 3);
070:
071: /**
072: * An action that denotes adding a next path within the current revision being loaded.
073: */
074: public static final SVNAdminEventAction REVISION_LOAD_ADD_PATH = new SVNAdminEventAction(
075: 4);
076:
077: /**
078: * An action that denotes replacing a next path within the current revision being loaded.
079: */
080: public static final SVNAdminEventAction REVISION_LOAD_REPLACE_PATH = new SVNAdminEventAction(
081: 5);
082:
083: /**
084: * A 'next revision dumped' action.
085: */
086: public static final SVNAdminEventAction REVISION_DUMPED = new SVNAdminEventAction(
087: 6);
088:
089: /**
090: * A 'next transaction listed' action.
091: */
092: public static final SVNAdminEventAction TRANSACTION_LISTED = new SVNAdminEventAction(
093: 7);
094:
095: /**
096: * A 'next transaction removed' action.
097: */
098: public static final SVNAdminEventAction TRANSACTION_REMOVED = new SVNAdminEventAction(
099: 8);
100:
101: public static final SVNAdminEventAction UNLOCK_FAILED = new SVNAdminEventAction(
102: 9);
103:
104: public static final SVNAdminEventAction UNLOCKED = new SVNAdminEventAction(
105: 10);
106:
107: public static final SVNAdminEventAction NOT_LOCKED = new SVNAdminEventAction(
108: 11);
109:
110: public static final SVNAdminEventAction LOCK_LISTED = new SVNAdminEventAction(
111: 12);
112: }
|