public class UserMigration extends Object
UserHelper
Created on: Jun 4, 2015Constructor and Description |
---|
UserMigration(User inputUser,
User.UserAddRequest17sp4 userAddRequest)
Performs the migration of a
User by removing it and recreating
with the specified add request. |
Modifier and Type | Method and Description |
---|---|
List<String> |
getErrors()
Retrieves the list of errors
|
boolean |
hasErrors()
Checks if migration has errors
|
boolean |
hasRan()
Checks if the migration has run
|
User |
migrate()
Performs the migration process in a step by step approach.
|
void |
migrationServiceModifyEventHandler(ServiceModifyEvent event)
Method to handle the subscription to the
AlpacaEventBus for
ServiceModifyEvents . |
public UserMigration(User inputUser, User.UserAddRequest17sp4 userAddRequest) throws HelperException
User
by removing it and recreating
with the specified add request. This also migrates the device in the
process. The provided request allow the modification of various
settings during the migration process. All available Services and
settings are transfered.inputUser
- The input User to be migrateduserAddRequest
- The input User add request that has been modified with
requested changes such as a new GroupHelperException
- Throws an exception if an error during migration occurs.User.UserAddRequest17sp4
,
User
public List<String> getErrors()
public boolean hasErrors()
public boolean hasRan()
public User migrate() throws HelperException
HelperException
public void migrationServiceModifyEventHandler(ServiceModifyEvent event)
AlpacaEventBus
for
ServiceModifyEvents
. These incoming events allow for the
UserMigration to be queried to see if there was any errors post User and
Device move.event
- The ServiceModifyEvent to be handledCopyright © 2016 ECG, Inc. All rights reserved.