Interface StorageHandler
public interface StorageHandler
A Handler for getting a
Storage for issues by id
and also providing additional information about the available
keys of specific StorageProvider interfaces.- Since:
- 10.0.38
-
Method Summary
Modifier and TypeMethodDescriptiongetCallStorage(Long id) Returns aStoragefor aCallwith the given id.getCallStorages(Set<Long> callIds) getChatStorage(Long id) Returns aStoragefor aChatwith the given id.getChatStorages(Set<Long> chatIds) <T extends StorageProvider>
StorageKeyInfogetStorageKeyInfo(Class<T> storageProviderClass, String key) This method returns aStorageKeyInfofor the given key and interface class implementing or extending theStorageProviderinterface likeTicket,Call,Chat,Contact,Location,Account,Category,Tenant,TransactionCode,User,App,MessengerAccount,PhoneSystem,ExternalRouting.<T extends StorageProvider>
Set<StorageKeyInfo> getStorageKeyInfos(Class<T> storageProviderClass) This method returns an unmodifiableSetofStorageKeyInfofor the given interface class implementing or extending theStorageProviderinterface likeTicket,Call,Chat,Contact,Location,Account,Category,Tenant,TransactionCode,User,App,MessengerAccount,PhoneSystem,ExternalRouting.getTicketStorage(Long id) Returns aStoragefor aTicketwith the given id.getTicketStorages(Set<Long> ticketIds)
-
Method Details
-
getCallStorage
Returns aStoragefor aCallwith the given id. -
getChatStorage
Returns aStoragefor aChatwith the given id. -
getTicketStorage
Returns aStoragefor aTicketwith the given id.- Parameters:
id- the id of theTicket- Returns:
- the
Storagefor theTicket - Since:
- 10.0.38
-
getCallStorages
-
getChatStorages
-
getTicketStorages
-
getStorageKeyInfos
<T extends StorageProvider> Set<StorageKeyInfo> getStorageKeyInfos(Class<T> storageProviderClass) throws WrongArgumentException This method returns an unmodifiableSetofStorageKeyInfofor the given interface class implementing or extending theStorageProviderinterface likeTicket,Call,Chat,Contact,Location,Account,Category,Tenant,TransactionCode,User,App,MessengerAccount,PhoneSystem,ExternalRouting.- Type Parameters:
T- the type of theStorageProvider- Parameters:
storageProviderClass- theStorageProviderinterface class to retrieve the set ofStorageKeyInfofor- Returns:
- a
SetofStorageKeyInfofor the givenStorageProviderinterface - Throws:
WrongArgumentException- is thrown if the givenStorageProviderinterface class is invalid or does not provide a persistent storage (e.g. likeIssue)- Since:
- 13.14
-
getStorageKeyInfo
<T extends StorageProvider> StorageKeyInfo getStorageKeyInfo(Class<T> storageProviderClass, String key) throws WrongArgumentException This method returns aStorageKeyInfofor the given key and interface class implementing or extending theStorageProviderinterface likeTicket,Call,Chat,Contact,Location,Account,Category,Tenant,TransactionCode,User,App,MessengerAccount,PhoneSystem,ExternalRouting.- Type Parameters:
T- the type of theStorageProvider- Parameters:
storageProviderClass- theStorageProviderinterface class to retrieve theStorageKeyInfoforkey- the name of the key to retrieve theStorageKeyInfofor- Returns:
- a
StorageKeyInfofor the givenStorageProviderinterface and the given key - Throws:
WrongArgumentException- is thrown if the givenStorageProviderinterface class is invalid or does not provide a persistent storage (e.g. likeIssue) or the given key is invalid or does not exist in the storage- Since:
- 13.14
-