public interface AccessRight
Modifier and Type | Method and Description |
---|---|
void |
addListener(AccessRightListener listener)
Add a listener to be notified when the access right has been changed.
|
String |
getApplicationId()
Get the application wanting to access the device.
|
String |
getDeviceId()
Get the device identifier the application wants to access.
|
Long |
getIdentifier()
Get an identifier of this AccessRight.
|
String[] |
getMethodList()
Get the list of method whose access has been defined.
|
DeviceAccessPolicy |
getPolicy()
Get the device policy value.
|
boolean |
hasMethodAccess(Method method)
See if the application has the right access to call the given method.
|
boolean |
hasMethodAccess(String method)
See if the application has the right access to call the given method.
|
boolean |
isVisible()
See if the application has the right to access the device.
|
void |
removeListener(AccessRightListener listener)
Remove a listener.
|
boolean isVisible()
boolean hasMethodAccess(Method method) throws NullPointerException
method
- the method to see the right access.NullPointerException
boolean hasMethodAccess(String method) throws NullPointerException
method
- the method to see the right access.NullPointerException
String[] getMethodList()
String getApplicationId()
String getDeviceId()
void addListener(AccessRightListener listener)
listener
- The listener to be called when an access right has changed.void removeListener(AccessRightListener listener)
listener
- The listener to be called when an access right has changed.DeviceAccessPolicy getPolicy()
Long getIdentifier()
Copyright © 2012-2013 ADELE Research Group. All Rights Reserved.