public interface FedoraSession
Modifier and Type | Method and Description |
---|---|
void |
addSessionData(String key,
String value)
Add session-specific data
|
void |
commit()
Commit any batch operations
|
void |
expire()
Expire the session
|
Optional<Instant> |
getExpires()
Get the date this session expires
|
String |
getId()
Get the session identifier
|
URI |
getUserURI()
Get the user URI
|
Instant |
updateExpiry(Duration amountToAdd)
Update the expiry by the provided amount
|
void expire()
void commit()
Instant updateExpiry(Duration amountToAdd)
amountToAdd
- the amount of time to addOptional<Instant> getExpires()
URI getUserURI()
void addSessionData(String key, String value)
key
- the keyvalue
- the value
Note: it is up to the particular implementation as to whether multi-valued session data
is allowed.Copyright © 2013–2018 DuraSpace, Inc.. All rights reserved.