Interface IridaClientDetailsService
-
- All Superinterfaces:
CRUDService<java.lang.Long,IridaClientDetails>
- All Known Implementing Classes:
IridaClientDetailsServiceImpl
public interface IridaClientDetailsService extends CRUDService<java.lang.Long,IridaClientDetails>
Service for storing and readingIridaClientDetailsobjects
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intcountActiveTokensForClient(IridaClientDetails client)Get the number of all tokens defined for a givenIridaClientDetailsthat are valid and not expired.intcountTokensForClient(IridaClientDetails client)Get the number of tokens issued for a givenIridaClientDetailsIridaClientDetailsloadClientByClientId(java.lang.String clientId)Get theIridaClientDetailsby clientDetailsvoidrevokeTokensForClient(IridaClientDetails client)Revoke all OAuth2 tokens for a givenIridaClientDetails-
Methods inherited from interface ca.corefacility.bioinformatics.irida.service.CRUDService
count, create, delete, exists, findAll, findRevisions, findRevisions, list, list, list, read, readMultiple, search, search, update, updateFields, updateMultiple
-
-
-
-
Method Detail
-
loadClientByClientId
IridaClientDetails loadClientByClientId(java.lang.String clientId)
Get theIridaClientDetailsby clientDetails- Parameters:
clientId- The client_id of the client to fetch.- Returns:
- The client
-
countTokensForClient
int countTokensForClient(IridaClientDetails client)
Get the number of tokens issued for a givenIridaClientDetails- Parameters:
client- Client to count tokens for- Returns:
- Number of tokens issued for the given client
-
revokeTokensForClient
void revokeTokensForClient(IridaClientDetails client)
Revoke all OAuth2 tokens for a givenIridaClientDetails- Parameters:
client- The client to revoke tokens for
-
countActiveTokensForClient
int countActiveTokensForClient(IridaClientDetails client)
Get the number of all tokens defined for a givenIridaClientDetailsthat are valid and not expired.- Parameters:
client- theIridaClientDetailsto get tokens for- Returns:
- number of tokens defined for the client.
-
-