org.onebusaway.users.impl
Class UserPropertiesMigrationImpl

java.lang.Object
  extended by org.onebusaway.users.impl.UserPropertiesMigrationImpl
All Implemented Interfaces:
UserPropertiesMigration

@Component
public class UserPropertiesMigrationImpl
extends Object
implements UserPropertiesMigration


Constructor Summary
UserPropertiesMigrationImpl()
           
 
Method Summary
 UserPropertiesMigrationStatus getUserPropertiesBulkMigrationStatus()
           
<T extends UserProperties>
T
migrate(UserProperties properties, Class<T> target)
           
 boolean needsMigration(UserProperties properties, Class<?> target)
           
 void setUserDao(UserDao userDao)
           
<T extends UserProperties>
void
startUserPropertiesBulkMigration(Class<T> target)
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserPropertiesMigrationImpl

public UserPropertiesMigrationImpl()
Method Detail

setUserDao

public void setUserDao(UserDao userDao)

stop

@PreDestroy
public void stop()

needsMigration

public boolean needsMigration(UserProperties properties,
                              Class<?> target)
Specified by:
needsMigration in interface UserPropertiesMigration

migrate

public <T extends UserProperties> T migrate(UserProperties properties,
                                            Class<T> target)
Specified by:
migrate in interface UserPropertiesMigration

startUserPropertiesBulkMigration

public <T extends UserProperties> void startUserPropertiesBulkMigration(Class<T> target)
Specified by:
startUserPropertiesBulkMigration in interface UserPropertiesMigration

getUserPropertiesBulkMigrationStatus

public UserPropertiesMigrationStatus getUserPropertiesBulkMigrationStatus()
Specified by:
getUserPropertiesBulkMigrationStatus in interface UserPropertiesMigration


Copyright © 2012 OneBusAway. All Rights Reserved.