public class UserMigration extends AbstractMigration<co.ecg.alpaca.toolkit.generated.User,UserInformation,co.ecg.alpaca.toolkit.generated.User.UserAddRequest,AbstractTransform<co.ecg.alpaca.toolkit.generated.User,UserInformation>,UserMigration.Step,UserMigration>
UserHelper
Created on: Jun 4, 2015Modifier and Type | Class and Description |
---|---|
static class |
UserMigration.Step |
addRequest
stepList
errors, log
Constructor and Description |
---|
UserMigration(UserInformation inputInformation,
AbstractTransform<co.ecg.alpaca.toolkit.generated.User,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 |
addDevices()
Migrates the GroupAccessDevices associated with the User
|
void |
assignUserToDevice()
Assigns the Group Access Device to the migrated User
|
co.ecg.alpaca.toolkit.generated.User |
execute()
Performs the migration process in a step by step approach.
|
UserDestroy |
getUserDestroy() |
UserImport |
getUserImport() |
void |
setAddRequest() |
concurrencyCheck, getAddRequest, getDestinationBroadWorksServer, getInput, getInputInformation, getOutput, getOutputInformation, getSourceBroadWorksServer, setOutput
addStep, addStep, all, allBut, isConcurrent, only, setConcurrent, step
checkValidity, exception, getErrors, hasErrors, isError, isError
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSessionLogger, logger
public UserMigration(UserInformation inputInformation, AbstractTransform<co.ecg.alpaca.toolkit.generated.User,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 co.ecg.alpaca.toolkit.generated.User execute() throws HelperException
HelperException
public void setAddRequest() throws co.ecg.alpaca.toolkit.exception.RequestException
setAddRequest
in class AbstractMigration<co.ecg.alpaca.toolkit.generated.User,UserInformation,co.ecg.alpaca.toolkit.generated.User.UserAddRequest,AbstractTransform<co.ecg.alpaca.toolkit.generated.User,UserInformation>,UserMigration.Step,UserMigration>
co.ecg.alpaca.toolkit.exception.RequestException
public void addDevices() throws co.ecg.licensing.LicenseException, HelperException
co.ecg.licensing.LicenseException
HelperException
public void assignUserToDevice() throws HelperException
HelperException
Copyright © 2016. All rights reserved.