Search in sources :

Example 11 with AccessToken

use of org.apache.syncope.core.persistence.api.entity.AccessToken in project syncope by apache.

the class JPAAccessTokenDAO method delete.

@Override
public void delete(final String key) {
    AccessToken accessToken = find(key);
    if (accessToken == null) {
        return;
    }
    delete(accessToken);
}
Also used : AccessToken(org.apache.syncope.core.persistence.api.entity.AccessToken) JPAAccessToken(org.apache.syncope.core.persistence.jpa.entity.JPAAccessToken)

Aggregations

AccessToken (org.apache.syncope.core.persistence.api.entity.AccessToken)11 HashSet (java.util.HashSet)4 Transactional (org.springframework.transaction.annotation.Transactional)4 TypeReference (com.fasterxml.jackson.core.type.TypeReference)3 Date (java.util.Date)3 SyncopeClientException (org.apache.syncope.common.lib.SyncopeClientException)3 User (org.apache.syncope.core.persistence.api.entity.user.User)3 Set (java.util.Set)2 JPAAccessToken (org.apache.syncope.core.persistence.jpa.entity.JPAAccessToken)2 SyncopeGrantedAuthority (org.apache.syncope.core.spring.security.SyncopeGrantedAuthority)2 Collection (java.util.Collection)1 Collections (java.util.Collections)1 HashMap (java.util.HashMap)1 List (java.util.List)1 Map (java.util.Map)1 Optional (java.util.Optional)1 Collectors (java.util.stream.Collectors)1 Resource (javax.annotation.Resource)1 NoResultException (javax.persistence.NoResultException)1 BooleanUtils (org.apache.commons.lang3.BooleanUtils)1