org.onebusaway.users.impl
Class ApiKeyPermissionServiceImpl
java.lang.Object
org.onebusaway.users.impl.ApiKeyPermissionServiceImpl
- All Implemented Interfaces:
- ApiKeyPermissionService
@Component
public class ApiKeyPermissionServiceImpl
- extends Object
- implements ApiKeyPermissionService
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ApiKeyPermissionServiceImpl
public ApiKeyPermissionServiceImpl()
setUserService
public void setUserService(UserService userService)
getPermission
public boolean getPermission(String key,
String service)
- Description copied from interface:
ApiKeyPermissionService
- Checks whether a user has permission to access a given service,
and marks it as having been used.
- Specified by:
getPermission
in interface ApiKeyPermissionService
- Returns:
- true if the specified key is allowed to access the ggiven service
Copyright © 2012 OneBusAway. All Rights Reserved.