public interface AccessManager
Modifier and Type | Method and Description |
---|---|
void |
addListener(AccessRightManagerListener listener)
Add a listener to be notified when any access right has been changed.
|
AccessRight[] |
getAccessRight(String applicationId)
Get the right access of an application.
|
AccessRight |
getAccessRight(String applicationId,
String deviceId)
Get the right access of an application to use a specified device.
|
AccessRight |
getAccessRightFromId(Long policyId)
Get an access right.
|
AccessRight[] |
getAllAccessRight()
Get all the defined access right
The returned object will be synchronized by the Access Manager to
maintain updated the access right.
|
AccessRight |
getPlatformAccessRight(String deviceId)
Get the right access of platform to use a specified device.
|
void |
removeListener(AccessRightManagerListener listener)
Remove a listener.
|
AccessRight |
setDeviceAccess(String applicationId,
String deviceId,
DeviceAccessPolicy right)
Set the right access for an application to use a device.
|
AccessRight |
setMethodAccess(String applicationId,
String deviceId,
Method method,
MemberAccessPolicy accessRight)
Set the right access for an application to use a given device.
|
AccessRight |
setMethodAccess(String applicationId,
String deviceId,
String methodName,
MemberAccessPolicy accessRight)
Set the right access for an application to use a given device.
|
AccessRight getPlatformAccessRight(String deviceId)
returned
object will be synchronized by the Access Manager to
maintain updated the using rights.applicationId
- The identifier of the application.deviceId
- The target device to use if it has the correct rights.AccessRight
object which has the rights information
of the usage of the device.AccessRight getAccessRight(String applicationId, String deviceId)
returned
object will be synchronized by the Access Manager to
maintain updated the using rights.applicationId
- The identifier of the application.deviceId
- The target device to use if it has the correct rights.AccessRight
object which has the rights information
of the usage of the device.AccessRight[] getAccessRight(String applicationId)
applicationId
- The identifier of the application.AccessRight
objects which has the rights information for the application.AccessRight getAccessRightFromId(Long policyId)
policyId
- The identifier of the application.AccessRight[] getAllAccessRight()
AccessRight
objects which has the rights information for the application.AccessRight setMethodAccess(String applicationId, String deviceId, String methodName, MemberAccessPolicy accessRight)
applicationId
- The application identifier.deviceId
- The device identifier.methodName
- The method name to set the right access.accessRight
- The right access.AccessRight setMethodAccess(String applicationId, String deviceId, Method method, MemberAccessPolicy accessRight)
applicationId
- The application identifier.deviceId
- The device identifier.method
- The method name to set the right access.accessRight
- The right access.AccessRight setDeviceAccess(String applicationId, String deviceId, DeviceAccessPolicy right)
applicationId
- The application wanting to use the device.deviceId
- The device identifier.right
- The right access.void addListener(AccessRightManagerListener listener)
listener
- The listener to be called when any access right has changed.void removeListener(AccessRightManagerListener listener)
listener
- The listener to be called when any access right has changed.Copyright © 2012-2013 ADELE Research Group. All Rights Reserved.