public interface TicketDefinitionProperties
TicketDefinitionProperties
. Ticket definition describes additional Properties and misc settings
that may be associated with a given ticket to be used by registries. Each CAS module on start up
has the ability to register/alter ticket metadata that may be requires for its own specific functionality.
Given each CAS module may decide to create many forms of tickets, this facility is specifically provided
to dynamically register ticket types and associated properties so modules that deal with registry functionality
wouldn't have to statically link to all modules and APIs.
Ticket definition properties are intended to be treated as generally as possible, so common settings
can be shared across all modules that may have similar needs. When adding additional properties, be careful
to not tie the setting to a specific technology or terminology, and opt for generality as much as possible.TicketCatalog
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getStorageName()
Generic cache/storage name this ticket may want to associate with itself
in cases where persistence is handled by an underlying cache, etc.
|
java.lang.String |
getStoragePassword()
Describes the credential required to access the storage, if any.
|
long |
getStorageTimeout()
Describes how long may this ticket definition
exist in the underlying storage unit.
|
boolean |
isCascade()
Generically describes if this ticket is linked to all ticket entities
such that for normal CRUD operations, cascades may be required.
|
void |
setCascade(boolean cascadeTicket)
Sets cascade ticket.
|
void |
setStorageName(java.lang.String storageName)
Sets store name.
|
void |
setStoragePassword(java.lang.String psw)
Sets store password if any.
|
void |
setStorageTimeout(long timeout)
Sets cache timeout.
|
boolean isCascade()
void setCascade(boolean cascadeTicket)
cascadeTicket
- the cascade ticketjava.lang.String getStorageName()
void setStorageName(java.lang.String storageName)
storageName
- the cache namelong getStorageTimeout()
void setStoragePassword(java.lang.String psw)
psw
- the password for the storage.java.lang.String getStoragePassword()
void setStorageTimeout(long timeout)
timeout
- the cache timeout