code formatting
This commit is contained in:
parent
be86a63ef9
commit
a744393240
@ -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));
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user