Class PolicyActionConfigItem<A extends PolicyActionType>
java.lang.Object
com.evolveum.midpoint.schema.config.ConfigurationItem<A>
com.evolveum.midpoint.schema.config.PolicyActionConfigItem<A>
- All Implemented Interfaces:
- Serializable,- Cloneable
- Direct Known Subclasses:
- ScriptExecutionPolicyActionConfigItem
- See Also:
- 
Field SummaryFields inherited from class com.evolveum.midpoint.schema.config.ConfigurationItemDESC
- 
Constructor SummaryConstructorsConstructorDescriptionPolicyActionConfigItem(@NotNull ConfigurationItem<A> original) PolicyActionConfigItem(A value, @NotNull ConfigurationItemOrigin origin) 
- 
Method SummaryModifier and TypeMethodDescriptiondefault voidcheckNamespace(@NotNull QName name, String expectedNamespace) clone()Intentionally not calling super.clone, as the value is final (and we have to clone it); so we would have to hack this using reflection turning off the `final` flag.default voidconfigCheck(boolean value, String template, Object... arguments) Checks the value, and if it's `false`, emits aConfigurationException.default @NotNull ConfigurationExceptionconfigException(String template, Object... arguments) default @NotNull ConfigurationExceptionconfigException(Throwable cause, String template, Object... arguments) default <V> VconfigNonNull(V value, String template, Object... arguments) AsconfigCheck(boolean, String, Object...), but checks that the value is not null.default @NotNull QNameenforceNamespace(@NotNull QName name, @NotNull String requiredNamespace) Just likeQNameUtil.enforceNamespace(QName, String)but throwingConfigurationException.@Nullable ExpressionConfigItemdefault @NotNull StringgetLocalPart(@NotNull QName name, String expectedNamespace) @Nullable StringgetName()@NotNull StringPreliminary implementation, will probably change.@NotNull StringTo be overridden in specific subclasses.default <C extends Collection<?>>
 Cdefault <C extends Collection<?>>
 Cdefault <V> VEven more shortened version.default @NotNull ConfigurationItemOrigindefault <C extends Containerable>
 @NotNull OriginProvider<C>originProviderFor(@NotNull ItemPath path) default <C> Csingle(Collection<? extends C> collection, String template, Object... arguments) default @NotNull ItemNamesingleNameRequired(ItemPathType name, Object itemDesc) Methods inherited from class com.evolveum.midpoint.schema.config.ConfigurationItemas, as, asList, child, child, configItem, configItem, configItemNullable, embedded, embeddedNullable, equals, fullDescription, fullOriginLessDescription, hashCode, of, ofList, origin, toString, value, value
- 
Constructor Details- 
PolicyActionConfigItem
- 
PolicyActionConfigItem
 
- 
- 
Method Details- 
localDescriptionDescription copied from class:ConfigurationItemTo be overridden in specific subclasses.- Overrides:
- localDescriptionin class- ConfigurationItem<A extends PolicyActionType>
 
- 
cloneDescription copied from class:ConfigurationItemIntentionally not calling super.clone, as the value is final (and we have to clone it); so we would have to hack this using reflection turning off the `final` flag.- Overrides:
- clonein class- ConfigurationItem<A extends PolicyActionType>
 
- 
getName
- 
getCondition
- 
getTypeNamePreliminary implementation, will probably change.
- 
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.DESCcan be used as a placeholder forfullDescription()in the `arguments`.- Throws:
- ConfigurationException
 
- 
checkNamespacedefault void checkNamespace(@NotNull @NotNull QName name, String expectedNamespace) throws ConfigurationException - Throws:
- ConfigurationException
 
- 
enforceNamespace@NotNull default @NotNull QName enforceNamespace(@NotNull @NotNull QName name, @NotNull @NotNull String requiredNamespace) throws ConfigurationException Just likeQNameUtil.enforceNamespace(QName, String)but throwingConfigurationException.- 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
 
- 
originProviderFor@NotNull default <C extends Containerable> @NotNull OriginProvider<C> originProviderFor(@NotNull @NotNull ItemPath path) 
- 
originFor
 
-