Class Resource
java.lang.Object
com.evolveum.midpoint.schema.util.Resource
"One stop shop" for accessing various aspects of a resource (defined by
ResourceType object).
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. with ResourceSchema? Or ResourceTypeUtil?
- Should we add more functionality here and move back to `provisioning-api`?
HIGHLY EXPERIMENTAL (maybe not a good idea at all)-
Method Summary
Modifier and TypeMethodDescription@NotNull S_ItemEntry@Nullable ResourceSchema@NotNull ResourceSchema@NotNull Collection<ResourceObjectTypeDefinition>@Nullable ResourceSchema@NotNull ResourceSchemastatic 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_MatchingRuleEntry
-
Method Details
-
of
-
of
-
getRawSchema
- 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
-