Class DynamoDbTicketRegistryFacilitator

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Map<java.lang.String,​software.amazon.awssdk.services.dynamodb.model.AttributeValue> buildTableAttributeValuesMapFromTicket​(org.apereo.cas.ticket.Ticket ticket, org.apereo.cas.ticket.Ticket encTicket, java.lang.String principal)
      Build table attribute values from ticket map.
      void createTicketTables​(boolean deleteTables)
      Create ticket tables.
      boolean delete​(java.lang.String ticketId, java.lang.String encodedTicketId)
      Delete.
      int deleteAll()
      Delete all.
      org.apereo.cas.ticket.Ticket get​(java.lang.String ticketId, java.lang.String encodedTicketId)
      Get ticket.
      java.util.Collection<org.apereo.cas.ticket.Ticket> getAll()
      Gets all.
      java.util.stream.Stream<? extends org.apereo.cas.ticket.Ticket> getSessionsFor​(java.lang.String principal)
      Gets sessions for.
      void put​(org.apereo.cas.ticket.Ticket ticket, org.apereo.cas.ticket.Ticket encodedTicket, java.lang.String principal)
      Put ticket.
      java.util.stream.Stream<org.apereo.cas.ticket.Ticket> stream()
      Scan and paginate.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DynamoDbTicketRegistryFacilitator

        public DynamoDbTicketRegistryFacilitator()
    • Method Detail

      • stream

        public java.util.stream.Stream<org.apereo.cas.ticket.Ticket> stream()
        Scan and paginate.
        Returns:
        the stream
      • delete

        public boolean delete​(java.lang.String ticketId,
                              java.lang.String encodedTicketId)
        Delete.
        Parameters:
        ticketId - the ticket id
        encodedTicketId - the encoded ticket id
        Returns:
        true/false
      • deleteAll

        public int deleteAll()
        Delete all.
        Returns:
        the int
      • getAll

        public java.util.Collection<org.apereo.cas.ticket.Ticket> getAll()
        Gets all.
        Returns:
        the all
      • get

        public org.apereo.cas.ticket.Ticket get​(java.lang.String ticketId,
                                                java.lang.String encodedTicketId)
        Get ticket.
        Parameters:
        ticketId - the ticket id
        encodedTicketId - the encoded ticket id
        Returns:
        the ticket
      • put

        public void put​(org.apereo.cas.ticket.Ticket ticket,
                        org.apereo.cas.ticket.Ticket encodedTicket,
                        java.lang.String principal)
        Put ticket.
        Parameters:
        ticket - the ticket
        encodedTicket - the encoded ticket
        principal - the principal
      • createTicketTables

        public void createTicketTables​(boolean deleteTables)
        Create ticket tables.
        Parameters:
        deleteTables - the delete tables
      • buildTableAttributeValuesMapFromTicket

        public java.util.Map<java.lang.String,​software.amazon.awssdk.services.dynamodb.model.AttributeValue> buildTableAttributeValuesMapFromTicket​(org.apereo.cas.ticket.Ticket ticket,
                                                                                                                                                          org.apereo.cas.ticket.Ticket encTicket,
                                                                                                                                                          java.lang.String principal)
        Build table attribute values from ticket map.
        Parameters:
        ticket - the ticket
        encTicket - the encoded ticket
        principal - the principal
        Returns:
        the map
      • getSessionsFor

        public java.util.stream.Stream<? extends org.apereo.cas.ticket.Ticket> getSessionsFor​(java.lang.String principal)
        Gets sessions for.
        Parameters:
        principal - the principal
        Returns:
        the sessions for