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