Class FocusTypeUtil
- java.lang.Object
-
- com.evolveum.midpoint.schema.util.FocusTypeUtil
-
public class FocusTypeUtil extends Object
- Author:
- semancik
-
-
Constructor Summary
Constructors Constructor Description FocusTypeUtil()
-
Method Summary
-
-
-
Method Detail
-
createRoleAssignment
public static AssignmentType createRoleAssignment(String roleOid)
-
createOrgAssignment
public static AssignmentType createOrgAssignment(String orgOid)
-
createArchetypeAssignment
public static AssignmentType createArchetypeAssignment(String archetypeOid)
-
addArchetypeAssignments
public static <AH extends AssignmentHolderType> void addArchetypeAssignments(PrismObject<AH> object, List<ObjectReferenceType> archetypeRefs)
-
createTargetAssignment
public static AssignmentType createTargetAssignment(String targetOid, QName type)
-
createTargetAssignment
public static AssignmentType createTargetAssignment(ObjectReferenceType targetRef)
-
dumpAssignment
public static String dumpAssignment(AssignmentType assignment)
-
dumpAssignmentLazily
public static Object dumpAssignmentLazily(AssignmentType assignment)
-
dumpInducementConstraints
public static String dumpInducementConstraints(AssignmentType assignmentType)
-
selectorMatches
public static boolean selectorMatches(AssignmentSelectorType assignmentSelector, AssignmentType assignmentType, PrismContext prismContext)
-
getPasswordValue
public static ProtectedStringType getPasswordValue(UserType user)
-
determineSubTypes
@NotNull public static @NotNull List<String> determineSubTypes(ObjectType object)
-
determineSubTypes
@NotNull public static @NotNull List<String> determineSubTypes(PrismObject<? extends ObjectType> object)
-
hasSubtype
public static <O extends ObjectType> boolean hasSubtype(PrismObject<O> object, String subtype)
-
setSubtype
public static <O extends ObjectType> void setSubtype(PrismObject<O> object, List<String> subtypes)
-
getLiveLinkRefs
@NotNull public static <F extends FocusType> @NotNull List<ObjectReferenceType> getLiveLinkRefs(F focus)
-
getMatchingIdentity
@Nullable public static @Nullable FocusIdentityType getMatchingIdentity(@NotNull @NotNull FocusType focus, @Nullable @Nullable FocusIdentitySourceType source)
-
addOrReplaceNormalizedData
public static void addOrReplaceNormalizedData(@NotNull @NotNull FocusType focus, @NotNull @NotNull FocusNormalizedDataType identity)
-
languageOrLocale
@Nullable public static @Nullable String languageOrLocale(@Nullable @Nullable FocusType focus)
Returns language or locale string from focus - in that order of precedence. Focus may be null - returns null if focus is null or both language and locale is null.
-
getEffectiveStatus
public static ActivationStatusType getEffectiveStatus(@Nullable @Nullable FocusType focus)
-
-