use of org.ovirt.engine.core.common.action.PermissionsOperationsParameters in project ovirt-engine by oVirt.
the class AttachUserToVmFromPoolAndRunCommand method attachUserToVm.
private ActionReturnValue attachUserToVm() {
Permission perm = new Permission(getAdUserId(), PredefinedRoles.ENGINE_USER.getId(), getVmId(), VdcObjectType.VM);
PermissionsOperationsParameters permParams = new PermissionsOperationsParameters(perm);
permParams.setShouldBeLogged(false);
permParams.setParentCommand(getActionType());
permParams.setParentParameters(getParameters());
return runInternalAction(ActionType.AddPermission, permParams, cloneContext().withoutExecutionContext().withoutLock());
}
Aggregations