public class AccessDeviceInformationBuilder<T extends co.ecg.alpaca.toolkit.generated.AccessDevice,I extends AccessDeviceInformation<T>> extends AbstractInformationBuilder<T,AccessDeviceInformationBuilder<T,I>,AccessDeviceInformation<T>,AccessDeviceInformationBuilder.BuildStep>
Modifier and Type | Class and Description |
---|---|
static class |
AccessDeviceInformationBuilder.BuildStep |
broadWorksObject
stepList
errors, log, warnings
Constructor and Description |
---|
AccessDeviceInformationBuilder(T accessDevice) |
Modifier and Type | Method and Description |
---|---|
AccessDeviceInformationBuilder<T,I> |
addCustomTags()
Adds the CustomTags in the AccessDevice
|
AccessDeviceInformationBuilder<T,I> |
addDeviceFiles()
Adds the DeviceFiles in the AccessDevice
|
AccessDeviceInformationBuilder<T,I> |
addUserList()
Adds the UserList in the AccessDevice
|
protected void |
downloadDeviceFile(co.ecg.alpaca.toolkit.generated.AccessDevice device,
String deviceType,
String macAddress,
DeviceFile file,
String accessURL,
String fileFormat)
Uses the provided information to determine if the DeviceFile can be downloaded.
|
I |
execute() |
AccessDeviceInformation<T> |
getGroupAccessDeviceInformation(co.ecg.alpaca.toolkit.generated.GroupAccessDevice gad)
Retrieves
AccessDeviceInformation for a GroupAccessDevice |
AccessDeviceInformation<T> |
getServiceProviderAccessDeviceInformation(co.ecg.alpaca.toolkit.generated.ServiceProviderAccessDevice spad)
Retrieves
AccessDeviceInformation for a
ServiceProviderAccessDevice |
AccessDeviceInformation<T> |
getSystemAccessDeviceInformation(co.ecg.alpaca.toolkit.generated.SystemAccessDevice sad)
Retrieves
AccessDeviceInformation for a SystemAccessDevice |
concurrencyCheck
addStep, addStep, all, allBut, isConcurrent, only, removeStep, setConcurrent, 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
public AccessDeviceInformationBuilder(T accessDevice) throws HelperException
HelperException
public AccessDeviceInformationBuilder<T,I> addCustomTags()
public AccessDeviceInformationBuilder<T,I> addDeviceFiles()
public AccessDeviceInformationBuilder<T,I> addUserList()
public I execute() throws HelperException
HelperException
public AccessDeviceInformation<T> getGroupAccessDeviceInformation(co.ecg.alpaca.toolkit.generated.GroupAccessDevice gad) throws HelperException
AccessDeviceInformation
for a GroupAccessDevicegad
- The GroupAccessDeviceHelperException
- Thrown if an error occues while retrieving Information.public AccessDeviceInformation<T> getServiceProviderAccessDeviceInformation(co.ecg.alpaca.toolkit.generated.ServiceProviderAccessDevice spad) throws HelperException
AccessDeviceInformation
for a
ServiceProviderAccessDevicespad
- The ServiceProviderAccessDevice to retrieve informationHelperException
- Thrown if an error occues while retrieving Information.public AccessDeviceInformation<T> getSystemAccessDeviceInformation(co.ecg.alpaca.toolkit.generated.SystemAccessDevice sad) throws HelperException
AccessDeviceInformation
for a SystemAccessDevicesad
- The SystemAccessDevice to retrieve informationHelperException
- Thrown if an error occues while retrieving Information.protected void downloadDeviceFile(co.ecg.alpaca.toolkit.generated.AccessDevice device, String deviceType, String macAddress, DeviceFile file, String accessURL, String fileFormat) throws HelperException, co.ecg.utilities.exception.AlpacaUtilityException, IOException
device
- The source AccessDevicedeviceType
- The source DeviceTypemacAddress
- The source MAC addressfile
- The file to retrieveaccessURL
- The expected access URLfileFormat
- The file formatHelperException
- Thrown if an error occurs while attempting to download the file.co.ecg.utilities.exception.AlpacaUtilityException
- Thrown if an error occurs while attempting to download the file.IOException
- Thrown if an error occurs while trying to get the Repository URL.Copyright © 2016. All rights reserved.