'''
Copyright 2015 Bio-Rad Laboratories, Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

@author: Dan DiCara
@date:   Feb 17, 2015
'''

#=============================================================================
# Imports
#=============================================================================
from bioweb_api.apis.AbstractDeleteJobFunction import AbstractDeleteJobFunction
from bioweb_api.apis.ApiConstants import RESULT, SCATTER_PLOT
from bioweb_api import SA_ASSAY_CALLER_COLLECTION
from bioweb_api.apis.secondary_analysis.AssayCallerPostFunction import ASSAY_CALLER

#=============================================================================
# Class
#=============================================================================
class AssayCallerDeleteFunction(AbstractDeleteJobFunction):
    
    #===========================================================================
    # Overridden Methods
    #===========================================================================    
    @staticmethod
    def name():
        return ASSAY_CALLER
   
    @staticmethod
    def summary():
        return "Delete secondary analysis assay caller jobs."
    
    @classmethod
    def get_collection(cls):
        return SA_ASSAY_CALLER_COLLECTION
    
    @classmethod
    def process_request(cls, params_dict, 
                        del_file_keys=(RESULT, SCATTER_PLOT,)):
        return super(AssayCallerDeleteFunction, cls).process_request(params_dict, del_file_keys=del_file_keys)

#===============================================================================
# Run Main
#===============================================================================
if __name__ == "__main__":
    function = AssayCallerDeleteFunction()
    print function