Class FocusTypeUtil
java.lang.Object
com.evolveum.midpoint.schema.util.FocusTypeUtil
- Author:
- semancik
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <AH extends AssignmentHolderType>
voidaddArchetypeAssignments(PrismObject<AH> object, List<ObjectReferenceType> archetypeRefs) static voidaddOrReplaceNormalizedData(@NotNull FocusType focus, @NotNull FocusNormalizedDataType identity) static AssignmentTypecreateArchetypeAssignment(String archetypeOid) static AssignmentTypecreateOrgAssignment(String orgOid) static AssignmentTypecreateRoleAssignment(String roleOid) static AssignmentTypecreateTargetAssignment(ObjectReferenceType targetRef) static AssignmentTypecreateTargetAssignment(String targetOid, QName type) determineSubTypes(PrismObject<? extends ObjectType> object) determineSubTypes(ObjectType object) static StringdumpAssignment(AssignmentType assignment) static ObjectdumpAssignmentLazily(AssignmentType assignment) static StringdumpInducementConstraints(AssignmentType assignmentType) static ActivationStatusTypegetEffectiveStatus(@Nullable FocusType focus) static <F extends FocusType>
@NotNull List<ObjectReferenceType>getLiveLinkRefs(F focus) static @Nullable FocusIdentityTypegetMatchingIdentity(@NotNull FocusType focus, @Nullable FocusIdentitySourceType source) static @Nullable ValueMetadataTypegetPasswordMetadata(@NotNull FocusType focus) static ProtectedStringTypegetPasswordValue(FocusType focus) static <O extends ObjectType>
booleanhasSubtype(PrismObject<O> object, String subtype) static @Nullable StringlanguageOrLocale(@Nullable FocusType focus) Returns language or locale string from focus - in that order of precedence.static booleanselectorMatches(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
-
getPasswordMetadata
@Nullable public static @Nullable ValueMetadataType getPasswordMetadata(@NotNull @NotNull FocusType focus) -
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
-