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>
addRequest
stepList
errors, log
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 |
createAddTagRequest(DeviceTag tag)
Creates an Add Tag Request for the specific Device sub-type
|
abstract void |
migrateCustomFile(DeviceFile file)
Migrates Custom Files based on the specific Device sub-type
|
concurrencyCheck, getAddRequest, getBroadWorksServer, getInformation, getOutput, setAddRequest, 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
execute
getSessionLogger, logger
public 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
co.ecg.licensing.LicenseException
public void addOutputDevice() throws co.ecg.alpaca.toolkit.exception.RequestException, HelperException
co.ecg.alpaca.toolkit.exception.RequestException
HelperException
public void addUsersToOutputDevice() throws HelperException
HelperException
public void addDeviceFiles(String outputDeviceType, String outputMacAddress) throws HelperException
HelperException
public abstract void migrateCustomFile(DeviceFile file) throws co.ecg.alpaca.toolkit.exception.RequestException, IOException, HelperException
file
- co.ecg.alpaca.toolkit.exception.RequestException
IOException
HelperException
public void addCustomTags() throws co.ecg.alpaca.toolkit.exception.RequestException
co.ecg.alpaca.toolkit.exception.RequestException
public abstract co.ecg.alpaca.toolkit.messaging.request.Request createAddTagRequest(DeviceTag tag)
tag
- 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
public 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
Copyright © 2016. All rights reserved.