Class RoleSelectionSpecEntry
- java.lang.Object
-
- com.evolveum.midpoint.model.impl.controller.RoleSelectionSpecEntry
-
- All Implemented Interfaces:
DisplayableValue<String>
public class RoleSelectionSpecEntry extends Object implements DisplayableValue<String>
- Author:
- semancik
-
-
Constructor Summary
Constructors Constructor Description RoleSelectionSpecEntry(String value, String label, String description)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDescription()
Returns longer description that can be used as a help text, tooltip or for similar purpose.String
getLabel()
Returns short user-friendly label.static Collection<RoleSelectionSpecEntry>
getPositive(Collection<RoleSelectionSpecEntry> col)
String
getValue()
Retuns actual value.static boolean
hasNegative(Collection<RoleSelectionSpecEntry> col)
static boolean
hasNegativeValue(Collection<RoleSelectionSpecEntry> col, String value)
boolean
isNegative()
void
negate()
static void
negate(Collection<RoleSelectionSpecEntry> col)
void
setNegative(boolean negative)
String
toString()
-
-
-
Method Detail
-
getValue
public String getValue()
Description copied from interface:DisplayableValue
Retuns actual value. This may not be user-friendly.- Specified by:
getValue
in interfaceDisplayableValue<String>
-
getLabel
public String getLabel()
Description copied from interface:DisplayableValue
Returns short user-friendly label. Catalog key may be returned instead of actual text.- Specified by:
getLabel
in interfaceDisplayableValue<String>
-
getDescription
public String getDescription()
Description copied from interface:DisplayableValue
Returns longer description that can be used as a help text, tooltip or for similar purpose. Catalog key may be returned instead of actual text.- Specified by:
getDescription
in interfaceDisplayableValue<String>
-
isNegative
public boolean isNegative()
-
setNegative
public void setNegative(boolean negative)
-
negate
public void negate()
-
negate
public static void negate(Collection<RoleSelectionSpecEntry> col)
-
hasNegative
public static boolean hasNegative(Collection<RoleSelectionSpecEntry> col)
-
hasNegativeValue
public static boolean hasNegativeValue(Collection<RoleSelectionSpecEntry> col, String value)
-
getPositive
public static Collection<RoleSelectionSpecEntry> getPositive(Collection<RoleSelectionSpecEntry> col)
-
-