Name
sn_grc.ItemGenerationV2Action
Description
No description available
Script
var ItemGenerationV2Action = Class.create();
ItemGenerationV2Action.prototype = {
initialize: function(action) {
this.action = action;
this.actionType = String(action.action);
this.source = String(action.source);
this.sourceTable = String(action.table);
this.strategy = new ItemGenerationV2Utils().getStrategy(this.sourceTable);
},
execute: function() {
switch (this.actionType) {
case 'add_content_to_entity_type':
case 'remove_content_from_entity_type':
return new IGContentToEntityTypeActionHandler(this.action, this.strategy).execute();
case 'add_document_to_entity_type':
case 'remove_document_from_entity_type':
return new IGDocumentToEntityTypeActionHandler(this.action, this.strategy).execute();
case 'delete_entity_type':
case 'deactivate_entity_type':
case 'activate_entity_type':
return new IGEntityTypeActionHandler(this.action).execute();
case 'add_entity_to_entity_type':
case 'remove_entity_from_entity_type':
return new IGEntityToEntityTypeActionHandler(this.action).execute();
case 'activate_content':
case 'deactivate_content':
case 'create_content':
case 'set_auto_control_create_flag':
case 'add_content_to_content':
case 'remove_content_from_content':
case 'delete_content':
return new IGContentActionHandler(this.action, this.strategy).execute();
case 'activate_document':
case 'deactivate_document':
case 'content_to_document':
case 'delete_document':
return new IGDocumentActionHandler(this.action, this.strategy).execute();
case 'activate_entity':
case 'deactivate_entity':
return new IGEntityActionHandler(this.action).execute();
case 'activate_item':
case 'deactivate_item':
case 'delete_item':
return new IGItemActionHandler(this.action, this.strategy).execute();
case 'add_entity_to_item':
case 'remove_entity_from_item':
return new IGItemToEntityActionHandler(this.action, this.strategy).execute();
case 'add_entity_type_to_item':
case 'remove_entity_type_from_item':
return new IGItemToEntityTypeActionHandler(this.action).execute();
case 'add_co_to_processing_activity':
case 'remove_co_from_processing_activity':
return new sn_privacy.IGControlObjectiveToProcessingActivityActionHandler(this.action, this.strategy).execute();
case 'add_rs_to_processing_activity':
case 'remove_rs_from_processing_activity':
return new sn_privacy.IGRiskStatementToProcessingActivityActionHandler(this.action, this.strategy).execute();
case 'activate_processing_activity':
case 'deactivate_processing_activity':
return new sn_privacy.IGProcessingActivityActionHandler(this.action, this.strategy).execute();
}
},
type: 'ItemGenerationV2Action'
};
Sys ID
e9ed207307d22010bbc77f04a9d300a2