public class AccessDeviceInformationBuilder<T extends co.ecg.alpaca.toolkit.generated.AccessDevice> extends InformationBuilder<T,AccessDeviceInformationBuilder,AccessDeviceInformation<T>>
Created by mkeathley on 4/13/16.
broadWorksObject, errors, log, waitForLoad
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
|
AccessDeviceInformationBuilder<T> |
all()
Build the AccessDeviceInformation with all available information
|
AccessDeviceInformation<T> |
build() |
AccessDeviceInformationBuilder<T> |
concurrent()
Runs the Builder in concurrent mode.
|
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> |
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 |
checkValidity
public AccessDeviceInformationBuilder(T accessDevice) throws HelperException
HelperException
public AccessDeviceInformationBuilder<T> concurrent()
concurrent
in class InformationBuilder<T extends co.ecg.alpaca.toolkit.generated.AccessDevice,AccessDeviceInformationBuilder,AccessDeviceInformation<T extends co.ecg.alpaca.toolkit.generated.AccessDevice>>
public AccessDeviceInformationBuilder<T> addCustomTags()
public AccessDeviceInformationBuilder<T> addDeviceFiles()
public AccessDeviceInformationBuilder<T> addUserList()
public AccessDeviceInformationBuilder<T> all()
all
in class InformationBuilder<T extends co.ecg.alpaca.toolkit.generated.AccessDevice,AccessDeviceInformationBuilder,AccessDeviceInformation<T extends co.ecg.alpaca.toolkit.generated.AccessDevice>>
public AccessDeviceInformation<T> build() throws HelperException
build
in class InformationBuilder<T extends co.ecg.alpaca.toolkit.generated.AccessDevice,AccessDeviceInformationBuilder,AccessDeviceInformation<T extends co.ecg.alpaca.toolkit.generated.AccessDevice>>
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.