/**
 * Copyright © 2013 by IMS Health and its licensors. All rights reserved.
 * 
 * @class        : FCRUtils_ims
 * @Description : Class handling the status updates of records via button calls from the Layout
 * @Author      : Vrushali Moghe(vmoghe@us.imshealth.com)
 * 2016-03-01   : Sunil, added comments to all the methods.
 */
global with sharing class FCRUtils_ims{
    public FCRUtils_ims(ApexPages.StandardController controller) {
        
    }
    
   /**
	@Description  This method is used to localize alert message if status is in locked status.
	@return       String - the string being returned.
	*/
    public static String getAlertMessage(){               
        Map<String, String> mapToLocalizedString = new Map<String, String>();
        Map<String, String> mapLocalizedString = new Map<String, String>();
        mapToLocalizedString.put('FCR_TRIGGER_ERROR_MESSAGE_LOCKED_STATUS', 'Record is Locked!');
        mapLocalizedString = LocalizationUtils_ims.localizeStrings(mapToLocalizedString);    
        return mapLocalizedString.get('FCR_TRIGGER_ERROR_MESSAGE_LOCKED_STATUS');          
    }
    
    /**
	@Description  This method is used to get the base URL.
	@return       String - the base url being returned.
	*/
    public static String getBaseURL()
    {
       String baseURL = URL.getSalesforceBaseUrl().toExternalForm();        
       
       return baseURL;
    }
}