Skip to content

Commit

Permalink
PasswordAccountDto selectable fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Kateryna Honchar committed Jun 13, 2022
1 parent 71f5c90 commit be46441
Showing 1 changed file with 13 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
import com.evolveum.midpoint.gui.api.util.WebComponentUtil;
import com.evolveum.midpoint.prism.PrismObject;
import com.evolveum.midpoint.web.component.util.Selectable;
import com.evolveum.midpoint.web.component.util.SelectableBean;
import com.evolveum.midpoint.web.component.util.SelectableRow;
import com.evolveum.midpoint.xml.ns._public.common.common_3.ActivationType;
import com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType;
import com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType;
Expand All @@ -21,12 +23,9 @@
/**
* @author lazyman
*/
public class PasswordAccountDto extends Selectable<PasswordAccountDto>
implements Comparable<PasswordAccountDto> {
public class PasswordAccountDto implements SelectableRow<PasswordAccountDto>, Comparable<PasswordAccountDto> {

public static final String F_DISPLAY_NAME = "displayName";
public static final String F_RESOURCE_NAME = "resourceName";
public static final String F_ENABLED = "enabled";

private PrismObject<? extends ObjectType> object;
private final String displayName;
Expand All @@ -43,6 +42,8 @@ public class PasswordAccountDto extends Selectable<PasswordAccountDto>
*/
private final boolean midpoint;

private boolean selected = true;

/**
* contain resourceOid when it is shadow account
*/
Expand Down Expand Up @@ -166,4 +167,12 @@ private int compareString(String s1, String s2) {

return String.CASE_INSENSITIVE_ORDER.compare(s1, s2);
}

public void setSelected(boolean selected) {
this.selected = selected;
}

public boolean isSelected() {
return selected;
}
}

0 comments on commit be46441

Please sign in to comment.