Interface DeviceDataAccessProvider
- All Superinterfaces:
DataAccessProvider,IdentifiableResourceDataAccessProvider<DeviceAttributes>
public interface DeviceDataAccessProvider
extends IdentifiableResourceDataAccessProvider<DeviceAttributes>
Devices Data Access Provider.
-
Method Summary
Modifier and TypeMethodDescriptionvoidcreate(DeviceAttributes attributes) voidvoiddefault @Nullable DeviceAttributesfromAttributes(@Nullable Iterable<Attribute> attributes) getBy(String deviceId, String accountId, ResourceQuery.AttributesEnumeration attributesEnumeration) getByAccountId(String accountId) List<? extends ResourceAttributes<?>>getByAccountId(String accountId, ResourceQuery.AttributesEnumeration attributesEnumeration) Get the resource by ID.getById(String id, ResourceQuery.AttributesEnumeration attributesEnumeration) voidupdate(DeviceAttributes attributes) Methods inherited from interface se.curity.identityserver.sdk.datasource.DataAccessProvider
isThreadSafeMethods inherited from interface se.curity.identityserver.sdk.datasource.IdentifiableResourceDataAccessProvider
getAll, getAll
-
Method Details
-
fromAttributes
@Nullable default @Nullable DeviceAttributes fromAttributes(@Nullable Iterable<Attribute> attributes) - Specified by:
fromAttributesin interfaceIdentifiableResourceDataAccessProvider<DeviceAttributes>
-
getBy
-
getBy
@Nullable @Nullable ResourceAttributes<?> getBy(String deviceId, String accountId, ResourceQuery.AttributesEnumeration attributesEnumeration) -
getById
Description copied from interface:IdentifiableResourceDataAccessProviderGet the resource by ID.- Specified by:
getByIdin interfaceIdentifiableResourceDataAccessProvider<DeviceAttributes>- Parameters:
id- of resource- Returns:
- the resource with the given ID, or null if none is found.
-
getById
@Nullable @Nullable ResourceAttributes<?> getById(String id, ResourceQuery.AttributesEnumeration attributesEnumeration) -
getByAccountId
-
getByAccountId
List<? extends ResourceAttributes<?>> getByAccountId(String accountId, ResourceQuery.AttributesEnumeration attributesEnumeration) -
create
-
update
-
delete
-
delete
-