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>> extends AbstractImport<T,AccessDeviceInformation<T>,R>
addRequest
Constructor and Description |
---|
AbstractDeviceImport(co.ecg.alpaca.toolkit.model.BroadWorksServer bws,
AccessDeviceInformation<T> information)
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,
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
|
execute, getAddRequest, getBroadWorksServer, getInformation, getOutput, setAddRequest, setOutput
exception, getErrors, hasErrors, hasRan, isNested, setHasErrors, setHasRan, setNested
public AbstractDeviceImport(co.ecg.alpaca.toolkit.model.BroadWorksServer bws, AccessDeviceInformation<T> information) throws HelperException, co.ecg.licensing.LicenseException
bws
- The BroadWorks server to create the User oninformation
- The information to base the new object onHelperException
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
file
- co.ecg.alpaca.toolkit.exception.RequestException
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
- newMacAddres
- The new MAC address to checkoldMacAddress
- The current MAC address of the deviceHelperException
Copyright © 2016. All rights reserved.