Search in sources :

Example 11 with PropertyServiceUnexpectedException

use of org.summerb.microservices.properties.api.exceptions.PropertyServiceUnexpectedException in project summerb by skarpushin.

the class PropertyServiceImpl method findSubjectProperties.

@Override
public Map<String, String> findSubjectProperties(String appName, String domainName, String subjectId) {
    checkArgumentsHaveText(appName, domainName, subjectId);
    try {
        long appId = appNameAlias.getAliasFor(appName);
        long domainId = domainNameAlias.getAliasFor(domainName);
        return internalFindSubjectProperties(appId, domainId, subjectId);
    } catch (Throwable t) {
        throw new PropertyServiceUnexpectedException("Failed to find subject properties", t);
    }
}
Also used : PropertyServiceUnexpectedException(org.summerb.microservices.properties.api.exceptions.PropertyServiceUnexpectedException)

Aggregations

PropertyServiceUnexpectedException (org.summerb.microservices.properties.api.exceptions.PropertyServiceUnexpectedException)11 Transactional (org.springframework.transaction.annotation.Transactional)5 HashMap (java.util.HashMap)2 Map (java.util.Map)1 DuplicateKeyException (org.springframework.dao.DuplicateKeyException)1 PagerParams (org.summerb.approaches.jdbccrud.api.dto.PagerParams)1 NamedProperty (org.summerb.microservices.properties.api.dto.NamedProperty)1 AliasEntry (org.summerb.microservices.properties.impl.dao.AliasEntry)1