Package org.apereo.cas.ticket.registry
Class DynamoDbTicketRegistryFacilitator
- java.lang.Object
-
- org.apereo.cas.ticket.registry.DynamoDbTicketRegistryFacilitator
-
public class DynamoDbTicketRegistryFacilitator extends java.lang.ObjectThis isDynamoDbTicketRegistryFacilitator.- Since:
- 5.1.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDynamoDbTicketRegistryFacilitator.ColumnNamesColumn names for tables holding tickets.
-
Constructor Summary
Constructors Constructor Description 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.voidcreateTicketTables(boolean deleteTables)Create ticket tables.booleandelete(java.lang.String ticketId, java.lang.String encodedTicketId)Delete.intdeleteAll()Delete all.org.apereo.cas.ticket.Ticketget(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.voidput(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.
-
-
-
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 idencodedTicketId- 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 idencodedTicketId- 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 ticketencodedTicket- the encoded ticketprincipal- 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 ticketencTicket- the encoded ticketprincipal- 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
-
-