org.onebusaway.users.impl
Class ApiKeyPermissionServiceImpl

java.lang.Object
  extended by org.onebusaway.users.impl.ApiKeyPermissionServiceImpl
All Implemented Interfaces:
ApiKeyPermissionService

@Component
public class ApiKeyPermissionServiceImpl
extends Object
implements ApiKeyPermissionService


Constructor Summary
ApiKeyPermissionServiceImpl()
           
 
Method Summary
 boolean getPermission(String key, String service)
          Checks whether a user has permission to access a given service, and marks it as having been used.
 void setUserService(UserService userService)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApiKeyPermissionServiceImpl

public ApiKeyPermissionServiceImpl()
Method Detail

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 © 2011 OneBusAway. All Rights Reserved.