@Override public IDeviceStreamData addDeviceStreamData(UUID streamId, IDeviceStreamDataCreateRequest request) throws SiteWhereException { throw new SiteWhereException("Not implemented."); }
@Override public void throwInvalidKey() throws SiteWhereException { throw new SiteWhereSystemException(ErrorCode.InvalidDeviceSpecificationToken, ErrorLevel.ERROR); } };
/** * Check whether an HTTP response code was set. * * @return */ public boolean hasHttpResponseCode() { return getHttpResponseCode() != -1; } }
@Override public ISearchResults<IDeviceStreamData> listDeviceStreamDataForAssignment(UUID streamId, IDateRangeSearchCriteria criteria) throws SiteWhereException { throw new SiteWhereException("Not implemented."); }
@Override public void throwInvalidKey() throws SiteWhereException { throw new SiteWhereSystemException(ErrorCode.InvalidScheduleToken, ErrorLevel.ERROR); } };
@Override public List<IGrantedAuthority> addGrantedAuthorities(String username, List<String> authorities) throws SiteWhereException { throw new SiteWhereException("Not implemented."); }
@Override public void throwInvalidKey() throws SiteWhereException { throw new SiteWhereSystemException(ErrorCode.InvalidScheduledJobToken, ErrorLevel.ERROR); } };
@Override public ISearchResults<IDeviceStreamData> listDeviceStreamDataForAssignment(UUID streamId, IDateRangeSearchCriteria criteria) throws SiteWhereException { throw new SiteWhereException("Not implemented."); }
/** * Require that a non-String field be non-null. * * @param field * @throws SiteWhereException */ protected static void requireNotNull(Object field) throws SiteWhereException { if (field == null) { throw new SiteWhereSystemException(ErrorCode.IncompleteData, ErrorLevel.ERROR); } }
@Override public IGrantedAuthority updateGrantedAuthority(String name, IGrantedAuthorityCreateRequest request) throws SiteWhereException { throw new SiteWhereException("Not implemented."); }
@Override public void throwInvalidKey() throws SiteWhereException { throw new SiteWhereSystemException(ErrorCode.InvalidTenantId, ErrorLevel.ERROR); } };
@Override public String convertRoute(Object scriptResult) throws SiteWhereException { if (!(scriptResult instanceof String)) { throw new SiteWhereException("Multicaster script result expected to be of type String."); } return (String) scriptResult; } }
@Override public void throwInvalidKey() throws SiteWhereException { throw new SiteWhereSystemException(ErrorCode.InvalidDeviceGroupToken, ErrorLevel.ERROR); } };
/** * Get the MongoClient. * * @return */ public MongoClient getMongoClient() throws SiteWhereException { if (client == null) { throw new SiteWhereException("Client is null. Mongo client was not properly initialized."); } return client; }
@Override public void throwInvalidKey() throws SiteWhereException { throw new SiteWhereSystemException(ErrorCode.InvalidBatchOperationToken, ErrorLevel.ERROR); } };
@Override public ISearchResults<IDeviceCommandResponse> listDeviceCommandInvocationResponses(UUID invocationId) throws SiteWhereException { throw new SiteWhereException("Not implemented."); }
@Override public List<IGrantedAuthority> removeGrantedAuthorities(String username, List<String> authorities) throws SiteWhereException { throw new SiteWhereException("Not implemented."); }
@Override public ISearchResults<IDeviceStreamData> listDeviceStreamDataForAssignment(UUID streamId, IDateRangeSearchCriteria criteria) throws SiteWhereException { throw new SiteWhereException("Not implemented."); }
@Override public URI getFilesystemConfigurationRoot() throws SiteWhereException { if (configurationRoot != null) { return configurationRoot; } throw new SiteWhereException("Configuration root not set."); }
@Override public String convertRoute(Object scriptResult) throws SiteWhereException { if (!(scriptResult instanceof String)) { throw new SiteWhereException("Multicaster script result expected to be of type String."); } return (String) scriptResult; } }