public interface DeviceAccessAuthorizationService
| Modifier and Type | Method and Description |
|---|---|
boolean |
isDeviceAdminUser()
This method will check whether the authenticated user has the admin permissions.
|
boolean |
isUserAuthorized(DeviceIdentifier deviceIdentifier)
This method will check whether the currently logged-in user has the access to the device identified by the given
DeviceIdentifier.
|
boolean |
isUserAuthorized(DeviceIdentifier deviceIdentifier,
String username)
This method will check whether the given user has the access to the device identified by the given
DeviceIdentifier.
|
boolean |
isUserAuthorized(DeviceIdentifier deviceIdentifier,
String[] groupPermissions)
This method will check whether the currently logged-in user has the access to the device identified by the given
DeviceIdentifier.
|
boolean |
isUserAuthorized(DeviceIdentifier deviceIdentifier,
String username,
String[] groupPermissions)
This method will check whether the given user has the access to the device identified by the given
DeviceIdentifier.
|
DeviceAuthorizationResult |
isUserAuthorized(List<DeviceIdentifier> deviceIdentifiers)
This method will check whether the currently logged-in user has the access to the devices identified by the given
DeviceIdentifier list.
|
DeviceAuthorizationResult |
isUserAuthorized(List<DeviceIdentifier> deviceIdentifiers,
String username)
This method will check whether the given user has the access to the devices identified by the given
DeviceIdentifier list.
|
DeviceAuthorizationResult |
isUserAuthorized(List<DeviceIdentifier> deviceIdentifiers,
String[] groupPermissions)
This method will check whether the currently logged-in user has the access to the devices identified by the given
DeviceIdentifier list.
|
DeviceAuthorizationResult |
isUserAuthorized(List<DeviceIdentifier> deviceIdentifiers,
String username,
String[] groupPermissions)
This method will check whether the given user has the access to the devices identified by the given
DeviceIdentifier list.
|
boolean isUserAuthorized(DeviceIdentifier deviceIdentifier) throws DeviceAccessAuthorizationException
deviceIdentifier - - DeviceIdentifier of the device to be checked.DeviceAccessAuthorizationException - if something goes wrong when checking the authorization.boolean isUserAuthorized(DeviceIdentifier deviceIdentifier, String[] groupPermissions) throws DeviceAccessAuthorizationException
deviceIdentifier - - DeviceIdentifier of the device to be checked.groupPermissions - - Group Permissions.DeviceAccessAuthorizationException - if something goes wrong when checking the authorization.DeviceAuthorizationResult isUserAuthorized(List<DeviceIdentifier> deviceIdentifiers) throws DeviceAccessAuthorizationException
deviceIdentifiers - - List of DeviceIdentifiers to be checked for authorization.DeviceAccessAuthorizationException - if something goes wrong when checking the authorization.DeviceAuthorizationResult isUserAuthorized(List<DeviceIdentifier> deviceIdentifiers, String[] groupPermissions) throws DeviceAccessAuthorizationException
deviceIdentifiers - - List of DeviceIdentifiers to be checked for authorization.groupPermissions - - Group PermissionsDeviceAccessAuthorizationException - if something goes wrong when checking the authorization.boolean isUserAuthorized(DeviceIdentifier deviceIdentifier, String username, String[] groupPermissions) throws DeviceAccessAuthorizationException
deviceIdentifier - - DeviceIdentifier of the device to be checked.username - - Username of the user to be checked for authorization.groupPermissions - - Group PermissionsDeviceAccessAuthorizationException - if something goes wrong when checking the authorization.DeviceAuthorizationResult isUserAuthorized(List<DeviceIdentifier> deviceIdentifiers, String username, String[] groupPermissions) throws DeviceAccessAuthorizationException
deviceIdentifiers - - List of DeviceIdentifiers to be checked for authorization.username - - User namegroupPermissions - - Group PermissionsDeviceAccessAuthorizationException - if something goes wrong when checking the authorization.boolean isUserAuthorized(DeviceIdentifier deviceIdentifier, String username) throws DeviceAccessAuthorizationException
deviceIdentifier - - DeviceIdentifier of the device to be checked.username - - Username of the user to be checked for authorization.DeviceAccessAuthorizationException - if something goes wrong when checking the authorization.boolean isDeviceAdminUser()
throws DeviceAccessAuthorizationException
DeviceAccessAuthorizationException - if something goes wrong when checking the authorization.DeviceAuthorizationResult isUserAuthorized(List<DeviceIdentifier> deviceIdentifiers, String username) throws DeviceAccessAuthorizationException
deviceIdentifiers - - List of DeviceIdentifiers to be checked for authorization.username - - Username of the user to be checked for authorization.DeviceAccessAuthorizationException - if something goes wrong when checking the authorization.Copyright © 2017 WSO2. All rights reserved.