de.deepamehta.plugins.contacts.migrations
Class Migration2

java.lang.Object
  extended by de.deepamehta.core.service.Migration
      extended by de.deepamehta.plugins.contacts.migrations.Migration2

public class Migration2
extends Migration

Changes Contacts model and converts content. Runs only in UPDATE mode.

Part of DM 4.6


Nested Class Summary
private  class Migration2.Entry
           
 
Field Summary
private  List<Migration2.Entry> addressEntries
           
private  Logger logger
           
private  List<Migration2.Entry> phoneEntries
           
 
Fields inherited from class de.deepamehta.core.service.Migration
dms
 
Constructor Summary
Migration2()
           
 
Method Summary
private  void bufferAddressEntry(Topic addressEntry)
           
private  void bufferContentAndDeleteTypes()
           
private  void bufferPhoneEntry(Topic phoneEntry)
           
private  void convertAddressEntry(Migration2.Entry entry)
           
private  void convertPhoneEntry(Migration2.Entry entry)
           
 void run()
           
 
Methods inherited from class de.deepamehta.core.service.Migration
addAssociationTypeSetting, addTopicTypeSetting, addTypeSetting, setCoreService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

phoneEntries

private List<Migration2.Entry> phoneEntries

addressEntries

private List<Migration2.Entry> addressEntries

logger

private Logger logger
Constructor Detail

Migration2

public Migration2()
Method Detail

run

public void run()
Specified by:
run in class Migration

bufferContentAndDeleteTypes

private void bufferContentAndDeleteTypes()

bufferPhoneEntry

private void bufferPhoneEntry(Topic phoneEntry)

bufferAddressEntry

private void bufferAddressEntry(Topic addressEntry)

convertPhoneEntry

private void convertPhoneEntry(Migration2.Entry entry)

convertAddressEntry

private void convertAddressEntry(Migration2.Entry entry)


Copyright © 2015. All Rights Reserved.