Package com.evolveum.midpoint.schema
Class CapabilityUtil
- java.lang.Object
-
- com.evolveum.midpoint.schema.CapabilityUtil
-
public class CapabilityUtil extends Object
TODO naming: effective vs. enabled- Author:
- semancik
-
-
Constructor Summary
Constructors Constructor Description CapabilityUtil()
-
Method Summary
-
-
-
Method Detail
-
getCapability
public static <T extends CapabilityType> T getCapability(Collection<Object> capabilities, Class<T> capabilityClass)
-
isCapabilityEnabled
public static boolean isCapabilityEnabled(Object capability)
-
isCapabilityEnabled
public static <T extends CapabilityType> boolean isCapabilityEnabled(T capability)
-
getCapabilityWithSameElementName
public static Object getCapabilityWithSameElementName(List<Object> capabilities, Object capability)
-
containsCapabilityWithSameElementName
public static boolean containsCapabilityWithSameElementName(List<Object> capabilities, Object capability)
-
isPasswordReturnedByDefault
public static boolean isPasswordReturnedByDefault(CredentialsCapabilityType capability)
-
isPasswordReadable
public static boolean isPasswordReadable(CredentialsCapabilityType capabilityType)
-
isActivationStatusReturnedByDefault
public static boolean isActivationStatusReturnedByDefault(ActivationCapabilityType capability)
-
isActivationLockoutStatusReturnedByDefault
public static boolean isActivationLockoutStatusReturnedByDefault(ActivationCapabilityType capability)
-
isActivationValidFromReturnedByDefault
public static boolean isActivationValidFromReturnedByDefault(ActivationCapabilityType capability)
-
isActivationValidToReturnedByDefault
public static boolean isActivationValidToReturnedByDefault(ActivationCapabilityType capability)
-
asCapabilityType
public static CapabilityType asCapabilityType(Object capabilityObject)
-
fillDefaults
public static void fillDefaults(@NotNull @NotNull CapabilityType capability)
-
getEffectiveCapability
public static <T extends CapabilityType> T getEffectiveCapability(CapabilitiesType capabilitiesType, Class<T> capabilityClass)
Selects a matching capability: 1. first from configured capabilities, 2. if not present, then from native capabilities.
-
getEnabledActivationStatus
public static ActivationStatusCapabilityType getEnabledActivationStatus(ActivationCapabilityType act)
-
getEnabledActivationStatusStrict
public static ActivationStatusCapabilityType getEnabledActivationStatusStrict(ActivationCapabilityType act)
AsgetEnabledActivationStatus(ActivationCapabilityType)
but checks also if the "root" capability is enabled.
-
getEnabledActivationValidFrom
public static ActivationValidityCapabilityType getEnabledActivationValidFrom(ActivationCapabilityType act)
-
getEnabledActivationValidTo
public static ActivationValidityCapabilityType getEnabledActivationValidTo(ActivationCapabilityType act)
-
getEnabledActivationLockoutStatus
public static ActivationLockoutStatusCapabilityType getEnabledActivationLockoutStatus(ActivationCapabilityType act)
-
getEnabledActivationLockoutStrict
public static ActivationLockoutStatusCapabilityType getEnabledActivationLockoutStrict(ActivationCapabilityType act)
AsgetEnabledActivationLockoutStatus(ActivationCapabilityType)
but checks also if the "root" capability is enabled.
-
hasNativeCapability
public static <T extends CapabilityType> boolean hasNativeCapability(CapabilitiesType capabilities, Class<T> capabilityClass)
-
hasConfiguredCapability
public static <T extends CapabilityType> boolean hasConfiguredCapability(CapabilitiesType capabilities, Class<T> capabilityClass)
-
-