Class ShadowAssociationTypeDefinitionConfigItem
java.lang.Object
com.evolveum.midpoint.schema.config.ConfigurationItem<ShadowAssociationTypeDefinitionType>
com.evolveum.midpoint.schema.config.ShadowAssociationTypeDefinitionConfigItem
- All Implemented Interfaces:
Serializable
,Cloneable
public class ShadowAssociationTypeDefinitionConfigItem
extends ConfigurationItem<ShadowAssociationTypeDefinitionType>
- See Also:
-
Field Summary
Fields inherited from class com.evolveum.midpoint.schema.config.ConfigurationItem
DESC
-
Constructor Summary
ConstructorDescriptionShadowAssociationTypeDefinitionConfigItem
(@NotNull ConfigurationItem<ShadowAssociationTypeDefinitionType> original) -
Method Summary
Modifier and TypeMethodDescriptiondefault void
checkNamespace
(@NotNull QName name, String expectedNamespace) default void
configCheck
(boolean value, String template, Object... arguments) Checks the value, and if it's `false`, emits aConfigurationException
.default @NotNull ConfigurationException
configException
(String template, Object... arguments) default @NotNull ConfigurationException
configException
(Throwable cause, String template, Object... arguments) default <V> V
configNonNull
(V value, String template, Object... arguments) AsconfigCheck(boolean, String, Object...)
, but checks that the value is not null.default @NotNull String
getLocalPart
(@NotNull QName name, String expectedNamespace) @NotNull QName
getName()
@NotNull String
boolean
isRelatedToSubjectItem
(@NotNull ItemName itemName) @NotNull String
To be overridden in specific subclasses.default <C extends Collection<?>>
Cdefault <C extends Collection<?>>
Cdefault <V> V
Even more shortened version.default <C> C
single
(Collection<? extends C> collection, String template, Object... arguments) default @NotNull ItemName
singleNameRequired
(ItemPathType name, Object itemDesc) Methods inherited from class com.evolveum.midpoint.schema.config.ConfigurationItem
as, as, asList, child, child, clone, configItem, configItem, configItemNullable, embedded, embeddedNullable, equals, fullDescription, fullOriginLessDescription, hashCode, of, ofList, origin, originFor, originProviderFor, toString, value, value
-
Constructor Details
-
ShadowAssociationTypeDefinitionConfigItem
public ShadowAssociationTypeDefinitionConfigItem(@NotNull @NotNull ConfigurationItem<ShadowAssociationTypeDefinitionType> original)
-
-
Method Details
-
getName
- Throws:
ConfigurationException
-
getNameLocalPart
- Throws:
ConfigurationException
-
getSubject
@NotNull public @NotNull ShadowAssociationTypeSubjectDefinitionConfigItem getSubject() throws ConfigurationException- Throws:
ConfigurationException
-
localDescription
Description copied from class:ConfigurationItem
To be overridden in specific subclasses.- Overrides:
localDescription
in classConfigurationItem<ShadowAssociationTypeDefinitionType>
-
getAssociationObject
-
isRelatedToSubjectItem
-
configCheck
@Contract("false, _, _ -> fail") default void configCheck(boolean value, String template, Object... arguments) throws ConfigurationException Checks the value, and if it's `false`, emits aConfigurationException
. Note thatConfigurationItem.DESC
can be used as a placeholder forfullDescription()
in the `arguments`.- Throws:
ConfigurationException
-
checkNamespace
default void checkNamespace(@NotNull @NotNull QName name, String expectedNamespace) throws ConfigurationException - Throws:
ConfigurationException
-
getLocalPart
@NotNull default @NotNull String getLocalPart(@NotNull @NotNull QName name, String expectedNamespace) throws ConfigurationException - Throws:
ConfigurationException
-
configException
@NotNull default @NotNull ConfigurationException configException(Throwable cause, String template, Object... arguments) -
configException
@NotNull default @NotNull ConfigurationException configException(String template, Object... arguments) -
configNonNull
@Contract("null, _, _ -> fail") @NotNull default <V> V configNonNull(V value, String template, Object... arguments) throws ConfigurationException AsconfigCheck(boolean, String, Object...)
, but checks that the value is not null.- Throws:
ConfigurationException
-
nonNull
@Contract("null, _ -> fail") @NotNull default <V> V nonNull(V value, Object itemDesc) throws ConfigurationException Even more shortened version.- Throws:
ConfigurationException
-
nonEmpty
@NotNull default <C extends Collection<?>> C nonEmpty(C collection, Object itemDescription) throws ConfigurationException - Throws:
ConfigurationException
-
nonEmpty
@NotNull default <C extends Collection<?>> C nonEmpty(C collection, String template, Object... arguments) throws ConfigurationException - Throws:
ConfigurationException
-
singleNameRequired
@NotNull default @NotNull ItemName singleNameRequired(ItemPathType name, Object itemDesc) throws ConfigurationException - Throws:
ConfigurationException
-
single
@Nullable default <C> C single(Collection<? extends C> collection, String template, Object... arguments) throws ConfigurationException - Throws:
ConfigurationException
-