info.magnolia.ui.dialog.setup.migration
Class MultiSelectControlMigrator

java.lang.Object
  extended by info.magnolia.ui.dialog.setup.migration.MultiSelectControlMigrator
All Implemented Interfaces:
ControlMigrator

public class MultiSelectControlMigrator
extends Object
implements ControlMigrator

Migrate an MultiSelect control to a MultiLinkFieldDefinition.


Constructor Summary
MultiSelectControlMigrator(boolean useIdentifier)
           
 
Method Summary
 void migrate(javax.jcr.Node controlNode, info.magnolia.module.InstallContext installContext)
          Take a specific control's migration action.
protected  void setSeletionApp(javax.jcr.Node controlNode, javax.jcr.Node fieldNode)
          Set Selection App.
protected  void setTransformerClass(javax.jcr.Node controlNode)
          Set the transformerClass.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiSelectControlMigrator

public MultiSelectControlMigrator(boolean useIdentifier)
Method Detail

migrate

public void migrate(javax.jcr.Node controlNode,
                    info.magnolia.module.InstallContext installContext)
             throws javax.jcr.RepositoryException
Description copied from interface: ControlMigrator
Take a specific control's migration action.

Specified by:
migrate in interface ControlMigrator
Parameters:
controlNode - on which the migration is done. Topically, remove, rename, add properties, nodes.
installContext - used to log migration issues or warn user for interaction.
Throws:
javax.jcr.RepositoryException

setSeletionApp

protected void setSeletionApp(javax.jcr.Node controlNode,
                              javax.jcr.Node fieldNode)
                       throws javax.jcr.RepositoryException
Set Selection App.

Throws:
javax.jcr.RepositoryException

setTransformerClass

protected void setTransformerClass(javax.jcr.Node controlNode)
                            throws javax.jcr.RepositoryException
Set the transformerClass.

Throws:
javax.jcr.RepositoryException


Copyright © 2013 Magnolia International Ltd.. All Rights Reserved.