Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/Evolveum/midpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
KaterynaHonchar committed Apr 18, 2016
1 parent cda9e7d commit 0499686
Showing 1 changed file with 7 additions and 2 deletions.
Expand Up @@ -63,6 +63,8 @@
import com.evolveum.midpoint.web.session.UserProfileStorage;
import com.evolveum.prism.xml.ns._public.types_3.PolyStringType;

import javax.xml.namespace.QName;

/**
* Created by Honchar
* Creates a panel with the list of focus type items
Expand Down Expand Up @@ -293,8 +295,11 @@ private PolyStringType getAssignmentName(String oid){

private void initUserDialog(IModel<String> title, AjaxRequestTarget target) {

FocusBrowserPanel<F> focusBrowser = new FocusBrowserPanel<F>(getPageBase().getMainPopupBodyId(), targetFocusClass, false, getPageBase()){

List<QName> supportedTypes = new ArrayList<>();
supportedTypes.add(getPageBase().getPrismContext().getSchemaRegistry()
.findObjectDefinitionByCompileTimeClass(targetFocusClass).getTypeName());
FocusBrowserPanel<F> focusBrowser = new FocusBrowserPanel<F>(getPageBase().getMainPopupBodyId(),
targetFocusClass, supportedTypes, false, getPageBase()) {
@Override
protected void onSelectPerformed(AjaxRequestTarget target, F filterUser) {
super.onSelectPerformed(target, filterUser);
Expand Down

0 comments on commit 0499686

Please sign in to comment.