public class DeviceHelper extends Object
Constructor and Description |
---|
DeviceHelper() |
Modifier and Type | Method and Description |
---|---|
static void |
addEndpointsToDevice(AccessDevice device,
List<AccessDeviceUser> accessDeviceUsers)
Method to add a list of endpoints to a device.
|
static AccessDevice |
getAccessDeviceFromUser(User user)
Utility Method to retrieve the specific subclass AccessDevice from a User
|
static AccessDeviceInformation |
getAccessDeviceInformation(AccessDevice accessDevice)
Retrieves a Serializable Set of Information for an Access Device This
includes the Access Device Users, Custom Tags, and Directory Entries
|
static AccessDeviceInformation |
getGroupAccessDeviceInformation(GroupAccessDevice gad)
Retrieves
AccessDeviceInformation for a GroupAccessDevice |
static String |
getRepositoryURL(GroupAccessDevice accessDevice,
String fileFormat,
String method)
Retrieves Repository URL for a GroupAccessDevice device file
|
static AccessDeviceInformation |
getServiceProviderAccessDeviceInformation(ServiceProviderAccessDevice spad)
Retrieves
AccessDeviceInformation for a
ServiceProviderAccessDevice |
static AccessDeviceInformation |
getSystemAccessDeviceInformation(SystemAccessDevice sad)
Retrieves
AccessDeviceInformation for a SystemAccessDevice |
static boolean |
isCompatibleDeviceType(GroupAccessDevice accessDevice,
AccessDeviceInformation information,
String deviceType)
Checks if the given AccessDevice and AccessDeviceInformation are
compatible with the given device type.
|
static void |
rebuildAccessDeviceConfigurationFiles(AccessDevice accessDevice)
Utility Method to rebuild an AccessDevice configuration files.
|
static void |
removeEndpointsFromDevice(AccessDevice device,
List<AccessDeviceUser> accessDeviceUsers)
Method to remove endpoints from an AccessDevice.
|
static void |
replaceUserDevice(User user,
AccessDevice newDevice)
Method to replace an AccessDevice on a User with another.
|
static void |
resetAccessDevice(AccessDevice accessDevice)
Method to reset an AccessDevice on a User.
|
static AccessDevice |
retrieveUserAccessDeviceSubtype(AccessDevice device,
User user)
Helper Method to convert an AccessDevice to its more specific subtype.
|
public static void addEndpointsToDevice(AccessDevice device, List<AccessDeviceUser> accessDeviceUsers) throws HelperException
device
- The device to add the endpointsaccessDeviceUsers
- The list of access device users to addHelperException
public static AccessDevice getAccessDeviceFromUser(User user) throws HelperException
user
- The User of the AccessDeviceHelperException
public static AccessDeviceInformation getAccessDeviceInformation(AccessDevice accessDevice) throws HelperException
accessDevice
- HelperException
public static AccessDeviceInformation getGroupAccessDeviceInformation(GroupAccessDevice gad) throws HelperException
AccessDeviceInformation
for a GroupAccessDevicegad
- The GroupAccessDeviceHelperException
public static String getRepositoryURL(GroupAccessDevice accessDevice, String fileFormat, String method) throws HelperException
gad
- The GroupAccessDevicefileFormat
- method
- GET or PUTHelperException
public static AccessDeviceInformation getServiceProviderAccessDeviceInformation(ServiceProviderAccessDevice spad) throws HelperException
AccessDeviceInformation
for a
ServiceProviderAccessDevicespad
- The ServiceProviderAccessDevice to retrieve informationHelperException
public static AccessDeviceInformation getSystemAccessDeviceInformation(SystemAccessDevice sad) throws HelperException
AccessDeviceInformation
for a SystemAccessDevicesad
- The SystemAccessDevice to retrieve informationHelperException
public static boolean isCompatibleDeviceType(GroupAccessDevice accessDevice, AccessDeviceInformation information, String deviceType) throws HelperException
accessDevice
- The AccessDeviceinformation
- The AccessDeviceInformation for the AccessDevicedeviceType
- The device type to check for compatibilityHelperException
public static void rebuildAccessDeviceConfigurationFiles(AccessDevice accessDevice) throws HelperException
accessDevice
- The access device to rebuildHelperException
public static void removeEndpointsFromDevice(AccessDevice device, List<AccessDeviceUser> accessDeviceUsers) throws HelperException
device
- The device to remove endpointsaccessDeviceUsers
- The list of AccessDeviceUsers to removeHelperException
public static void replaceUserDevice(User user, AccessDevice newDevice) throws HelperException
user
- The User to modifynewDevice
- The device to assignRequestException
- Thrown if an issue is encountered during migrationHelperException
public static void resetAccessDevice(AccessDevice accessDevice) throws HelperException
accessDevice
- The device to resetHelperException
- Thrown if an issue is encountered during migrationpublic static AccessDevice retrieveUserAccessDeviceSubtype(AccessDevice device, User user) throws HelperException
device
- The AccessDevice to determineuser
- A User that is assigned to the AccessDeviceHelperException
Copyright © 2016 ECG, Inc. All rights reserved.