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)-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescription@NotNull S_ItemEntry
@NotNull ResourceType
getBean()
@Nullable ResourceSchema
@NotNull ResourceSchema
@NotNull Collection<ResourceObjectTypeDefinition>
@NotNull String
getOid()
static Resource
of
(@NotNull PrismObject<ResourceType> resourceObject) static Resource
of
(@NotNull ResourceType resourceBean) @NotNull S_FilterExit
queryFor
(@NotNull ResourceObjectDefinition objectDefinition) Beware, no kind/intent/OC filter is set here.@NotNull S_MatchingRuleEntry
queryFor
(@NotNull ResourceObjectTypeIdentification typeIdentification) @NotNull S_MatchingRuleEntry
queryFor
(@NotNull ShadowKindType kind, @NotNull String intent) @NotNull S_MatchingRuleEntry
@NotNull ShadowBuilder
shadow
(@NotNull ResourceObjectTypeIdentification identification) toString()
-
Method Details
-
of
-
of
-
getBean
-
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 -
queryFor
@VisibleForTesting @NotNull public @NotNull S_FilterExit queryFor(@NotNull @NotNull ResourceObjectDefinition objectDefinition) Beware, no kind/intent/OC filter is set here. Use with care, only for resources that do not have own schema, e.g., in low-level tests. -
deltaFor
@NotNull public @NotNull S_ItemEntry deltaFor(@NotNull @NotNull QName objectClassName) throws SchemaException, ConfigurationException -
getOid
-
toString
-
shadow
@NotNull public @NotNull ShadowBuilder shadow(@NotNull @NotNull ResourceObjectTypeIdentification identification) throws SchemaException, ConfigurationException
-