public abstract class AbstractDeviceImport<T extends co.ecg.alpaca.toolkit.generated.AccessDevice,R extends co.ecg.alpaca.toolkit.messaging.request.Request<co.ecg.alpaca.toolkit.messaging.response.DefaultResponse>,E extends Enum<E>,A extends AbstractDeviceImport<T,R,E,A>> extends AbstractImport<T,AccessDeviceInformation<T>,R,E,A>
addRequeststepListerrors, log, warnings| Constructor and Description |
|---|
AbstractDeviceImport(co.ecg.alpaca.toolkit.model.BroadWorksServer bws,
AccessDeviceInformation<T> information,
Class<E> buildStepClass)
Creates a new Object Import with the provided information
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCustomTags()
Adds Custom Tags
|
void |
addDeviceFiles(String outputDeviceType,
String outputMacAddress)
Performs the addition of device files that match the DeviceFileMigrationRules
|
void |
addOutputDevice()
Fires the DeviceAddRequest to create the output device
|
void |
addUsersToOutputDevice()
Adds the Users in the input AccessDeviceInformation to the OutputDevice
|
void |
checkMACAddressAvailability(co.ecg.alpaca.toolkit.model.BroadWorksServer broadWorksServer,
String newMacAddres)
Checks the if the MAC address for the Add Request is available for use.
|
void |
checkMACAddressAvailability(co.ecg.alpaca.toolkit.model.BroadWorksServer broadWorksServer,
String newMacAddres,
String oldMacAddress)
Checks the if the MAC address for the Add Request is available for use.
|
abstract co.ecg.alpaca.toolkit.messaging.request.Request<co.ecg.alpaca.toolkit.messaging.response.DefaultResponse> |
createAddTagRequest(DeviceTag tag)
Creates an Add Tag Request for the specific Device sub-type
|
int |
getMigratedFiles()
Getter for migratedFiles.
|
abstract void |
migrateCustomFile(DeviceFile file)
Migrates Custom Files based on the specific Device sub-type
|
concurrencyCheck, getAddRequest, getBroadWorksServer, getInformation, getOutput, mapRequestAndFire, mapRequestAndFire, mapRequestAndFire, registerForEvents, serviceModifyEvent, setAddRequest, setOutputaddStep, addStep, all, allBut, isConcurrent, only, removeStep, setConcurrent, stepcheckValidity, exception, getErrors, getReport, getWarnings, hasErrors, isError, isError, isError, printReport, setExceptionOnErrorsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecutegetSessionLogger, loggerpublic AbstractDeviceImport(co.ecg.alpaca.toolkit.model.BroadWorksServer bws,
AccessDeviceInformation<T> information,
Class<E> buildStepClass)
throws HelperException,
co.ecg.licensing.LicenseException
bws - The BroadWorks server to create the User oninformation - The information to base the new object onbuildStepClass - The class of the import build stepsHelperException - Thrown if an error occurs during Import.co.ecg.licensing.LicenseException - Thrown if DeviceMigration is not licensed.public void addOutputDevice()
throws co.ecg.alpaca.toolkit.exception.RequestException,
HelperException
co.ecg.alpaca.toolkit.exception.RequestException - Thrown if an error occurs while mapping requests and responsesHelperException - Thrown if an error occurs while creating a device.public void addUsersToOutputDevice()
throws HelperException
HelperException - Thrown if error occurs while add Users to device.public void addDeviceFiles(String outputDeviceType, String outputMacAddress) throws HelperException
outputDeviceType - The type of the device to add Files to.outputMacAddress - The MAC Address of the device to add Files to.HelperException - Thrown if error occues while add Files to device.public abstract void migrateCustomFile(DeviceFile file) throws co.ecg.alpaca.toolkit.exception.RequestException, IOException, HelperException
file - The custom file to migrate.co.ecg.alpaca.toolkit.exception.RequestException - Thrown if an error occurs while mapping requests and responsesIOException - Thrown if and error occurs while migrating the File.HelperException - Thrown if an error occurs while migrating the File.public void addCustomTags()
throws co.ecg.alpaca.toolkit.exception.RequestException
co.ecg.alpaca.toolkit.exception.RequestException - Thrown if an error occurs while mapping requests and responsespublic abstract co.ecg.alpaca.toolkit.messaging.request.Request<co.ecg.alpaca.toolkit.messaging.response.DefaultResponse> createAddTagRequest(DeviceTag tag)
tag - The tag to create.public void checkMACAddressAvailability(co.ecg.alpaca.toolkit.model.BroadWorksServer broadWorksServer,
String newMacAddres,
String oldMacAddress)
throws HelperException
broadWorksServer - The BroadWorksServer to check.newMacAddres - The new MAC address to checkoldMacAddress - The current MAC address of the deviceHelperException - Thrown if an error occurs while checking MAC availabilitypublic void checkMACAddressAvailability(co.ecg.alpaca.toolkit.model.BroadWorksServer broadWorksServer,
String newMacAddres)
throws HelperException
broadWorksServer - The BroadWorksServer to check.newMacAddres - The new MAC address to checkHelperException - Thrown if an error occurs while checking MAC availabilitypublic int getMigratedFiles()
Copyright © 2016. All rights reserved.