Class ValueMetadataTypeUtil
java.lang.Object
com.evolveum.midpoint.schema.util.ValueMetadataTypeUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddCreationMetadata(@NotNull ObjectType object, XMLGregorianCalendar now) static @NotNull ItemDelta<?,?> createModifyTimestampDelta(@NotNull ObjectType object, XMLGregorianCalendar now) static @Nullable ValueMetadataTypefindMatchingValue(ValueMetadata valueMetadata, ProvenanceMetadataType provenance) static ValueMetadataTypefromLegacy(@NotNull MetadataType legacy) static Collection<String>getCertificationOutcomes(AssignmentType assignment) static @NotNull Collection<String>getCertifierComments(AssignmentType assignment) static @NotNull Collection<ObjectReferenceType>getCertifierRefs(AssignmentType assignment) static Collection<String>getCreateApprovalComments(AssignmentType assignment) static @NotNull Collection<ObjectReferenceType>getCreateApproverRefs(@NotNull AssignmentType assignment) static @NotNull List<ObjectReferenceType>getCreateApproverRefs(@NotNull ObjectType object) static @Nullable XMLGregorianCalendargetCreateTimestamp(@NotNull AssignmentType assignment) static @Nullable XMLGregorianCalendargetCreateTimestamp(@NotNull ObjectType object) static @Nullable XMLGregorianCalendargetLastChangeTimestamp(@NotNull ObjectType object) static @Nullable XMLGregorianCalendargetLastChangeTimestamp(ValueMetadataType metadata) Returns modification time or creation time.static @Nullable ValueMetadataTypegetMetadata(@NotNull AbstractCredentialType credential) static @Nullable ValueMetadataTypegetMetadata(@NotNull ObjectType object) static @Nullable ValueMetadataTypegetMetadata(Containerable holder, ProvenanceMetadataType provenance) static @Nullable ValueMetadataTypegetMetadata(AssignmentType assignment) TEMPORARY/EXPERIMENTAL.static @NotNull Collection<ValueMetadataType>getMetadataBeans(Containerable containerable) static @NotNull Collection<ValueMetadataType>getMetadataBeans(Referencable referencable) static @NotNull ValueMetadataTypegetMetadataRequired(Containerable holder, ProvenanceMetadataType provenance) static @NotNull ValueMetadataTypegetMetadataRequired(ObjectType object) static Collection<String>getModifyApprovalComments(AssignmentType assignment) static Collection<ObjectReferenceType>getModifyApproverRefs(AssignmentType assignment) static @Nullable XMLGregorianCalendargetModifyTimestamp(@NotNull ObjectType object) static @NotNull MappingSpecificationTypegetOrCreateMappingSpecification(@NotNull ProvenanceMetadataType metadata) static @NotNull ValueMetadataTypegetOrCreateMetadata(@NotNull Containerable holder, @NotNull ProvenanceMetadataType provenance) static <T extends ObjectType>
@NotNull ValueMetadataTypegetOrCreateMetadata(@NotNull PrismObject<T> object) static @NotNull ValueMetadataTypegetOrCreateMetadata(@NotNull ObjectType object) static @NotNull ValueMetadataTypegetOrCreateMetadata(AssignmentType assignment) Deprecated.static @NotNull ProcessMetadataTypegetOrCreateProcessMetadata(@NotNull ValueMetadataType metadata) static @NotNull ProvenanceMetadataTypegetOrCreateProvenanceMetadata(@NotNull ValueMetadataType metadata) static @NotNull ProvisioningMetadataTypegetOrCreateProvisioningMetadata(@NotNull ValueMetadataType metadata) static @NotNull StorageMetadataTypegetOrCreateStorageMetadata(@NotNull Containerable holder, @NotNull ProvenanceMetadataType provenance) static @NotNull StorageMetadataTypegetOrCreateStorageMetadata(@NotNull PrismObject<? extends ObjectType> object) static @NotNull StorageMetadataTypegetOrCreateStorageMetadata(@NotNull ObjectType object) static @NotNull StorageMetadataTypegetOrCreateStorageMetadata(@NotNull ValueMetadataType metadata) static @NotNull ItemPathgetPathOf(@NotNull ValueMetadataType metadata) Returns the (relative) path to the given metadata bean.static @Nullable ProcessMetadataTypegetProcessMetadata(@NotNull ObjectType object) static Collection<String>getRequestorComments(AssignmentType assignment) static Collection<ObjectReferenceType>getRequestorRefs(AssignmentType assignment) static @Nullable XMLGregorianCalendargetRequestTimestamp(AssignmentType assignment) static longgetSingleValueMetadataId(@NotNull ObjectType object) static @Nullable StorageMetadataTypegetStorageMetadata(@NotNull AssignmentType assignment, @NotNull ProvenanceMetadataType provenance) static @Nullable StorageMetadataTypegetStorageMetadata(@NotNull ObjectType object) static ItemPathgetStorageMetadataPath(ObjectType object, QName propName) static longgetValueMetadataId(@NotNull Containerable holder, @NotNull ProvenanceMetadataType provenance) static booleanhasModifyTimestampDelta(List<ItemDelta<?, ?>> itemDeltas) static booleanhasValueMetadata(ObjectType object) static booleanstatic voidupdatePcvId(ObjectType object, Collection<? extends ItemDelta<?, ?>> modifications)
-
Constructor Details
-
ValueMetadataTypeUtil
public ValueMetadataTypeUtil()
-
-
Method Details
-
getOrCreateStorageMetadata
@NotNull public static @NotNull StorageMetadataType getOrCreateStorageMetadata(@NotNull @NotNull PrismObject<? extends ObjectType> object) -
getOrCreateStorageMetadata
@NotNull public static @NotNull StorageMetadataType getOrCreateStorageMetadata(@NotNull @NotNull ObjectType object) -
getOrCreateStorageMetadata
@NotNull public static @NotNull StorageMetadataType getOrCreateStorageMetadata(@NotNull @NotNull Containerable holder, @NotNull @NotNull ProvenanceMetadataType provenance) -
getOrCreateStorageMetadata
@NotNull public static @NotNull StorageMetadataType getOrCreateStorageMetadata(@NotNull @NotNull ValueMetadataType metadata) -
getOrCreateProcessMetadata
@NotNull public static @NotNull ProcessMetadataType getOrCreateProcessMetadata(@NotNull @NotNull ValueMetadataType metadata) -
getOrCreateProvenanceMetadata
@NotNull public static @NotNull ProvenanceMetadataType getOrCreateProvenanceMetadata(@NotNull @NotNull ValueMetadataType metadata) -
getOrCreateProvisioningMetadata
@NotNull public static @NotNull ProvisioningMetadataType getOrCreateProvisioningMetadata(@NotNull @NotNull ValueMetadataType metadata) -
getOrCreateMappingSpecification
@NotNull public static @NotNull MappingSpecificationType getOrCreateMappingSpecification(@NotNull @NotNull ProvenanceMetadataType metadata) -
getOrCreateMetadata
@NotNull public static @NotNull ValueMetadataType getOrCreateMetadata(@NotNull @NotNull ObjectType object) -
getOrCreateMetadata
@NotNull public static <T extends ObjectType> @NotNull ValueMetadataType getOrCreateMetadata(@NotNull @NotNull PrismObject<T> object) -
getOrCreateMetadata
@Deprecated @NotNull public static @NotNull ValueMetadataType getOrCreateMetadata(AssignmentType assignment) Deprecated.TEMPORARY/EXPERIMENTAL. -
getOrCreateMetadata
@NotNull public static @NotNull ValueMetadataType getOrCreateMetadata(@NotNull @NotNull Containerable holder, @NotNull @NotNull ProvenanceMetadataType provenance) -
findMatchingValue
@Nullable public static @Nullable ValueMetadataType findMatchingValue(ValueMetadata valueMetadata, ProvenanceMetadataType provenance) -
getMetadata
@TestOnly @Nullable public static @Nullable ValueMetadataType getMetadata(AssignmentType assignment) TEMPORARY/EXPERIMENTAL. -
getMetadata
@Nullable public static @Nullable ValueMetadataType getMetadata(Containerable holder, ProvenanceMetadataType provenance) -
getMetadataRequired
@NotNull public static @NotNull ValueMetadataType getMetadataRequired(Containerable holder, ProvenanceMetadataType provenance) -
getMetadata
@Nullable public static @Nullable ValueMetadataType getMetadata(@NotNull @NotNull ObjectType object) -
getMetadata
@Nullable public static @Nullable ValueMetadataType getMetadata(@NotNull @NotNull AbstractCredentialType credential) -
getMetadataRequired
-
getStorageMetadata
@Nullable public static @Nullable StorageMetadataType getStorageMetadata(@NotNull @NotNull ObjectType object) -
getStorageMetadata
@Nullable public static @Nullable StorageMetadataType getStorageMetadata(@NotNull @NotNull AssignmentType assignment, @NotNull @NotNull ProvenanceMetadataType provenance) -
getCreateTimestamp
@Nullable public static @Nullable XMLGregorianCalendar getCreateTimestamp(@NotNull @NotNull ObjectType object) -
getCreateTimestamp
@Nullable public static @Nullable XMLGregorianCalendar getCreateTimestamp(@NotNull @NotNull AssignmentType assignment) -
getModifyTimestamp
@Nullable public static @Nullable XMLGregorianCalendar getModifyTimestamp(@NotNull @NotNull ObjectType object) -
getLastChangeTimestamp
@Nullable public static @Nullable XMLGregorianCalendar getLastChangeTimestamp(@NotNull @NotNull ObjectType object) -
getLastChangeTimestamp
@Nullable public static @Nullable XMLGregorianCalendar getLastChangeTimestamp(ValueMetadataType metadata) Returns modification time or creation time. -
getProcessMetadata
@Nullable public static @Nullable ProcessMetadataType getProcessMetadata(@NotNull @NotNull ObjectType object) -
getCreateApproverRefs
@NotNull public static @NotNull List<ObjectReferenceType> getCreateApproverRefs(@NotNull @NotNull ObjectType object) -
getCreateApproverRefs
@NotNull public static @NotNull Collection<ObjectReferenceType> getCreateApproverRefs(@NotNull @NotNull AssignmentType assignment) -
getMetadataBeans
@NotNull public static @NotNull Collection<ValueMetadataType> getMetadataBeans(Containerable containerable) -
getMetadataBeans
@NotNull public static @NotNull Collection<ValueMetadataType> getMetadataBeans(Referencable referencable) -
getSingleValueMetadataId
-
getValueMetadataId
public static long getValueMetadataId(@NotNull @NotNull Containerable holder, @NotNull @NotNull ProvenanceMetadataType provenance) -
addCreationMetadata
public static void addCreationMetadata(@NotNull @NotNull ObjectType object, XMLGregorianCalendar now) -
hasModifyTimestampDelta
-
createModifyTimestampDelta
@NotNull public static @NotNull ItemDelta<?,?> createModifyTimestampDelta(@NotNull @NotNull ObjectType object, XMLGregorianCalendar now) throws SchemaException - Throws:
SchemaException
-
getPathOf
Returns the (relative) path to the given metadata bean. -
hasValueMetadata
-
needsMetadataValuePcvIdUpdate
-
updatePcvId
public static void updatePcvId(ObjectType object, Collection<? extends ItemDelta<?, ?>> modifications) -
getStorageMetadataPath
-
getCreateApprovalComments
-
getModifyApproverRefs
-
getModifyApprovalComments
-
getRequestTimestamp
@Nullable public static @Nullable XMLGregorianCalendar getRequestTimestamp(AssignmentType assignment) -
getRequestorRefs
-
getRequestorComments
-
getCertificationOutcomes
-
getCertifierRefs
@NotNull public static @NotNull Collection<ObjectReferenceType> getCertifierRefs(AssignmentType assignment) -
getCertifierComments
-
fromLegacy
-