Class ObjectTypeUtil
java.lang.Object
com.evolveum.midpoint.schema.util.ObjectTypeUtil
Methods that would belong to the ObjectType class but cannot go there because
of JAXB.
There are also useful methods that would belong to other classes. But we
don't want to create new class for every method ... if this goes beyond a
reasonable degree, please refactor accordingly.
- Author:
- Radovan Semancik
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends Objectable>
TasObjectable(PrismObject<T> prismObject) static <T extends Objectable>
List<T>asObjectables(Collection<PrismObject<T>> objects) static @Nullable ObjectTypeasObjectTypeIfPossible(@Nullable PrismValue value) static <T extends Objectable>
PrismObject<T>asPrismObject(T objectable) static voidassertConcreteType(Class<? extends Objectable> type) static Collection<ObjectDelta<? extends ObjectType>>cast(Collection<ObjectDelta<?>> deltas) static voidcheckIn(@NotNull Containerable c, @NotNull Class<?> expectedRootType) static booleancontainsOid(Collection<ObjectReferenceType> values, @NotNull String oid) static <T extends ObjectType>
@NotNull AssignmentTypecreateAssignmentTo(@NotNull PrismObject<T> object) static <T extends ObjectType>
@NotNull AssignmentTypecreateAssignmentTo(@NotNull PrismObject<T> object, PrismContext prismContext) static <T extends ObjectType>
@NotNull AssignmentTypecreateAssignmentTo(@NotNull PrismObject<T> object, QName relation) static <T extends ObjectType>
@NotNull AssignmentTypecreateAssignmentTo(@NotNull PrismReferenceValue ref) static <T extends ObjectType>
AssignmentTypecreateAssignmentTo(@NotNull PrismReferenceValue ref, @Nullable PrismContext ignored) Deprecated.static @NotNull AssignmentTypecreateAssignmentTo(@NotNull ObjectReferenceType ref) static AssignmentTypecreateAssignmentTo(@NotNull ObjectReferenceType ref, @Nullable PrismContext prismContext) Deprecated.static <T extends ObjectType>
@NotNull AssignmentTypecreateAssignmentTo(@NotNull String oid, @NotNull ObjectTypes type) static <T extends ObjectType>
AssignmentTypecreateAssignmentTo(@NotNull String oid, @NotNull ObjectTypes type, @Nullable PrismContext ignored) Deprecated.static <T extends ObjectType>
@NotNull AssignmentTypecreateAssignmentTo(T objectType, QName relation) static AssignmentTypestatic @NotNull AssignmentTypecreateAssignmentWithConstruction(@NotNull PrismObject<ResourceType> object, ShadowKindType kind, String intent) static LocalizableMessagecreateDisplayInformation(PrismObject<?> object, boolean startsWithUppercase) Creates a localizable designation of an object - its type and name.static LocalizableMessagecreateDisplayInformationWithPath(PrismObject<?> object, boolean startsWithUppercase, String path) static @NotNull ObjectQuerycreateManagerQuery(Class<? extends ObjectType> objectTypeClass, String orgOid, RelationRegistry relationRegistry) static ObjectReferenceTypecreateObjectRef(@NotNull String oid, @NotNull ObjectTypes type) static ObjectReferenceTypecreateObjectRef(@NotNull String oid, @NotNull ObjectTypes type, @Nullable PrismObject<?> object) static ObjectReferenceTypecreateObjectRef(PrismObject<?> object) static ObjectReferenceTypecreateObjectRef(PrismObject<?> object, PrismContext ignored) Deprecated.static ObjectReferenceTypecreateObjectRef(PrismObject<?> object, QName relation) static <T extends ObjectType>
ObjectReferenceTypecreateObjectRef(PrismObject<T> object, boolean nameAsDescription) static ObjectReferenceTypestatic <T extends ObjectType>
ObjectReferenceTypecreateObjectRef(PrismReferenceValue refVal, boolean nameAsDescription) static ObjectReferenceTypecreateObjectRef(Referencable value) static ObjectReferenceTypecreateObjectRef(ObjectType object) static ObjectReferenceTypecreateObjectRef(ObjectType object, PrismContext ignored) Deprecated.static ObjectReferenceTypecreateObjectRef(ObjectType objectType, QName relation) static ObjectReferenceTypecreateObjectRef(String oid) static ObjectReferenceTypecreateObjectRef(String oid, PolyStringType name, ObjectTypes type) static ObjectReferenceTypeThis is to create reference clone without actually cloning.static ObjectReferenceTypecreateObjectRefNullSafe(@Nullable String oid, @NotNull ObjectTypes type) static Collection<ObjectReferenceType>static ObjectReferenceTypecreateObjectRefWithFullObject(PrismObject<?> object) static ObjectReferenceTypecreateObjectRefWithFullObject(PrismObject<?> object, PrismContext ignored) Deprecated.static ObjectReferenceTypestatic ObjectReferenceTypecreateOidOnlyObjectRef(ObjectType object) Creates a very basic (OID-only) reference for a given object.static LocalizableMessagecreateTechnicalDisplayInformation(PrismObject<?> object, boolean startsWithUppercase) static LocalizableMessagecreateTypeDisplayInformation(String objectClassName, boolean startsWithUppercase) static LocalizableMessagecreateTypeDisplayInformation(QName type, boolean startsWithUppercase) static Stringdump(ObjectType object) static ObjectReferenceTypefindRef(String oid, List<ObjectReferenceType> refs) static RelationDefinitionTypefindRelationDefinition(List<RelationDefinitionType> relationDefinitions, QName qname) static ElementfindXsdElement(PrismContainer<XmlSchemaType> xmlSchemaContainer) static ElementfindXsdElement(PrismContainerValue<XmlSchemaType> xmlSchemaContainerValue) static ElementfindXsdElement(XmlSchemaType xmlSchemaType) Returns the <xsd:schema> element from the XmlSchemaType.static ObjectTypefix(ObjectType objectable) static List<ObjectReferenceType>getAsObjectReferenceTypeList(PrismReference prismReference) getAssignedArchetypeOids(@NotNull AssignmentHolderType object) static List<ObjectReferenceType>getAssignedArchetypeRefs(@NotNull AssignmentHolderType object) static AssignmentTypegetAssignment(ObjectType object, long id) static @NotNull AssignmentTypegetAssignmentRequired(ObjectType object, long id) static <C extends Containerable>
@NotNull List<C>getDetachedContainerables(@NotNull Collection<C> containerables) Returns containerables that are not rooted in aPrismObject.static StringgetDetailedDisplayName(Objectable objectable) static StringgetDetailedDisplayName(PrismObject<?> object) Returns display name for given object, e.g.static PolyStringTypegetDisplayName(PrismObject<?> object) static PolyStringTypestatic PolyStringTypegetDisplayName(ObjectType object) static ObjectTypestatic PrismContainerValue<ExtensionType>getExtensionContainerValue(Containerable containerable) static <T> TgetExtensionItemRealValue(@NotNull PrismObject<? extends ObjectType> object, @NotNull QName itemName) static <T> TgetExtensionItemRealValue(@Nullable ExtensionType extension, @NotNull QName itemName) static <T> TgetExtensionItemRealValue(PrismContainerValue<?> parent, ItemPath path) static <T> Collection<T>getExtensionPropertyValues(Containerable containerable, QName propertyQname) static <T> @NotNull Collection<T>getExtensionPropertyValuesNotNull(Containerable containerable, @NotNull QName propertyQname) Never returns null.static Collection<Referencable>getExtensionReferenceValues(Containerable containerable, QName propertyQname) static @Nullable OperationResultStatusTypegetFetchStatus(@NotNull ObjectType object) static <O extends ObjectType>
XMLGregorianCalendargetLastTouchTimestamp(PrismObject<O> object) static PolyStringTypegetName(Referencable ref) static Objectablestatic QNamegetObjectTypeName(PrismObject<? extends ObjectType> object) A convenience variant ofgetObjectTypeName(ObjectType).static QNamegetObjectTypeName(ObjectType object) Returns the type name for an object.static StringgetOid(ObjectType object) getOids(List<? extends Objectable> objectables) getOidsFromPrismObjects(List<? extends PrismObject<?>> prismObjects) getOidsFromRefs(Collection<? extends Referencable> refs) static <O extends Objectable>
OgetParentObject(@NotNull Containerable containerable) Returns parent object, potentially traversing multiple parent links to get there.static <O extends Objectable>
PrismObject<O>getParentObjectOld(Containerable containerable) Deprecated.static PrismObject<?>static @NotNull List<ObjectReferenceType>getReallyEffectiveMarkRefs(@NotNull ObjectType object) This method selects only really effective `effectiveMarkRef` values.static @NotNull Stream<ObjectReferenceType>getReallyEffectiveMarkRefStream(@NotNull ObjectType object) static <C extends Containerable>
Collection<PrismObject<? extends ObjectType>>getRootsForContainerables(@NotNull Collection<C> containerables) Returns "identity collection" i.e.static Collection<PrismObject<? extends ObjectType>>getRootsForReferences(@NotNull Collection<ObjectReferenceType> references) AsgetRootsForContainerables(Collection)but forObjectReferenceTypevalues.static Collection<PrismObject<? extends ObjectType>>getRootsForValues(@NotNull Collection<PrismValue> values) AsgetRootsForContainerables(Collection)but for arbitrary prism values.static StringgetShortTypeName(ObjectType object) static StringgetShortTypeName(Class<? extends ObjectType> type) static Class<? extends ObjectType>getTargetClassFromReference(@NotNull ObjectReferenceType ref) static Class<? extends ObjectType>getTargetClassFromReference(@NotNull ObjectReferenceType ref, @NotNull Class<? extends ObjectType> defaultType) static <O extends ObjectType>
@NotNull Class<O>getTypeClass(@NotNull Referencable ref, @NotNull Class<O> expectedType) Extracts type class from theReferencable.static <O extends ObjectType>
PrismObjectValue<O>getValue(PrismObject<O> object) static <AH extends AssignmentHolderType>
booleanhasArchetypeRef(AH objectable, String oid) static <AH extends AssignmentHolderType>
booleanhasArchetypeRef(PrismObject<AH> object, String oid) static booleanhasAssignedArchetype(@NotNull AssignmentHolderType object) static booleanhasEffectiveMarkRef(@NotNull ObjectType object, @NotNull String markOid) static booleanhasFetchError(@NotNull PrismObject<? extends ObjectType> object) static booleanisIndestructible(@NotNull PrismObject<? extends ObjectType> object) static booleanisIndestructible(@NotNull ObjectType object) static booleanisObjectable(@NotNull Class<?> type) static <T extends Objectable>
List<PrismObject<T>>keepDistinctObjects(Collection<PrismObject<T>> objects) static List<ObjectReferenceType>keepDistinctReferences(Collection<ObjectReferenceType> references) mapToExtensionItems(Map<QName, Object> values, PrismContainerDefinition<?> extensionDefinition, PrismContext prismContext) static booleanmatchOnOid(ObjectReferenceType ref1, ObjectReferenceType ref2) static voidmergeExtension(PrismContainerValue<?> dstExtensionContainerValue, PrismContainerValue<?> srcExtensionContainerValue) static voidnormalizeAllRelations(Item<?, ?> item, RelationRegistry relationRegistry) static voidnormalizeAllRelations(PrismValue value, RelationRegistry relationRegistry) static voidnormalizeFilter(ObjectFilter filter, RelationRegistry relationRegistry) static voidnormalizeRelation(PrismReferenceValue reference, RelationRegistry relationRegistry) static voidnormalizeRelation(ObjectReferenceType reference, RelationRegistry relationRegistry) static <O extends ObjectType>
List<ObjectReferenceType>objectListToReferences(Collection<PrismObject<O>> objects) static List<PrismReferenceValue>static List<GuiObjectColumnType>orderCustomColumns(List<GuiObjectColumnType> customColumns) static voidrecordFetchError(ObjectType object, OperationResult result) static booleanreferenceMatches(ObjectReferenceType ref, String targetOid, QName targetType, QName relation, PrismContext prismContext) referenceValueListToOidList(Collection<PrismReferenceValue> referenceValues) static voidsetExtensionContainerRealValues(PrismContext prismContext, PrismContainerValue<?> parent, ItemName containerName, Object... values) static voidsetExtensionPropertyRealValues(PrismContainerValue<?> parent, ItemName propertyName, Object... values) static voidsetExtensionPropertyRealValues(PrismContext ignored, PrismContainerValue<?> parent, ItemName propertyName, Object... values) static voidsetXsdSchemaDefinition(PrismProperty<SchemaDefinitionType> definitionProperty, Element xsdElement) static List<ObjectDelta<? extends ObjectType>>toDeltaList(ObjectDelta<?> delta) static ObjectTypetoObjectable(PrismObject object) static StringtoShortString(PrismObject<? extends ObjectType> object) static ObjecttoShortString(PrismReferenceValue objectRef) static StringtoShortString(AssignmentType assignment) static ObjecttoShortString(ObjectReferenceType objectRef) static ObjecttoShortString(ObjectReferenceType objectRef, boolean withName) static StringtoShortString(ObjectType object) static ObjecttoShortStringLazy(ObjectType object)
-
Constructor Details
-
ObjectTypeUtil
public ObjectTypeUtil()
-
-
Method Details
-
getExtensionPropertyValuesNotNull
@NotNull public static <T> @NotNull Collection<T> getExtensionPropertyValuesNotNull(Containerable containerable, @NotNull @NotNull QName propertyQname) Never returns null. Returns empty collection instead. -
getExtensionPropertyValues
public static <T> Collection<T> getExtensionPropertyValues(Containerable containerable, QName propertyQname) -
getExtensionReferenceValues
public static Collection<Referencable> getExtensionReferenceValues(Containerable containerable, QName propertyQname) -
findRef
-
toShortString
-
toShortString
-
toShortStringLazy
-
toShortString
-
dump
-
toShortString
-
toShortString
-
toShortString
-
getShortTypeName
-
getShortTypeName
-
createAssignmentTo
@Deprecated public static AssignmentType createAssignmentTo(@NotNull @NotNull ObjectReferenceType ref, @Nullable @Nullable PrismContext prismContext) Deprecated. -
createAssignmentToNullSafe
@Contract("null -> null; !null -> !null") public static AssignmentType createAssignmentToNullSafe(ObjectReferenceType ref) -
createAssignmentTo
@NotNull public static @NotNull AssignmentType createAssignmentTo(@NotNull @NotNull ObjectReferenceType ref) -
createAssignmentTo
@Deprecated public static <T extends ObjectType> AssignmentType createAssignmentTo(@NotNull @NotNull PrismReferenceValue ref, @Nullable @Nullable PrismContext ignored) Deprecated. -
createAssignmentTo
@NotNull public static <T extends ObjectType> @NotNull AssignmentType createAssignmentTo(@NotNull @NotNull PrismReferenceValue ref) -
createAssignmentTo
@Deprecated public static <T extends ObjectType> AssignmentType createAssignmentTo(@NotNull @NotNull String oid, @NotNull @NotNull ObjectTypes type, @Nullable @Nullable PrismContext ignored) Deprecated. -
createAssignmentTo
@NotNull public static <T extends ObjectType> @NotNull AssignmentType createAssignmentTo(@NotNull @NotNull String oid, @NotNull @NotNull ObjectTypes type) -
createAssignmentTo
@NotNull public static <T extends ObjectType> @NotNull AssignmentType createAssignmentTo(@NotNull @NotNull PrismObject<T> object, PrismContext prismContext) -
createAssignmentTo
@NotNull public static <T extends ObjectType> @NotNull AssignmentType createAssignmentTo(@NotNull @NotNull PrismObject<T> object) -
createAssignmentTo
@NotNull public static <T extends ObjectType> @NotNull AssignmentType createAssignmentTo(@NotNull @NotNull PrismObject<T> object, QName relation) -
createAssignmentWithConstruction
@NotNull public static @NotNull AssignmentType createAssignmentWithConstruction(@NotNull @NotNull PrismObject<ResourceType> object, ShadowKindType kind, String intent) -
createAssignmentTo
@NotNull public static <T extends ObjectType> @NotNull AssignmentType createAssignmentTo(@NotNull T objectType, QName relation) -
createObjectRef
-
createObjectRef
-
createObjectRef
-
createObjectRef
@Deprecated public static ObjectReferenceType createObjectRef(ObjectType object, PrismContext ignored) Deprecated. -
createOidOnlyObjectRef
Creates a very basic (OID-only) reference for a given object. Useful e.g. to create references to be used in search filters. -
createObjectRef
- Returns:
- OID-only object ref. Useful for search filters.
-
createObjectRef
-
createObjectRef
-
createObjectRef
@Deprecated public static ObjectReferenceType createObjectRef(PrismObject<?> object, PrismContext ignored) Deprecated. -
createObjectRef
-
createObjectRefWithFullObject
-
createObjectRefWithFullObject
-
createObjectRefWithFullObject
@Deprecated public static ObjectReferenceType createObjectRefWithFullObject(PrismObject<?> object, PrismContext ignored) Deprecated. -
createObjectRef
public static <T extends ObjectType> ObjectReferenceType createObjectRef(PrismObject<T> object, boolean nameAsDescription) -
createObjectRef
public static <T extends ObjectType> ObjectReferenceType createObjectRef(PrismReferenceValue refVal, boolean nameAsDescription) -
createObjectRefCopy
This is to create reference clone without actually cloning. (Because the cloning copies also the embedded object.) -
createObjectRef
public static ObjectReferenceType createObjectRef(@NotNull @NotNull String oid, @NotNull @NotNull ObjectTypes type) -
createObjectRef
public static ObjectReferenceType createObjectRef(@NotNull @NotNull String oid, @NotNull @NotNull ObjectTypes type, @Nullable @Nullable PrismObject<?> object) -
createObjectRefNullSafe
@Contract("null, _ -> null; !null, _ -> !null") public static ObjectReferenceType createObjectRefNullSafe(@Nullable @Nullable String oid, @NotNull @NotNull ObjectTypes type) -
createObjectRef
public static ObjectReferenceType createObjectRef(String oid, PolyStringType name, ObjectTypes type) -
findXsdElement
Returns the <xsd:schema> element from the XmlSchemaType. -
findXsdElement
-
findXsdElement
-
setXsdSchemaDefinition
public static void setXsdSchemaDefinition(PrismProperty<SchemaDefinitionType> definitionProperty, Element xsdElement) -
assertConcreteType
-
getParentObject
@Nullable public static <O extends Objectable> O getParentObject(@NotNull @NotNull Containerable containerable) Returns parent object, potentially traversing multiple parent links to get there. -
getParentObjectOld
@Deprecated public static <O extends Objectable> PrismObject<O> getParentObjectOld(Containerable containerable) Deprecated. -
objectReferenceListToPrismReferenceValues
public static List<PrismReferenceValue> objectReferenceListToPrismReferenceValues(Collection<ObjectReferenceType> refList) -
objectReferenceListToOids
-
objectListToReferences
public static <O extends ObjectType> List<ObjectReferenceType> objectListToReferences(Collection<PrismObject<O>> objects) -
getAsObjectReferenceTypeList
public static List<ObjectReferenceType> getAsObjectReferenceTypeList(PrismReference prismReference) throws SchemaException - Throws:
SchemaException
-
referenceValueListToOidList
public static List<String> referenceValueListToOidList(Collection<PrismReferenceValue> referenceValues) -
getObjectFromReference
-
getPrismObjectFromReference
-
toDeltaList
-
cast
-
getDisplayName
-
getDisplayName
-
getDisplayName
-
getName
-
toObjectable
-
asPrismObject
-
containsOid
public static boolean containsOid(Collection<ObjectReferenceType> values, @NotNull @NotNull String oid) -
getExtensionItemRealValue
public static <T> T getExtensionItemRealValue(@Nullable @Nullable ExtensionType extension, @NotNull @NotNull QName itemName) -
getExtensionItemRealValue
public static <T> T getExtensionItemRealValue(@NotNull @NotNull PrismObject<? extends ObjectType> object, @NotNull @NotNull QName itemName) -
normalizeRelation
public static void normalizeRelation(ObjectReferenceType reference, RelationRegistry relationRegistry) -
normalizeRelation
public static void normalizeRelation(PrismReferenceValue reference, RelationRegistry relationRegistry) -
normalizeAllRelations
-
normalizeAllRelations
-
normalizeFilter
-
findRelationDefinition
public static RelationDefinitionType findRelationDefinition(List<RelationDefinitionType> relationDefinitions, QName qname) -
referenceMatches
public static boolean referenceMatches(ObjectReferenceType ref, String targetOid, QName targetType, QName relation, PrismContext prismContext) -
asObjectable
-
asObjectables
-
matchOnOid
-
mergeExtension
public static void mergeExtension(PrismContainerValue<?> dstExtensionContainerValue, PrismContainerValue<?> srcExtensionContainerValue) throws SchemaException - Throws:
SchemaException
-
createTechnicalDisplayInformation
public static LocalizableMessage createTechnicalDisplayInformation(PrismObject<?> object, boolean startsWithUppercase) -
createDisplayInformation
public static LocalizableMessage createDisplayInformation(PrismObject<?> object, boolean startsWithUppercase) Creates a localizable designation of an object - its type and name. SeegetDescriptiveName(Objectable). -
createDisplayInformationWithPath
public static LocalizableMessage createDisplayInformationWithPath(PrismObject<?> object, boolean startsWithUppercase, String path) -
createTypeDisplayInformation
public static LocalizableMessage createTypeDisplayInformation(QName type, boolean startsWithUppercase) -
createTypeDisplayInformation
public static LocalizableMessage createTypeDisplayInformation(String objectClassName, boolean startsWithUppercase) -
getLastTouchTimestamp
public static <O extends ObjectType> XMLGregorianCalendar getLastTouchTimestamp(PrismObject<O> object) -
mapToExtensionItems
@NotNull public static @NotNull List<Item<?,?>> mapToExtensionItems(Map<QName, Object> values, PrismContainerDefinition<?> extensionDefinition, PrismContext prismContext) throws SchemaException- Throws:
SchemaException
-
createManagerQuery
@NotNull public static @NotNull ObjectQuery createManagerQuery(Class<? extends ObjectType> objectTypeClass, String orgOid, RelationRegistry relationRegistry) -
keepDistinctObjects
public static <T extends Objectable> List<PrismObject<T>> keepDistinctObjects(Collection<PrismObject<T>> objects) -
keepDistinctReferences
public static List<ObjectReferenceType> keepDistinctReferences(Collection<ObjectReferenceType> references) -
hasArchetypeRef
public static <AH extends AssignmentHolderType> boolean hasArchetypeRef(PrismObject<AH> object, String oid) -
hasArchetypeRef
-
orderCustomColumns
-
getExtensionContainerValue
public static PrismContainerValue<ExtensionType> getExtensionContainerValue(Containerable containerable) -
getFetchStatus
@Nullable public static @Nullable OperationResultStatusType getFetchStatus(@NotNull @NotNull ObjectType object) -
hasFetchError
-
recordFetchError
-
createObjectRefs
public static Collection<ObjectReferenceType> createObjectRefs(Collection<PrismReferenceValue> values) -
getDetailedDisplayName
Returns display name for given object, e.g. fullName for a user, displayName for a role, and more detailed description for a shadow. TODO where exactly does this method belong? -
getDetailedDisplayName
-
getObjectTypeName
Returns the type name for an object. (This really belongs somewhere else, not here.) -
getObjectTypeName
@Contract("!null -> !null; null -> null") public static QName getObjectTypeName(PrismObject<? extends ObjectType> object) A convenience variant ofgetObjectTypeName(ObjectType). -
isIndestructible
-
isIndestructible
-
getTargetClassFromReference
public static Class<? extends ObjectType> getTargetClassFromReference(@NotNull @NotNull ObjectReferenceType ref) -
getTargetClassFromReference
public static Class<? extends ObjectType> getTargetClassFromReference(@NotNull @NotNull ObjectReferenceType ref, @NotNull @NotNull Class<? extends ObjectType> defaultType) -
getOid
-
fix
ConvertsPrismContainerValuetoPrismObjectValuebasedObjectTypeas a workaround for MID-8522. TEMPORARY CODE -
asObjectTypeIfPossible
@Nullable public static @Nullable ObjectType asObjectTypeIfPossible(@Nullable @Nullable PrismValue value) -
getRootsForContainerables
public static <C extends Containerable> Collection<PrismObject<? extends ObjectType>> getRootsForContainerables(@NotNull @NotNull Collection<C> containerables) Returns "identity collection" i.e. equivalent objects can be present there, differing in their identity. Throws an exception when a root object cannot be determined. -
getDetachedContainerables
@NotNull public static <C extends Containerable> @NotNull List<C> getDetachedContainerables(@NotNull @NotNull Collection<C> containerables) Returns containerables that are not rooted in aPrismObject. -
getRootsForReferences
public static Collection<PrismObject<? extends ObjectType>> getRootsForReferences(@NotNull @NotNull Collection<ObjectReferenceType> references) AsgetRootsForContainerables(Collection)but forObjectReferenceTypevalues. -
getRootsForValues
public static Collection<PrismObject<? extends ObjectType>> getRootsForValues(@NotNull @NotNull Collection<PrismValue> values) AsgetRootsForContainerables(Collection)but for arbitrary prism values. -
isObjectable
-
getValue
-
checkIn
public static void checkIn(@NotNull @NotNull Containerable c, @NotNull @NotNull Class<?> expectedRootType) -
getAssignedArchetypeRefs
public static List<ObjectReferenceType> getAssignedArchetypeRefs(@NotNull @NotNull AssignmentHolderType object) -
hasAssignedArchetype
-
getAssignedArchetypeOids
-
setExtensionPropertyRealValues
public static void setExtensionPropertyRealValues(PrismContext ignored, PrismContainerValue<?> parent, ItemName propertyName, Object... values) throws SchemaException - Throws:
SchemaException
-
setExtensionPropertyRealValues
public static void setExtensionPropertyRealValues(PrismContainerValue<?> parent, ItemName propertyName, Object... values) throws SchemaException - Throws:
SchemaException
-
setExtensionContainerRealValues
public static void setExtensionContainerRealValues(PrismContext prismContext, PrismContainerValue<?> parent, ItemName containerName, Object... values) throws SchemaException - Throws:
SchemaException
-
getExtensionItemRealValue
-
getOids
-
getOidsFromPrismObjects
-
getOidsFromRefs
-
getEmbeddedObjectBean
-
getAssignment
-
getAssignmentRequired
-
getReallyEffectiveMarkRefs
@NotNull public static @NotNull List<ObjectReferenceType> getReallyEffectiveMarkRefs(@NotNull @NotNull ObjectType object) This method selects only really effective `effectiveMarkRef` values. -
getReallyEffectiveMarkRefStream
@NotNull public static @NotNull Stream<ObjectReferenceType> getReallyEffectiveMarkRefStream(@NotNull @NotNull ObjectType object) -
hasEffectiveMarkRef
public static boolean hasEffectiveMarkRef(@NotNull @NotNull ObjectType object, @NotNull @NotNull String markOid) -
getTypeClass
@NotNull public static <O extends ObjectType> @NotNull Class<O> getTypeClass(@NotNull @NotNull Referencable ref, @NotNull @NotNull Class<O> expectedType) throws SchemaException Extracts type class from theReferencable. Expected type is provided for cases when the type in reference is missing or (for any reason) incorrect. Useful e.g. for resolving references.- Throws:
SchemaException
-