public AuditLog(final GuidedDecisionTable52 dtable, final Identity identity) { this.view = new AuditLogViewImpl( dtable.getAuditLog(), identity ); }
/** * Delete the given column * @param modelColumn */ public void deleteColumn( LimitedEntryBRLConditionColumn modelColumn ) { if ( modelColumn == null ) { throw new IllegalArgumentException( "modelColumn cannot be null." ); } int index = model.getExpandedColumns().indexOf( modelColumn ); model.getConditions().remove( modelColumn ); deleteColumn( index, true ); //Log deletion of column model.getAuditLog().add( new DeleteColumnAuditLogEntry( identity.getName(), modelColumn ) ); }
/** * Delete the given column * @param modelColumn */ public void deleteColumn( ActionCol52 modelColumn ) { if ( modelColumn == null ) { throw new IllegalArgumentException( "modelColumn cannot be null." ); } int index = model.getExpandedColumns().indexOf( modelColumn ); model.getActionCols().remove( modelColumn ); deleteColumn( index, true ); //Log deletion of column model.getAuditLog().add( new DeleteColumnAuditLogEntry( identity.getName(), modelColumn ) ); }
/** * Delete the given column * @param modelColumn */ public void deleteColumn( MetadataCol52 modelColumn ) { if ( modelColumn == null ) { throw new IllegalArgumentException( "modelColumn cannot be null." ); } int index = model.getExpandedColumns().indexOf( modelColumn ); model.getMetadataCols().remove( modelColumn ); deleteColumn( index, true ); //Log deletion of column model.getAuditLog().add( new DeleteColumnAuditLogEntry( identity.getName(), modelColumn ) ); }
/** * Delete the given column * @param modelColumn */ public void deleteColumn( LimitedEntryBRLActionColumn modelColumn ) { if ( modelColumn == null ) { throw new IllegalArgumentException( "modelColumn cannot be null." ); } int index = model.getExpandedColumns().indexOf( modelColumn ); model.getActionCols().remove( modelColumn ); deleteColumn( index, true ); //Log deletion of column model.getAuditLog().add( new DeleteColumnAuditLogEntry( identity.getName(), modelColumn ) ); }
/** * Delete the given column * @param modelColumn */ public void deleteColumn( AttributeCol52 modelColumn ) { if ( modelColumn == null ) { throw new IllegalArgumentException( "modelColumn cannot be null." ); } int index = model.getExpandedColumns().indexOf( modelColumn ); model.getAttributeCols().remove( modelColumn ); deleteColumn( index, true ); //Log deletion of column model.getAuditLog().add( new DeleteColumnAuditLogEntry( identity.getName(), modelColumn ) ); }
/** * Add a column to the table. * @param modelColumn The Decision Table column to insert */ public void addColumn( BRLConditionColumn modelColumn ) { if ( modelColumn == null ) { throw new IllegalArgumentException( "modelColumn cannot be null." ); } model.getConditions().add( modelColumn ); addBRLConditionVariableColumns( modelColumn.getChildColumns(), true ); //Log addition of column model.getAuditLog().add( new InsertColumnAuditLogEntry( identity.getName(), modelColumn ) ); }
/** * Delete the given column * @param modelColumn */ public void deleteColumn( BRLConditionColumn modelColumn ) { if ( modelColumn == null ) { throw new IllegalArgumentException( "modelColumn cannot be null." ); } BRLConditionVariableColumn firstColumn = modelColumn.getChildColumns().get( 0 ); int firstColumnIndex = model.getExpandedColumns().indexOf( firstColumn ); int numberOfColumns = modelColumn.getChildColumns().size(); deleteColumns( firstColumnIndex, numberOfColumns, true ); model.getConditions().remove( modelColumn ); //Log deletion of column model.getAuditLog().add( new DeleteColumnAuditLogEntry( identity.getName(), modelColumn ) ); }
/** * Add a column to the table. * @param modelColumn The Decision Table column to insert */ public void addColumn( ActionCol52 modelColumn ) { if ( modelColumn == null ) { throw new IllegalArgumentException( "modelColumn cannot be null." ); } model.getActionCols().add( modelColumn ); addColumn( modelColumn, cellValueFactory.makeColumnData( modelColumn ), true ); //Log addition of column model.getAuditLog().add( new InsertColumnAuditLogEntry( identity.getName(), modelColumn ) ); }
/** * Add a column to the table. * @param modelColumn The Decision Table column to insert */ public void addColumn( AttributeCol52 modelColumn ) { if ( modelColumn == null ) { throw new IllegalArgumentException( "modelColumn cannot be null." ); } model.getAttributeCols().add( modelColumn ); addColumn( modelColumn, cellValueFactory.makeColumnData( modelColumn ), true ); //Log addition of column model.getAuditLog().add( new InsertColumnAuditLogEntry( identity.getName(), modelColumn ) ); }
/** * Delete the given column * @param modelColumn */ public void deleteColumn( BRLActionColumn modelColumn ) { if ( modelColumn == null ) { throw new IllegalArgumentException( "modelColumn cannot be null." ); } BRLActionVariableColumn firstColumn = modelColumn.getChildColumns().get( 0 ); int firstColumnIndex = model.getExpandedColumns().indexOf( firstColumn ); int numberOfColumns = modelColumn.getChildColumns().size(); deleteColumns( firstColumnIndex, numberOfColumns, true ); model.getActionCols().remove( modelColumn ); //Log deletion of column model.getAuditLog().add( new DeleteColumnAuditLogEntry( identity.getName(), modelColumn ) ); }
/** * Add a column to the table. * @param modelColumn The Decision Table column to insert */ public void addColumn( BRLActionColumn modelColumn ) { if ( modelColumn == null ) { throw new IllegalArgumentException( "modelColumn cannot be null." ); } model.getActionCols().add( modelColumn ); addBRLActionVariableColumns( modelColumn.getChildColumns(), true ); //Log addition of column model.getAuditLog().add( new InsertColumnAuditLogEntry( identity.getName(), modelColumn ) ); }
/** * Add a column to the table. * @param modelColumn The Decision Table column to insert */ public void addColumn( MetadataCol52 modelColumn ) { if ( modelColumn == null ) { throw new IllegalArgumentException( "modelColumn cannot be null." ); } model.getMetadataCols().add( modelColumn ); addColumn( modelColumn, cellValueFactory.makeColumnData( modelColumn ), true ); //Log addition of column model.getAuditLog().add( new InsertColumnAuditLogEntry( identity.getName(), modelColumn ) ); }
/** * Add a column to the table. * @param modelColumn The Decision Table column to insert */ public void addColumn( LimitedEntryBRLActionColumn modelColumn ) { if ( modelColumn == null ) { throw new IllegalArgumentException( "modelColumn cannot be null." ); } model.getActionCols().add( modelColumn ); addColumn( modelColumn, cellValueFactory.makeColumnData( modelColumn ), true ); //Log addition of column model.getAuditLog().add( new InsertColumnAuditLogEntry( identity.getName(), modelColumn ) ); }
/** * Add a column to the table. * @param modelColumn The Decision Table column to insert */ public void addColumn( LimitedEntryBRLConditionColumn modelColumn ) { if ( modelColumn == null ) { throw new IllegalArgumentException( "modelColumn cannot be null." ); } model.getConditions().add( modelColumn ); addColumn( modelColumn, cellValueFactory.makeColumnData( modelColumn ), true ); //Log addition of column model.getAuditLog().add( new InsertColumnAuditLogEntry( identity.getName(), modelColumn ) ); }
public void onAppendRow( AppendRowEvent event ) { List<DTCellValue52> data = cellValueFactory.makeRowData(); model.getData().add( data ); model.getAnalysisData().add( new Analysis() ); Scheduler.get().scheduleFinally( new Command() { public void execute() { updateSystemControlledColumnValues(); } } ); //Log insertion of row model.getAuditLog().add( new InsertRowAuditLogEntry( identity.getName(), model.getData().size() - 1 ) ); }
public void onDeleteRow( DeleteRowEvent event ) { model.getData().remove( event.getIndex() ); model.getAnalysisData().remove( event.getIndex() ); Scheduler.get().scheduleFinally( new Command() { public void execute() { updateSystemControlledColumnValues(); } } ); //Log deletion of row model.getAuditLog().add( new DeleteRowAuditLogEntry( identity.getName(), event.getIndex() ) ); }
/** * Delete the given column from the given pattern * @param modelColumn */ public void deleteColumn( ConditionCol52 modelColumn ) { if ( modelColumn == null ) { throw new IllegalArgumentException( "modelColumn cannot be null." ); } int index = model.getExpandedColumns().indexOf( modelColumn ); Pattern52 pattern = model.getPattern( modelColumn ); pattern.getChildColumns().remove( modelColumn ); //Remove pattern if it contains zero conditions if ( pattern.getChildColumns().size() == 0 ) { model.getConditions().remove( pattern ); //Signal patterns changed event to Decision Table Widget BoundFactsChangedEvent pce = new BoundFactsChangedEvent( rm.getLHSBoundFacts() ); eventBus.fireEvent( pce ); } deleteColumn( index, true ); //Log deletion of column model.getAuditLog().add( new DeleteColumnAuditLogEntry( identity.getName(), modelColumn ) ); }
/** * Add a column to the table. * @param pattern The Pattern to which the column will be added * @param modelColumn The Decision Table column to insert */ public void addColumn( Pattern52 pattern, ConditionCol52 modelColumn ) { if ( pattern == null ) { throw new IllegalArgumentException( "pattern cannot be null." ); } if ( modelColumn == null ) { throw new IllegalArgumentException( "modelColumn cannot be null." ); } //Add pattern if it does not already exist if ( !model.getConditions().contains( pattern ) ) { model.getConditions().add( pattern ); //Signal patterns changed event BoundFactsChangedEvent pce = new BoundFactsChangedEvent( rm.getLHSBoundFacts() ); eventBus.fireEvent( pce ); } //Column needs to be added to pattern first so it can be correctly positioned pattern.getChildColumns().add( modelColumn ); addColumn( modelColumn, cellValueFactory.makeColumnData( modelColumn ), true ); //Log addition of column model.getAuditLog().add( new InsertColumnAuditLogEntry( identity.getName(), modelColumn ) ); }
public void onInsertRow( InsertRowEvent event ) { List<DTCellValue52> data = cellValueFactory.makeRowData(); model.getData().add( event.getIndex(), data ); model.getAnalysisData().add( event.getIndex(), new Analysis() ); Scheduler.get().scheduleFinally( new Command() { public void execute() { updateSystemControlledColumnValues(); } } ); //Log insertion of row model.getAuditLog().add( new InsertRowAuditLogEntry( identity.getName(), event.getIndex() ) ); }