--[[----------------------------------------------------------------------------

WFCatImportManifestStages.lua

--------------------------------------------------------------------------------

ADOBE CONFIDENTIAL
------------------
Copyright 2017 Adobe Systems Incorporated
All Rights Reserved.

NOTICE: All information contained herein is, and remains the property of
Adobe Systems Incorporated and its suppliers, if any. The intellectual and
technical concepts contained herein are proprietary to Adobe Systems
Incorporated and its suppliers and are protected by all applicable
intellectual property laws, including trade secret and copyright laws.
Dissemination of this information or reproduction of this material is
strictly forbidden unless prior written permission is obtained from
Adobe Systems Incorporated.

----------------------------------------------------------------------------]]--

	-- WF.oz_client.managed_catalog.import
local WFCatImportManifestMarkCatalogMigratedProcessor = require 'WFCatImportManifestMarkCatalogMigratedProcessor'
local WFCatImportManifestAssetsProcessor = require 'WFCatImportManifestAssetsProcessor'
local WFCatImportManifestRootAlbumProcessor = require 'WFCatImportManifestRootAlbumProcessor'
local WFCatImportManifestRootAlbumAssetsProcessor = require 'WFCatImportManifestRootAlbumAssetsProcessor'
local WFCatImportManifestAlbumsProcessor = require 'WFCatImportManifestAlbumsProcessor'
local WFCatImportManifestAlbumAssetsProcessor = require 'WFCatImportManifestAlbumAssetsProcessor'
local WFCatImportManifestCopiesProcessor = require 'WFCatImportManifestCopiesProcessor'
local WFCatImportManifestConstants = require 'WFCatImportManifestConstants'
local WFCatImportManifestPersonProcessor = require 'WFCatImportManifestPersonProcessor'
local WFCatImportManifestFacesProcessor = require 'WFCatImportManifestFacesProcessor'
local WFCatImportManifestStacksProcessor = require 'WFCatImportManifestStacksProcessor'
local WFCatImportManifestStackAlbumsProcessor = require 'WFCatImportManifestStackAlbumsProcessor'

--------------------------------------------------------------------------------

local function getStages()

	return {
			-- mark catalog migrated
		{
			name = WFCatImportManifestConstants.stageNames.markCatalogMigrated,
			processor = WFCatImportManifestMarkCatalogMigratedProcessor,
			progressWeight = 1,
		},

			-- assets
		{
			name = WFCatImportManifestConstants.stageNames.assets,
			processor = WFCatImportManifestAssetsProcessor,
			progressWeight = 90,
		},
		
			-- copies
		{
			name = WFCatImportManifestConstants.stageNames.copies,
			processor = WFCatImportManifestCopiesProcessor,
			progressWeight = 2,
		},
		
			-- person
		{
			name = WFCatImportManifestConstants.stageNames.persons,
			processor = WFCatImportManifestPersonProcessor,
			progressWeight = 1,
		},
		
			-- faces
		{
			name = WFCatImportManifestConstants.stageNames.faces,
			processor = WFCatImportManifestFacesProcessor,
			progressWeight = 2,
		},
		
			-- root album set
		{
			name = WFCatImportManifestConstants.stageNames.rootAlbumSet,
			processor = WFCatImportManifestRootAlbumProcessor.getRootAlbumSetProcessor,
			progressWeight = 1,
		},
		
			-- all photos album
		{
			name = WFCatImportManifestConstants.stageNames.rootAlbumAllPhotos,
			processor = WFCatImportManifestRootAlbumProcessor.getAllPhotosAlbumProcessor,
			progressWeight = 1,
		},
		
			-- albums
		{
			name = WFCatImportManifestConstants.stageNames.albums,
			processor = WFCatImportManifestAlbumsProcessor,
			progressWeight = 10,
		},
		
			-- album-assets
		{
			name = WFCatImportManifestConstants.stageNames.albumAssets,
			processor = WFCatImportManifestAlbumAssetsProcessor,
			progressWeight = 10,
		},

			-- stack
		{
			name = WFCatImportManifestConstants.stageNames.stacks,
			processor = WFCatImportManifestStacksProcessor,
			progressWeight = 2,
		},

			-- stack albums
		{
			name = WFCatImportManifestConstants.stageNames.stackAlbums,
			processor = WFCatImportManifestStackAlbumsProcessor,
			progressWeight = 2,
		},

			-- all root assets
		{
			name = WFCatImportManifestConstants.stageNames.rootAlbumAssets,
			processor = WFCatImportManifestRootAlbumAssetsProcessor,
			progressWeight = 5,
		},

	}

end

--------------------------------------------------------------------------------

return {
	getStages = getStages,
}
