Name
sn_grc.IGDocumentToEntityTypeActionHandler
Description
No description available
Script
var IGDocumentToEntityTypeActionHandler = Class.create();
IGDocumentToEntityTypeActionHandler.prototype = {
initialize: function(action, strategy) {
this.actionType = action.action;
this.source = action.source;
this.sourceTable = action.table;
this.entityTypeId = action.entity_type_id;
this.documentId = action.document_id;
this.strategy = strategy;
},
execute: function() {
if (this.actionType == 'add_document_to_entity_type') {
this.strategy.addDocumentToEntityType(this.documentId, this.entityTypeId);
} else if (this.actionType == 'remove_document_from_entity_type') {
this.strategy.removeDocumentToEntityType(this.documentId, this.entityTypeId);
}
},
type: 'IGDocumentToEntityTypeActionHandler'
};
Sys ID
b29ddb9807c72010bbc77f04a9d30099