Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 public void setActiveRecord(CollectRecord record) {
   SessionState sessionState = getSessionState();
   sessionState.setActiveRecord(record);
   sessionState.keepActiveRecordAlive();
 }
Ejemplo n.º 3
0
 public void clearActiveRecord() {
   SessionState sessionState = getSessionState();
   sessionState.setActiveRecord(null);
 }