public class UserMigration extends AbstractMigration<User,UserInformation,AbstractTransform<UserInformation>,UserMigration.Step,UserMigration>
UserHelper
Created on: Jun 4, 2015Modifier and Type | Class and Description |
---|---|
static class |
UserMigration.Step |
stepList
errors, log, warnings
Constructor and Description |
---|
UserMigration(UserInformation inputInformation,
AbstractTransform<UserInformation>... transform)
Performs the migration of a
User by removing it and recreating
with the specified add request. |
Modifier and Type | Method and Description |
---|---|
void |
checkMigrationValidity()
Checks the migration encumbrances and requirements.
|
User |
execute()
Performs the migration process in a step by step approach.
|
UserDestroy |
getUserDestroy() |
UserImport |
getUserImport() |
concurrencyCheck, getDestinationBroadWorksServer, getInput, getInputInformation, getOutput, getOutputInformation, getSourceBroadWorksServer, setOutput
addStep, addStep, all, allBut, getStepCount, isConcurrent, only, removeStep, setConcurrent, step, step
checkValidity, exception, getErrors, getReport, getWarnings, hasErrors, isError, isError, isError, printReport, setExceptionOnErrors
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSessionLogger, logger
@SafeVarargs public UserMigration(UserInformation inputInformation, AbstractTransform<UserInformation>... transform) throws HelperException, co.ecg.licensing.LicenseException
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.inputInformation
- The input UserInformation to be migratedtransform
- The information transformation to occur prior to the migration processco.ecg.licensing.LicenseException
- Thrown if UserMigration is not licensedHelperException
- Throws an exception if an error during migration occurs.User.UserAddRequest
,
User
public UserImport getUserImport()
public UserDestroy getUserDestroy()
public User execute() throws HelperException
HelperException
- Thrown if an error occurs during the migratiopn.public void checkMigrationValidity() throws HelperException
HelperException
- Thrown if the migration is invalid.EncumbranceError
Copyright © 2017 ECG. All rights reserved.