Class ParkingAccessRestClient

java.lang.Object
net.commuty.parking.rest.ParkingAccessRestClient
All Implemented Interfaces:
ParkingAccess

public class ParkingAccessRestClient
extends java.lang.Object
implements ParkingAccess
  • Field Summary

    Fields 
    Modifier and Type Field Description
    static java.lang.String ACCESS_REQUESTS_URL  
    static java.lang.String ACCESS_RIGHTS_URL  
    static java.lang.String DAY_PARAM  
    static java.lang.String REPORT_ACCESS_URL  
    static java.lang.String REPORT_MISSING_IDS_URL  
    static java.lang.String TOKEN_REQUESTS_URL  
    static java.lang.String UNREAD_ONLY_PARAM  
  • Constructor Summary

    Constructors 
    Constructor Description
    ParkingAccessRestClient​(Configuration configuration)  
  • Method Summary

    Modifier and Type Method Description
    java.lang.String authenticate()
    Retrieve a token based on the username and password you provided at the creation of the Builder.
    boolean isGranted​(java.lang.String parkingSiteId, UserId user)
    Check whether a UserId is allowed to enter the parking site (or not) when the request is made.
    java.util.Collection<AccessRight> listAccessRights​(java.time.LocalDate date, java.lang.Boolean unreadOnly)
    List all users (identified by one or more UserId) that are allowed or denied on the parking site for a given day.
    java.util.Collection<AccessRight> listAccessRightsForToday()
    List all users (identified by one or more UserId) that are allowed or denied on the parking site today.
    java.util.Collection<AccessRight> listAccessRightsForToday​(boolean unreadOnly)
    List all users (identified by one or more UserId) that are allowed or denied on the parking site today.
    java.lang.String reportAccessLog​(java.lang.String parkingSiteId, java.util.Collection<AccessLog> accessLogs)
    Report to Commuty one or more AccessLog of users that entered/exited the parking site.
    UserId reportMissingUserId​(UserId user)
    Report any user (identified by an id and a UserIdType) that is known by you but not by Commuty.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait