use of org.apache.archiva.redback.rbac.RbacObjectInvalidException in project archiva by apache.
the class ArchivaRbacManager method saveOperation.
@Override
public Operation saveOperation(Operation operation) throws RbacObjectInvalidException, RbacManagerException {
boolean allFailed = true;
Exception lastException = null;
for (RBACManager rbacManager : rbacManagersPerId.values()) {
try {
if (!rbacManager.isReadOnly()) {
operation = rbacManager.saveOperation(operation);
allFailed = false;
}
} catch (Exception e) {
lastException = e;
}
}
if (lastException != null && allFailed) {
throw new RbacManagerException(lastException.getMessage(), lastException);
}
return operation;
}
Aggregations