001 /*
002 * Licensed Materials - Property of IBM
003 * Restricted Materials of IBM
004 *
005 * com.ibm.rational.wvcm.stp.cc.CcFindmergeListener
006 *
007 * (C) Copyright IBM Corporation 2012. All Rights Reserved.
008 * Note to U.S. Government Users Restricted Rights: Use, duplication or
009 * disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
010 */
011 package com.ibm.rational.wvcm.stp.cc;
012
013
014 /**
015 * Interface that extends the basic CcListener class. This is used for specific
016 * CCRC CLI related callbacks for Update operations.
017 */
018 public interface CcUpdateListener extends CcListener {
019
020 /**
021 * Callback from response handler to notify that a file or directory is
022 * updated and update type is associated with it.
023 * @param updateType update type for this file or directory @see UpdateType
024 * @param file The CcFile is representing the updated file or directory.
025 */
026 public void notifyUpdate (UpdateType updateType, CcFile file);
027
028 /** Values for file or directory update type */
029 public enum UpdateType {
030 /**
031 * Update found for this file or directory
032 */
033 CANDIDATE_FOUND,
034
035 /**
036 * Checkout found for this file or direcotry
037 */
038 CHECKOUT_FOUND,
039
040 /**
041 * Kept hijack this file or direcotry
042 */
043 KEPT_HIJACK,
044
045 /**
046 * Loaded this file or directory
047 */
048 LOADED,
049
050 /**
051 * Reloaded this file or directory
052 */
053 RELOADED,
054
055 /**
056 * Restored this file or directory
057 */
058 RESTORED,
059
060 /**
061 * Unloaded this file or directory
062 */
063 UNLOADED,
064
065 /**
066 * Cancelled hijack for this file or directory
067 */
068 UNDID_HIJACK,
069
070 /**
071 * Updated this file or directory
072 */
073 UPDATED;
074 }
075 }
076