code formatting

This commit is contained in:
Peter Hormanns 2016-08-16 19:02:19 +02:00
parent be86a63ef9
commit a744393240
2 changed files with 4 additions and 3 deletions

View File

@ -27,7 +27,7 @@ public class LoginService implements LoginServiceLocal {
} else { } else {
checkRunAsAllowed(ticketUser, runAs); checkRunAsAllowed(ticketUser, runAs);
} }
Role scope = findRunAsRole(runAs); final Role scope = findRunAsRole(runAs);
return new RequestContext(runAsUser, scope); return new RequestContext(runAsUser, scope);
} }
throw new UserException(new UserError(UserError.MSG_INVALID_TICKET, ticket)); throw new UserException(new UserError(UserError.MSG_INVALID_TICKET, ticket));

View File

@ -58,8 +58,9 @@ public abstract class AbstractModule<VO extends ValueObject> implements Module<V
validationDelegate.checkCriteriaIsSearchable(criteria); validationDelegate.checkCriteriaIsSearchable(criteria);
} }
protected void checkScopePolicy(final RequestContext requestContext, final String methodName, protected void checkScopePolicy(final RequestContext requestContext, final String methodName, final VO criteria)
final VO criteria) throws TechnicalException, UserException { throws TechnicalException, UserException
{
final String scopeAttribute = checkScopePolicy(requestContext, methodName); final String scopeAttribute = checkScopePolicy(requestContext, methodName);
if (scopeAttribute != null && !scopeAttribute.isEmpty()) { if (scopeAttribute != null && !scopeAttribute.isEmpty()) {
final Property<?> property = criteria.get(scopeAttribute); final Property<?> property = criteria.get(scopeAttribute);