01: /*
02: *
03: * Copyright (c) 2004 SourceTap - www.sourcetap.com
04: *
05: * The contents of this file are subject to the SourceTap Public License
06: * ("License"); You may not use this file except in compliance with the
07: * License. You may obtain a copy of the License at http://www.sourcetap.com/license.htm
08: * Software distributed under the License is distributed on an "AS IS" basis,
09: * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
10: * the specific language governing rights and limitations under the License.
11: *
12: * The above copyright notice and this permission notice shall be included
13: * in all copies or substantial portions of the Software.
14: *
15: */
16:
17: package com.sourcetap.sfa.replication;
18:
19: import org.ofbiz.base.util.Debug;
20:
21: /**
22: * This class is used for replication of the Product entity. <P>
23: *
24: * @author <a href='mailto:jnutting@sourcetap.com'>John Nutting</a>
25: */
26: public class ProductReplicator extends EntityReplicator {
27:
28: public static final String module = ProductReplicator.class
29: .getName();
30:
31: /**
32: * Populate the related entity map vector. This method is called from the constructors
33: * to allow the related entities to be specified before replication begins.
34: *
35: * @author <a href='mailto:jnutting@sourcetap.com'>John Nutting</a>
36: */
37: public void populateRelatedEntityMapVector() {
38: // Add related entity maps for all entities to be replicated for each
39: // replicated account.
40: Debug.logVerbose("[populateRelatedEntityMapVector] Start",
41: module);
42:
43: addRelatedEntityMap("Main", "ProductAssoc", null, false, false,
44: "");
45:
46: addRelatedEntityMap("", "ProductAttribute", null, false, false,
47: "");
48:
49: addRelatedEntityMap("", "ProductFeatureAppl", null, false,
50: false, "");
51:
52: addRelatedEntityMap("", "ProductFile", null, false, false,
53: "com.sourcetap.sfa.replication.FileReplicator");
54:
55: return;
56: }
57: }
|