コード例 #1
0
 /**
  * Does the given user has the permission for this protocol?
  *
  * @param userId the unique username of the user
  * @param protocol the protocol
  * @param permissionName the name of the permission
  * @return true if the person has the permission; otherwise false
  */
 protected final boolean hasPermission(
     String userId, ProtocolBase protocol, String permissionName) {
   return kraAuthorizationService.hasPermission(userId, protocol, permissionName);
 }