8.19.1 Migrating the project

Projects developed using previous releases of Bean Builder (4.2.2) as well as that of the Management Builder (Release 4.1.1 to Release 4.3 ) can be opened using the Bean Builder 4.4  after migration. The process of migration is necessary to convert the files used by the project to the latest version. In order to simplify  the conversion of older version projects to the latest version the Migration Wizard tool is provided.  The Migration Wizard can be invoked using the BeanBuilderMigrationWizard.bat/sh file that can be found under the <Web NMS Home>/bin/developertools directory.

 

Steps involved in Migration

 

 

Migration Support

 

 

Resources that are converted

 

 

Setting up resources for Migration

 

Jars required by the project(s) of older version , which are not available with the current version, need to be copied to the <Web NMS Homw>/classes directory and added to the CLASSPATH.

 

Projects made with previous releases of Management Builder tools can also be migrated. The extra resources such as MIBs are automatically copied into the migrated project. But when the project is opened in Bean Builder Release 4.4, the Management Builder related information will not be shown by Bean Builder. However the information will be retained and can be seen when the project is opened using the appropriate tool.

 

Using the Migration Wizard - Step by Step procedure

 

Conversion of the Project File and the Screen Files

 

 

 

 

 

 

 

 

 

 

 

 

Compilation of the source files

 

 

 

 

 

 

 

 

Migration in ProListView Bean

 

There are a few changes in the ProListView bean from Bean Builder 4.4 Beta to Bean Builder 4.4 release. They are as follows.

 

The table model for ProListView, com.adventnet.beans.probeans.ProListViewTableModel, is changed to com.adventnet.dmp.model.table.RCTableModel. This change is to make the model generic.

 

The methods that are changed are listed below.

 

Old Method

Replacement Method

void dataSort(int sortColumn, boolean isAscending)

void sort(SortColumn[])

java.util.Vector getColumnNames()

TableColumn[] getTableColumns()

java.util.Vector getFirst()

boolean  first()

int getFromIndex()

int getStartIndex()

java.util.Vector getLast()

boolean last()

java.util.Vector getNext()

boolean next()

int getPageLength()

int  getFetchSize()

java.util.Vector getPrevious()

boolean previous()

int getToIndex()

int getEndIndex()

int getTotalCount()

int getFetchSize()

java.util.Vector refreshModel()

void refresh()

boolean setFromIndex(int fromIndex)

void setRange(int,int)

boolean setPageLength(int pageLength)

void  setFetchSize()

boolean setToIndex(int toIndex)

setRange(int,int)

boolean setViewRange(int fromIndex, int toIndex)

void setRange(int,int)

 

The methods that are removed are listed below.

 

Removed Methods

Reason for Removal

int[] getDataSortIndexes()

java.util.Vector getDataVector()

java.util.Vector getFirst(int num)

java.util.Vector getLast(int num)

java.util.Vector getNext(int num)

java.util.Vector getNext(int num, boolean sameStart)

java.util.Vector getNext(int fromIndex, int pageLength)

java.util.Vector getPrevious(int num)

java.util.Vector getPrevious(int num, boolean sameEnd)

java.util.Vector getRow(int index)

int[] getViewSortIndexes()

java.util.Vector getViewVector()

boolean setColumnNames(java.util.Vector columnNames)

boolean setDataVector(java.util.Vector dataVector)

void setNextEnabled(boolean nextEnabled)

void setPreviousEnabled(boolean previousEnabled)

boolean setTotalCount(int totalCount)

boolean setViewVector(java.util.Vector viewVector)

void viewSort(int sortColumn, boolean isAscending)

These methods are removed to make the model more generic.

boolean isNextEnabled()

boolean isPreviousEnabled()

The isFirst() and isLast() methods are sufficient to achieve the same requirement.



Copyright © 2011 ZOHO Corp. All Rights Reserved.