changing cma reference to cma_2.2.2.9.jar

[git-p4: depot-paths = "//depot/Tumri/tas/tc/": change = 30304]
Build checkin for version 0.0.7.2

[git-p4: depot-paths = "//depot/Tumri/tas/tc/": change = 30306]
Integrate TC with Terracotta 3.5.1.

deploy-tc and deploy-tcm now installs terracotta client only if the property in local.properties is set to true.

{{mercurial 0794bb16d18a57703e8377800dea2367f8e660d6}}

[git-p4: depot-paths = "//depot/Tumri/tas/tc/": change = 30371]
Integrate from TC-Media branch to Mainline. This will break the build. Will fix the build after checking in the changes.

[git-p4: depot-paths = "//depot/Tumri/tas/tc/": change = 30378]
Upgrade to CMA 2.2.2.10 & mediabuying 0.0.1.1

[git-p4: depot-paths = "//depot/Tumri/tas/tc/": change = 30388]
Remove pointer to my flex sdk directory.

[git-p4: depot-paths = "//depot/Tumri/tas/tc/": change = 30389]
Add authorisation table to CMA DB.  Conditionalise loading of CMA DB from Media properties files (off by default).  Conditionalise running the media report daemon (off by default).

[git-p4: depot-paths = "//depot/Tumri/tas/tc/": change = 30412]
Clean up XML logging a bit, and bullet-proof the configuration of the authorised parts of the TC UI.

[git-p4: depot-paths = "//depot/Tumri/tas/tc/": change = 30413]
Make a bunch of int -> Long data type consistency changes.  Fix a bunch of things on Bhavin's hit list.

;==============================================================================
DONE Media 	TC-Install 	Data Migration 	  	  	  	  	  	Migrate media information from properties file to CMA DB.
;==============================================================================
DONE Media 	TC-CMA 	Property Files 	  	  	  	  	  	Create tables to store media related properties. Provide CRUD interface for the same
;==============================================================================
DONE Media 	TC-Server 	ResponseDumper 	  	  	  	  	  	Need to remove ResponseDumper. This is useful debugging functionality. Migrate to log.debug statements
;==============================================================================
DONE Media 	MediaBuying-Build 	Build should use a CMA library rather than building it 	  	  	  	  	  	 
;==============================================================================
DONE Media 	TC-CMA OR TC-LDAP 	Authorization 	  	  	  	  	  	Setup a table to enable authorization for Media. Parameter: 1. is advertiser media buying enabled 2. is user authorized for media buying for this advertiser 3. is this advertiser allowed to use Tumri Seat of Appnexus Maybe use SSO ROLES for authorization
;==============================================================================
DONE ASSUMING I UNDERSTAND THE REQUEST Media 	TC-Client 	Media-Planning tools-Settings: Allow user to change Appnexus Credentials 	  	  	  	  	  	Allow user to change their Appnexus Credentials. This should be disabled if the user is using Tumri's Appnexus Seat
;==============================================================================
DONE Media 	TC-Server 	Provide SQL to Operations to enable Media for an advertiser & for the advertiser to use Tumri's Appnexus Seat 	

-- To enable/disable access to media buying for a user and/or advertiser.
INSERT IGNORE INTO MEDIA_AUTHORIZATION_PROPERTIES
           (PROPERTY, USER_ID, GROUP_ID, ADVERTISER_ID,
            KEY_NAME, PROPERTY_VALUE)
  VALUES ('tc.client.allowMediaBuying',
          '###USERID###',              -- e.g. pradeepj, or '*' for any user
          '*',
          '###ADVERTISER_ID###',       -- e.g. 3052, or '*' for any advertiser
          '*',
          true)       -- Set to false to disable here and on next line.
ON DUPLICATE KEY UPDATE PROPERTY_VALUE = true;

-- To enable/disable using the Tumri AppNexus seat for
--    a user and/or advertiser.
INSERT IGNORE INTO MEDIA_AUTHORIZATION_PROPERTIES
           (PROPERTY, USER_ID, GROUP_ID, ADVERTISER_ID,
            KEY_NAME, PROPERTY_VALUE)
  VALUES ('tc.client.useTumriAppNexusSeat',
          '###USERID###',              -- e.g. pradeepj, or '*' for any user
          '*',
          '###ADVERTISER_ID###',       -- e.g. 3052, or '*' for any advertiser
          '*',
          true)       -- Set to false to disable here and on next line.
ON DUPLICATE KEY UPDATE PROPERTY_VALUE = true;

-- To enable/disable using the TC UI for a user and/or advertiser.
INSERT IGNORE INTO MEDIA_AUTHORIZATION_PROPERTIES
           (PROPERTY, USER_ID, GROUP_ID, ADVERTISER_ID,
            KEY_NAME, PROPERTY_VALUE)
  VALUES ('tc.client.allowTCUI',
          '###USERID###',              -- e.g. pradeepj, or '*' for any user
          '*',
          '###ADVERTISER_ID###',       -- e.g. 3052, or '*' for any advertiser
          '*',
          true)       -- Set to false to disable here and on next line.
ON DUPLICATE KEY UPDATE PROPERTY_VALUE = true;

