public class ObjectTypeUtil extends Object
Constructor and Description |
---|
ObjectTypeUtil() |
public static <T> Collection<T> getExtensionPropertyValuesNotNull(ObjectType objectType, QName propertyQname)
public static <T> Collection<T> getExtensionPropertyValues(ObjectType objectType, QName propertyQname)
public static Collection<Referencable> getExtensionReferenceValues(ObjectType objectType, QName propertyQname)
public static ObjectReferenceType findRef(String oid, List<ObjectReferenceType> refs)
public static String toShortString(PrismObject<? extends ObjectType> object)
public static String toShortString(ObjectType object)
public static String toShortString(AssignmentType assignment)
public static String dump(ObjectType object)
public static Object toShortString(ObjectReferenceType objectRef)
public static Object toShortString(PrismReferenceValue objectRef)
public static Object toShortString(ObjectReferenceType objectRef, boolean withName)
public static String getShortTypeName(ObjectType object)
public static String getShortTypeName(Class<? extends ObjectType> type)
@NotNull public static <T extends ObjectType> AssignmentType createAssignmentTo(@NotNull ObjectReferenceType ref, @Nullable PrismContext prismContext)
@NotNull public static <T extends ObjectType> AssignmentType createAssignmentTo(@NotNull PrismReferenceValue ref, @Nullable PrismContext prismContext)
@NotNull public static <T extends ObjectType> AssignmentType createAssignmentTo(@NotNull String oid, @NotNull ObjectTypes type, @Nullable PrismContext prismContext)
@NotNull public static <T extends ObjectType> AssignmentType createAssignmentTo(@NotNull PrismObject<T> object)
@NotNull public static <T extends ObjectType> AssignmentType createAssignmentTo(@NotNull PrismObject<T> object, QName relation)
@NotNull public static <T extends ObjectType> AssignmentType createAssignmentTo(@NotNull T objectType, QName relation)
public static ObjectReferenceType createObjectRef(PrismReferenceValue prv)
public static ObjectReferenceType createObjectRefWithFullObject(ObjectType objectType)
public static ObjectReferenceType createObjectRef(ObjectType objectType)
public static ObjectReferenceType createObjectRef(ObjectType objectType, QName relation)
public static <T extends ObjectType> ObjectReferenceType createObjectRef(PrismObject<T> object)
public static <T extends ObjectType> ObjectReferenceType createObjectRef(PrismObject<T> object, QName relation)
public static <T extends ObjectType> ObjectReferenceType createObjectRefWithFullObject(PrismObject<T> object)
public static <T extends ObjectType> ObjectReferenceType createObjectRef(PrismObject<T> object, boolean nameAsDescription)
public static <T extends ObjectType> ObjectReferenceType createObjectRef(PrismReferenceValue refVal, boolean nameAsDescription)
public static ObjectReferenceType createObjectRef(String oid, ObjectTypes type)
public static ObjectReferenceType createObjectRef(String oid, PolyStringType name, ObjectTypes type)
public static Element findXsdElement(XmlSchemaType xmlSchemaType)
public static Element findXsdElement(PrismContainer<XmlSchemaType> xmlSchemaContainer)
public static Element findXsdElement(PrismContainerValue<XmlSchemaType> xmlSchemaContainerValue)
public static void setXsdSchemaDefinition(PrismProperty<SchemaDefinitionType> definitionProperty, Element xsdElement)
public static ItemPathHolder createXPathHolder(QName property)
public static boolean isModificationOf(ItemDeltaType modification, QName elementName)
public static boolean isModificationOf(ItemDeltaType modification, QName elementName, ItemPathType path)
public static void assertConcreteType(Class<? extends Objectable> type)
public static PrismObject getParentObject(Containerable containerable)
public static List<PrismReferenceValue> objectReferenceListToPrismReferenceValues(Collection<ObjectReferenceType> refList) throws SchemaException
SchemaException
public static List<String> objectReferenceListToOids(Collection<ObjectReferenceType> refList)
public static List<ObjectReferenceType> getAsObjectReferenceTypeList(PrismReference prismReference) throws SchemaException
SchemaException
public static List<String> referenceValueListToOidList(Collection<PrismReferenceValue> referenceValues)
public static Objectable getObjectFromReference(ObjectReferenceType ref)
public static PrismObject<?> getPrismObjectFromReference(ObjectReferenceType ref)
public static List<ObjectDelta<? extends ObjectType>> toDeltaList(ObjectDelta<?> delta)
public static Collection<ObjectDelta<? extends ObjectType>> cast(Collection<ObjectDelta<?>> deltas)
public static PolyStringType getDisplayName(PrismObject<?> object)
public static PolyStringType getDisplayName(ObjectType object)
public static PolyStringType getDisplayName(ObjectReferenceType ref)
public static PolyStringType getName(ObjectReferenceType ref)
public static ObjectType toObjectable(PrismObject object)
public static boolean containsOid(Collection<ObjectReferenceType> values, @NotNull String oid)
public static <T> T getExtensionItemRealValue(@Nullable ExtensionType extension, @NotNull QName itemName)
public static void normalizeRelation(ObjectReferenceType reference)
public static void normalizeRelation(PrismReferenceValue reference)
public static void normalizeAllRelations(PrismValue value)
public static void normalizeAllRelations(Item<?,?> item)
public static void normalizeFilter(ObjectFilter filter)
public static boolean isDelegationRelation(QName relation)
public static boolean isMembershipRelation(QName relation)
public static boolean isManagerRelation(QName relation)
public static boolean isDefaultRelation(QName relation)
public static boolean processRelationOnLogin(QName relation)
public static boolean processRelationOnRecompute(QName relation)
public static boolean relationMatches(@NotNull List<QName> relationQuery, QName relation)
public static boolean referenceMatches(ObjectReferenceType ref, String targetOid, QName targetType, QName relation)
public static OrderConstraintsType getConstraintFor(List<OrderConstraintsType> constraints, QName relation)
public static <T extends Objectable> T asObjectable(PrismObject<T> prismObject)
public static boolean matchOnOid(ObjectReferenceType ref1, ObjectReferenceType ref2)
public static void mergeExtension(PrismContainerValue<?> dstExtensionContainerValue, PrismContainerValue<?> srcExtensionContainerValue) throws SchemaException
SchemaException
public static LocalizableMessage createTechnicalDisplayInformation(PrismObject<?> object, boolean startsWithUppercase)
public static LocalizableMessage createDisplayInformation(PrismObject<?> object, boolean startsWithUppercase)
public static LocalizableMessage createDisplayInformationWithPath(PrismObject<?> object, boolean startsWithUppercase, String path)
public static LocalizableMessage createTypeDisplayInformation(QName type, boolean startsWithUppercase)
public static LocalizableMessage createTypeDisplayInformation(String objectClassName, boolean startsWithUppercase)
@Nullable public static String getRelationNameLocalizationKey(@Nullable QName relation, boolean defaultAsNull)
@NotNull public static <O extends ObjectType> Collection<String> getSubtypeValues(@NotNull PrismObject<O> object)
Copyright © 2018 Evolveum. All rights reserved.