1 19 package org.openharmonise.rm.resources.lifecycle; 20 21 import java.util.List ; 22 23 import org.openharmonise.rm.DataAccessException; 24 import org.openharmonise.rm.resources.users.User; 25 26 27 35 public interface Editable 36 { 37 public static final String LABEL_LOCK = "lock"; 39 public static final String LABEL_UNLOCK = "unlock"; 41 42 52 public Editable save() throws EditException; 53 54 61 public Editable createNewVersion() throws EditException; 62 63 67 public Editable archive() throws EditException; 68 69 75 public Editable changeStatus( Status nStatus ) throws EditException; 76 77 83 public boolean isLocked() throws DataAccessException; 84 85 92 public void lock(User usr) throws EditException; 93 94 102 public void unlock(User usr) throws EditException; 103 104 110 public User getLockOwner() throws DataAccessException; 111 112 117 public Editable reactivate() throws EditException; 118 119 123 public List getPendingVersions() throws DataAccessException; 124 125 130 public Editable getLiveVersion() throws DataAccessException; 131 132 138 public boolean isLiveVersion() throws DataAccessException; 139 140 146 public List getAllVersions() throws DataAccessException; 147 148 154 public List getHistoricalVersions() throws DataAccessException; 155 156 161 public Status getStatus() throws DataAccessException; 162 163 168 public void addEditEventListener(EditEventListener listener); 169 170 175 public void removeEditEventListener(EditEventListener listener); 176 } 177 | Popular Tags |