Package lv.odylab.evemanage.application.exception.validation

Examples of lv.odylab.evemanage.application.exception.validation.DuplicateApiKeyException


        Key<ApiKey> existingApiKeyKey = objectifyFactory.begin().query(ApiKey.class)
                .filter("apiKeyHash", apiKey.getApiKeyHash()).getKey();
        if (apiKey.getId() == null &&
                existingApiKeyKey != null) {
            logger.error("Trying to add api key that is already added, apiKeyUserID: {}", apiKey.getApiKeyUserID());
            throw new DuplicateApiKeyException();
        }
    }
View Full Code Here

TOP

Related Classes of lv.odylab.evemanage.application.exception.validation.DuplicateApiKeyException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.