public class AccessDeviceInformationBuilder<T extends co.ecg.alpaca.toolkit.generated.AccessDevice> extends AbstractInformationBuilder<T,AccessDeviceInformationBuilder<T>,AccessDeviceInformation<T>,AccessDeviceInformationBuilder.BuildStep>
Created by mkeathley on 4/13/16.
Modifier and Type | Class and Description |
---|---|
static class |
AccessDeviceInformationBuilder.BuildStep |
broadWorksObject
stepList
errors, log
Constructor and Description |
---|
AccessDeviceInformationBuilder(T accessDevice) |
Modifier and Type | Method and Description |
---|---|
AccessDeviceInformationBuilder<T> |
addCustomTags()
Adds the CustomTags in the AccessDevice
|
AccessDeviceInformationBuilder<T> |
addDeviceFiles()
Adds the DeviceFiles in the AccessDevice
|
AccessDeviceInformationBuilder<T> |
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.
|
AccessDeviceInformation<T> |
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, setConcurrent, step
checkValidity, exception, getErrors, hasErrors, isError, isError
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSessionLogger, logger
public AccessDeviceInformationBuilder(T accessDevice) throws HelperException
HelperException
public AccessDeviceInformationBuilder<T> addCustomTags()
public AccessDeviceInformationBuilder<T> addDeviceFiles()
public AccessDeviceInformationBuilder<T> addUserList()
public AccessDeviceInformation<T> execute() throws HelperException
HelperException
public AccessDeviceInformation<T> getGroupAccessDeviceInformation(co.ecg.alpaca.toolkit.generated.GroupAccessDevice gad) throws HelperException
AccessDeviceInformation
for a GroupAccessDevicegad
- The GroupAccessDeviceHelperException
public AccessDeviceInformation<T> getServiceProviderAccessDeviceInformation(co.ecg.alpaca.toolkit.generated.ServiceProviderAccessDevice spad) throws HelperException
AccessDeviceInformation
for a
ServiceProviderAccessDevicespad
- The ServiceProviderAccessDevice to retrieve informationHelperException
public AccessDeviceInformation<T> getSystemAccessDeviceInformation(co.ecg.alpaca.toolkit.generated.SystemAccessDevice sad) throws HelperException
AccessDeviceInformation
for a SystemAccessDevicesad
- The SystemAccessDevice to retrieve informationHelperException
protected void downloadDeviceFile(co.ecg.alpaca.toolkit.generated.AccessDevice device, String deviceType, String macAddress, DeviceFile file, String accessURL, String fileFormat) throws HelperException, co.ecg.alpaca.toolkit.exception.RequestException, 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
co.ecg.alpaca.toolkit.exception.RequestException
co.ecg.utilities.exception.AlpacaUtilityException
IOException
Copyright © 2016. All rights reserved.