Class ValueMetadataTypeUtil
java.lang.Object
com.evolveum.midpoint.schema.util.ValueMetadataTypeUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
addCreationMetadata
(@NotNull ObjectType object, XMLGregorianCalendar now) static @NotNull ItemDelta<?,
?> createModifyTimestampDelta
(@NotNull ObjectType object, XMLGregorianCalendar now) 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 XMLGregorianCalendar
getCreateTimestamp
(@NotNull AssignmentType assignment) static @Nullable XMLGregorianCalendar
getCreateTimestamp
(@NotNull ObjectType object) static @Nullable XMLGregorianCalendar
getLastChangeTimestamp
(@NotNull ObjectType object) static @Nullable XMLGregorianCalendar
getLastChangeTimestamp
(ValueMetadataType metadata) Returns modification time or creation time.static @Nullable ValueMetadataType
getMetadata
(@NotNull AbstractCredentialType credential) static @Nullable ValueMetadataType
getMetadata
(@NotNull ObjectType object) static @Nullable ValueMetadataType
getMetadata
(Containerable holder, ProvenanceMetadataType provenance) static @Nullable ValueMetadataType
getMetadata
(AssignmentType assignment) TEMPORARY/EXPERIMENTAL.static @NotNull Collection<ValueMetadataType>
getMetadataBeans
(AssignmentType assignment) static @NotNull ValueMetadataType
getMetadataRequired
(Containerable holder, ProvenanceMetadataType provenance) static @NotNull ValueMetadataType
getMetadataRequired
(ObjectType object) static Collection<String>
getModifyApprovalComments
(AssignmentType assignment) static Collection<ObjectReferenceType>
getModifyApproverRefs
(AssignmentType assignment) static @Nullable XMLGregorianCalendar
getModifyTimestamp
(@NotNull ObjectType object) static @NotNull MappingSpecificationType
getOrCreateMappingSpecification
(@NotNull ProvenanceMetadataType metadata) static @NotNull ValueMetadataType
getOrCreateMetadata
(@NotNull Containerable holder, @NotNull ProvenanceMetadataType provenance) static <T extends ObjectType>
@NotNull ValueMetadataTypegetOrCreateMetadata
(@NotNull PrismObject<T> object) static @NotNull ValueMetadataType
getOrCreateMetadata
(@NotNull ObjectType object) static @NotNull ValueMetadataType
getOrCreateMetadata
(AssignmentType assignment) Deprecated.static @NotNull ProcessMetadataType
getOrCreateProcessMetadata
(@NotNull ValueMetadataType metadata) static @NotNull ProvenanceMetadataType
getOrCreateProvenanceMetadata
(@NotNull ValueMetadataType metadata) static @NotNull ProvisioningMetadataType
getOrCreateProvisioningMetadata
(@NotNull ValueMetadataType metadata) static @NotNull StorageMetadataType
getOrCreateStorageMetadata
(@NotNull Containerable holder, @NotNull ProvenanceMetadataType provenance) static @NotNull StorageMetadataType
getOrCreateStorageMetadata
(@NotNull PrismObject<? extends ObjectType> object) static @NotNull StorageMetadataType
getOrCreateStorageMetadata
(@NotNull ObjectType object) static @NotNull StorageMetadataType
getOrCreateStorageMetadata
(@NotNull ValueMetadataType metadata) static @NotNull ItemPath
getPathOf
(@NotNull ValueMetadataType metadata) Returns the (relative) path to the given metadata bean.static @Nullable ProcessMetadataType
getProcessMetadata
(@NotNull ObjectType object) static Collection<String>
getRequestorComments
(AssignmentType assignment) static Collection<ObjectReferenceType>
getRequestorRefs
(AssignmentType assignment) static @Nullable XMLGregorianCalendar
getRequestTimestamp
(AssignmentType assignment) static long
getSingleValueMetadataId
(@NotNull ObjectType object) static @Nullable StorageMetadataType
getStorageMetadata
(@NotNull AssignmentType assignment) static @Nullable StorageMetadataType
getStorageMetadata
(@NotNull AssignmentType assignment, @NotNull ProvenanceMetadataType provenance) static @Nullable StorageMetadataType
getStorageMetadata
(@NotNull ObjectType object) static ItemPath
getStorageMetadataPath
(ObjectType object, QName propName) static long
getValueMetadataId
(@NotNull Containerable holder, @NotNull ProvenanceMetadataType provenance) static boolean
hasModifyTimestampDelta
(List<ItemDelta<?, ?>> itemDeltas) static boolean
hasValueMetadata
(ObjectType object) static boolean
static void
updatePcvId
(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) -
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) -
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(AssignmentType assignment) -
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
-