Class Resource
- java.lang.Object
-
- com.evolveum.midpoint.schema.util.Resource
-
@Experimental public class Resource extends Object
"One stop shop" for accessing various aspects of a resource (defined byResourceTypeobject). Currently used for: - accessing the schema, - creating queries. Resides as low as in `schema` module, because it is used also in AbstractIntegrationTest class. This limits the functionality provided, though. Open questions: - Should we change the name to reflect that it is more schema-oriented? - Should we merge this class e.g. withResourceSchema? OrResourceTypeUtil? - Should we add more functionality here and move back to `provisioning-api`? HIGHLY EXPERIMENTAL (maybe not a good idea at all)
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull S_ItemEntrydeltaFor(@NotNull QName objectClassName)@Nullable ResourceSchemagetCompleteSchema()@NotNull ResourceSchemagetCompleteSchemaRequired()@NotNull Collection<ResourceObjectTypeDefinition>getObjectTypeDefinitions()@Nullable ResourceSchemagetRawSchema()@NotNull ResourceSchemagetRawSchemaRequired()static Resourceof(@NotNull PrismObject<ResourceType> resourceObject)static Resourceof(@NotNull ResourceType resourceBean)@NotNull S_MatchingRuleEntryqueryFor(@NotNull ResourceObjectTypeIdentification typeIdentification)@NotNull S_MatchingRuleEntryqueryFor(@NotNull ShadowKindType kind, @NotNull String intent)@NotNull S_MatchingRuleEntryqueryFor(@NotNull QName objectClassName)
-
-
-
Method Detail
-
of
public static Resource of(@NotNull @NotNull ResourceType resourceBean)
-
of
public static Resource of(@NotNull @NotNull PrismObject<ResourceType> resourceObject)
-
getRawSchema
@Nullable public @Nullable ResourceSchema getRawSchema() throws SchemaException
- Throws:
SchemaException
-
getRawSchemaRequired
@NotNull public @NotNull ResourceSchema getRawSchemaRequired() throws SchemaException, ConfigurationException
-
getCompleteSchema
@Nullable public @Nullable ResourceSchema getCompleteSchema() throws SchemaException, ConfigurationException
-
getCompleteSchemaRequired
@NotNull public @NotNull ResourceSchema getCompleteSchemaRequired() throws SchemaException, ConfigurationException
-
getObjectTypeDefinitions
@NotNull public @NotNull Collection<ResourceObjectTypeDefinition> getObjectTypeDefinitions() throws SchemaException, ConfigurationException
-
queryFor
@NotNull public @NotNull S_MatchingRuleEntry queryFor(@NotNull @NotNull ResourceObjectTypeIdentification typeIdentification) throws SchemaException, ConfigurationException
-
queryFor
@NotNull public @NotNull S_MatchingRuleEntry queryFor(@NotNull @NotNull ShadowKindType kind, @NotNull @NotNull String intent) throws SchemaException, ConfigurationException
-
queryFor
@NotNull public @NotNull S_MatchingRuleEntry queryFor(@NotNull @NotNull QName objectClassName) throws SchemaException, ConfigurationException
-
deltaFor
@NotNull public @NotNull S_ItemEntry deltaFor(@NotNull @NotNull QName objectClassName) throws SchemaException, ConfigurationException
-
-