use of org.ovirt.engine.core.bll.utils.PermissionSubject in project ovirt-engine by oVirt.
the class AddVmTemplateInterfaceCommand method getPermissionCheckSubjects.
@Override
public List<PermissionSubject> getPermissionCheckSubjects() {
List<PermissionSubject> subjects = super.getPermissionCheckSubjects();
VmNetworkInterface nic = getParameters().getInterface();
if (nic != null && nic.getVnicProfileId() != null && getVmTemplate() != null) {
subjects.add(new PermissionSubject(nic.getVnicProfileId(), VdcObjectType.VnicProfile, getActionType().getActionGroup()));
}
return subjects;
}
Aggregations