public void releaseRecord() throws RecordUnlockedException { checkIsActiveRecordLocked(); SessionState sessionState = getSessionState(); CollectRecord activeRecord = sessionState.getActiveRecord(); if (activeRecord != null && activeRecord.getId() != null) { recordManager.releaseLock(activeRecord.getId()); } sessionState.setActiveRecord(null); }
public void setActiveRecord(CollectRecord record) { SessionState sessionState = getSessionState(); sessionState.setActiveRecord(record); sessionState.keepActiveRecordAlive(); }
public void clearActiveRecord() { SessionState sessionState = getSessionState(); sessionState.setActiveRecord(null); }