public boolean hasAccessToNetwork(long networkId) {
return allNetworksAvailable || networkIds.contains(networkId);
}
public boolean hasAccessToDevice(String deviceGuid) {
return allDevicesAvailable || deviceGuids.contains(deviceGuid);
<BUG>}
@Override</BUG>
public String getName() {
if (user != null) {
return user.getLogin();

public boolean hasAccessToNetwork(long networkId) {
return allNetworksAvailable || networkIds.contains(networkId);
}
public boolean hasAccessToDevice(String deviceGuid) {
return allDevicesAvailable || deviceGuids.contains(deviceGuid);
}
public boolean hasFullAccess() {
return (allDevicesAvailable && allDevicesAvailable && actions.equals(AvailableActions.getAllHiveActions()));
}
@Override
public String getName() {
if (user != null) {
return user.getLogin();