-- Suggested default settings for TC authorisation.
INSERT IGNORE INTO MEDIA_AUTHORIZATION_PROPERTIES
           (PROPERTY, USER_ID, GROUP_ID, ADVERTISER_ID,
            KEY_NAME, PROPERTY_VALUE)
  VALUES ('tc.client.allowTCUI', '*', '*', '*', '*', true)
ON DUPLICATE KEY UPDATE PROPERTY_VALUE = true;

INSERT IGNORE INTO MEDIA_AUTHORIZATION_PROPERTIES
           (PROPERTY, USER_ID, GROUP_ID, ADVERTISER_ID,
            KEY_NAME, PROPERTY_VALUE)
  VALUES ('tc.client.allowMediaBuying', '*', '*', '*', '*', false)
ON DUPLICATE KEY UPDATE PROPERTY_VALUE = false;

INSERT IGNORE INTO MEDIA_AUTHORIZATION_PROPERTIES
           (PROPERTY, USER_ID, GROUP_ID, ADVERTISER_ID,
            KEY_NAME, PROPERTY_VALUE)
  VALUES ('tc.client.useTumriAppNexusSeat', '*', '*', '*', '*', false)
ON DUPLICATE KEY UPDATE PROPERTY_VALUE = false;

;==============================================================================
DONE Media 	TC-Server 	Review all the data cached in the server 	  	  	  	  	  	Ensure that this caching of data is safe for multi-headed deployment.
;==============================================================================
DONE [NOT NEEDED BECAUSE ALL AUTH. DATA RELEVANT TO USER IS SENT TO CLIENT AT LOGIN] Media 	TC-Client 	Authorization for TC Media to evaluated again on Change Advertiser 	  	  	  	  	  	After the user changes the advertiser, the authorization information should be requested again from server and the UI updated accordingly. 
;==============================================================================
DONE Media 	TC-Server 	Authorization information to be transferred for the user-advertiser combination only 	  	  	  	  	  	Currently on login, the entire authorization information is sent to client. Need to restrict it to only the user-advertiser combination selected by the user.
;==============================================================================
DONE Media 	TC-Server 	Reporting: Do we only support FTP upload 	  	  	  	  	  	If we only support FTP transfer of reports, this functionality should be disabled till the user provides FTP dropbox details
;==============================================================================

[git-p4: depot-paths = "//depot/Tumri/tas/tc/": change = 30427]
Finish off moving of Media Buying code.

[git-p4: depot-paths = "//depot/Tumri/tas/tc/": change = 30457]
Remove build\build.properties. This file was checked in to TC-Media branch by mistake.

[git-p4: depot-paths = "//depot/Tumri/tas/tc/": change = 30483]
Remove erroneous checkin into TC-Media branch.

[git-p4: depot-paths = "//depot/Tumri/tas/tc/": change = 30484]
Update build to point to latest CMA version number.

[git-p4: depot-paths = "//depot/Tumri/tas/tc/": change = 30486]
Update CMA lib reference.

[git-p4: depot-paths = "//depot/Tumri/tas/tc/": change = 30488]
Catch up to latest SSO jar.

[git-p4: depot-paths = "//depot/Tumri/tas/tc/": change = 30490]
Prepare a bit for having a main() method on AppNexusConfig to perform the data transformation.  No idea how to get the CMA stuff to initialise correctly, so this is a bit on the NYI side.

Rework getProfilesFor to make sure that we get chunks in the right order and in the right counts of 100 to make sure that we don't recompute huge lists for each chunk of 100 as we page in the results.

[git-p4: depot-paths = "//depot/Tumri/tas/tc/": change = 30493]
Propagate profile maps more efficiently, and prefetch profiles better particularly for spreadsheet download.

[git-p4: depot-paths = "//depot/Tumri/tas/tc/": change = 30508]
disabled caching, as TC caching is due the next release.

[git-p4: depot-paths = "//depot/Tumri/tas/tc/": change = 30520]
Fix the following issues:
;==============================================================================
Remove Initializations on each Login. - Done except for debug.properties.  Once these get removed, it'll be done.
;==============================================================================
Configuration to use Sandbox (in Development mode) or Production Appnexus Server should be in tc.properties & local.properties - This is a function of the credentials setup for the user/advertiser, but the default setting (the value used when the user doesn't enter a host in the UI) has been changed to be the sandbox.  Also added local.properties for AppNexusSet settings.
;==============================================================================
Delete: Ensure all data is deleted from CMA - Done.
;==============================================================================
Login for a user without Appnexus credentials shouldn't throw an error  - Done.
;=============================================================================
Should be able to select staging appnexus host/production appnexus host at install time using local.properties - Done.
;=============================================================================
Should be able to configure Tumri Appnexus credentials at install time using local.properties - Done.
;=============================================================================
Support passing authorization data in encrypted format from server - Done [*** Assuming this means into CMA DB.]
;=============================================================================
ResponseDumper - Done [Obviated by debug properties change]
;=============================================================================

[git-p4: depot-paths = "//depot/Tumri/tas/tc/": change = 30524]
Implement changes to authorisation as per Bhavin.

[git-p4: depot-paths = "//depot/Tumri/tas/tc/": change = 30526]